Giter Site home page Giter Site logo

Comments (13)

ryneeverett avatar ryneeverett commented on July 29, 2024 2

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.

dstufft avatar dstufft commented on July 29, 2024

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.

ryanhiebert avatar ryanhiebert commented on July 29, 2024

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.

evanj avatar evanj commented on July 29, 2024

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 library
  • app_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.

kennethreitz avatar kennethreitz commented on July 29, 2024

we support "-e ."

I'll add it to the example

from pipfile.

ryanhiebert avatar ryanhiebert commented on July 29, 2024

@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.

kennethreitz avatar kennethreitz commented on July 29, 2024

{path=".", editable=True}

from pipfile.

ryanhiebert avatar ryanhiebert commented on July 29, 2024

Thanks!

from pipfile.

kennethreitz avatar kennethreitz commented on July 29, 2024

I need to update the spec.

from pipfile.

kennethreitz avatar kennethreitz commented on July 29, 2024

Look at Pipenv for most recent examples.

from pipfile.

kennethreitz avatar kennethreitz commented on July 29, 2024

http://docs.pipenv.org/en/latest/

from pipfile.

kennethreitz avatar kennethreitz commented on July 29, 2024

Specifically, the advanced section: http://docs.pipenv.org/en/latest/advanced.html#specifying-package-indexes

from pipfile.

gabrielfalcao avatar gabrielfalcao commented on July 29, 2024

updated link: https://pipenv.readthedocs.io/en/latest/advanced/#specifying-package-indexes

from pipfile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.