Comments (13)
I was thinking the main use case would be specifying directories outside the immediate parent of the Pipfile, but within a version controlled tree. This would be nice for managing dependencies when using the mono-repo pattern and maintaining multiple packages in the same repo, as well as single-project repositories that include an example/testing application directory that depends on the main package.
from pipfile.
This seems like a reasonable idea.
Perhaps it should be restricted so that the relative directory cannot be outside of the tree that contains the Pipfile
(e.g., you cannot use ..
), however I'm not sure if it really matters, if someone has their system laid out in a specific way, it may not make sense to really worry about trying to enforce something like that.
from pipfile.
This is the only blocker that I have for using Pipfile through Pipenv. My deployed application is an installable python package, with my dependencies and a custom entry point declared in setup.py
. Currently I have a requirements.in
file (for use with pip-tools) that just has the contents -e .
. Then the current versions get saved into the requirements.txt
. I'd much rather use Pipfile, but I need to be able to install my Python package before that'll work.
It would also be acceptable in my case if it was expected that Pipfile would take over all the dependency management, as long as I can find some way to install my package so that I can get my entry point installed.
from pipfile.
Having just spent a bunch of time trying to figure out how to split a single monolithic Python application into a couple different pieces, having relative paths in a Pipfile
that reference the parent directory would be very helpful. I think this is exactly what @ryneeverett was pointing out. To be extra clear, as an example, we have a git repository that is approximately:
somelib/setup.py
- A shared libraryapp_one/requirements.txt
- An application that wants to depend on../somelib
app_two/requirements.txt
- Another application that wants to depend on../somelib
It is extremely annoying that pip relative paths are relative to the "current working directory" and not the file. It would be very helpful if Pipfile
would fix this.
from pipfile.
we support "-e ."
I'll add it to the example
from pipfile.
@kennethreitz : I'm sorry, I'm really having trouble finding the example you're referring to above, or anything about how -e .
is supported. I imagine that part of it will be the {editable=true}
, but I'm not sure how to specify a path. What am I missing?
from pipfile.
{path=".", editable=True}
from pipfile.
Thanks!
from pipfile.
I need to update the spec.
from pipfile.
Look at Pipenv for most recent examples.
from pipfile.
http://docs.pipenv.org/en/latest/
from pipfile.
Specifically, the advanced section: http://docs.pipenv.org/en/latest/advanced.html#specifying-package-indexes
from pipfile.
updated link: https://pipenv.readthedocs.io/en/latest/advanced/#specifying-package-indexes
from pipfile.
Related Issues (20)
- Link additional Pipfiles from root one
- Skip lock on a single dependency HOT 4
- Pipfile.lock() is not idempotent
- Security Vulnerability Alerts (in examples/Pipfile.lock) HOT 5
- Pipenv take wrong Pipfile
- AttributeError while using inject_environment_variables function
- typo in line 136
- Rename 'master' branch to 'main' HOT 3
- pip2 install python
- - [ ] @monkeyhammercopiseded #165 HOT 5
- pipfile-spec in Pipfile
- Docs url is unreachable
- Publish a wheel for `pipfile`
- how to specific version in extras of pipfile?
- Support git+ssh source package repositroy
- ااا
- http://example.edu/tt
- Ggg
- how to add dependencies from other sources instead of pypi? HOT 1
- OSS-Fuzz Integration Inquiry
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pipfile.