-
-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How should we identify dependencies? #47
Comments
In the future there will be a project file that will track dependencies so
you won't have to manually add them to requirements or setup.py.
Hopefully in a week or two. I haven't discussed this with Ofek (creator of
hatch) yet.
…On Sep 29, 2017 10:54 AM, "Brian" ***@***.***> wrote:
Hi @ofek <https://github.com/ofek>
Thanks again for this magnificent project! I have a quick question, which
is, how are we suppose to track requirements?
I noticed the requirements.txt file is a little different than I'm used to
seeing:
(venv) my-computer:tests blong$ cat requirements.txt
-e .
I also noticed, I can install pip dependencies using hatch, like so:
(venv) my-computer:tests blong$ hatch install opencv-python
Installing...
Collecting opencv-python
Using cached opencv_python-3.3.0.10-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Collecting numpy>=1.11.1 (from opencv-python)
Downloading numpy-1.13.1-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (4.5MB)
100% |████████████████████████████████| 4.6MB 324kB/s
Installing collected packages: numpy, opencv-python
Successfully installed numpy-1.13.1 opencv-python-3.3.0.10
Does this mean I am supposed to track dependencies (for now) using pip
freeze > requirements.txt or is there some better process?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#47>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADAbG60dAGgjKMtzIKu9Sea6WxNfv5nks5snRK-gaJpZM4Po3v4>
.
|
I would propose to integrate with https://github.com/jazzband/pip-tools huge difference in UX |
@serathius Yes that is what we will use. |
Great. I will start using hatch then. |
Any update on this? |
update? |
@ofek am I right to understand that this is blocked on pypa/pip#988 ? |
@brainwane Yes indeed! |
As this ticket is blocked by the development of pip's dependency resolver pypa/pip#988, I thought I would mention here that the pip team is looking for help from the community to move forward on that subject. We need to better understand the circumstances under which the new resolver fails, so are asking for pip users with complex dependencies to:
You can find more information and more detailed instructions here Thanks! |
To avoid any confusion:
Some people think it’s time to move the dependencies from a tool-specific format and file into a standardized metadata section of pyproject.toml; other think that tools have different needs and philosophies. This is one long discussion about this: https://discuss.python.org/t/structured-exchangeable-lock-file-format-requirements-txt-2-0/876 |
FYI, a few things will happen when pip's resolver gets stabilized:
|
Leaving a note here about the beta of the new resolver in pip 20.2 which can be tried now. |
@brainwane Yup, thanks! I'm ~60% finished the rewrite, which implements PEP 621 and PEP 631. |
pip 20.3 is now out and has the new dependency resolver on by default; folks following this issue, please see the documentation on how to test and migrate. |
Hatch has been rewritten from scratch and now uses PEP 621, see https://ofek.dev/hatch/latest/config/metadata/#dependencies Waiting on PEP 665: https://ofek.dev/hatch/latest/meta/faq/#libraries-vs-applications |
Hi @ofek
Thanks again for this magnificent project! I have a quick question, which is, how are we suppose to track requirements?
I noticed the
requirements.txt
file is a little different than I'm used to seeing:I also noticed, I can install
pip
dependencies usinghatch
, like so:Does this mean I am supposed to track dependencies (for now) using
pip freeze > requirements.txt
or is there some better process?The text was updated successfully, but these errors were encountered: