Skip to content
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

Allow installing packages that were current at a defined date #12727

Closed
1 task done
schymans opened this issue May 24, 2024 · 2 comments
Closed
1 task done

Allow installing packages that were current at a defined date #12727

schymans opened this issue May 24, 2024 · 2 comments
Labels
C: finder PackageFinder and index related code resolution: duplicate Duplicate of an existing issue/PR type: feature request Request for a new feature

Comments

@schymans
Copy link

What's the problem this feature will solve?

Copying from pypi/warehouse#6215:

I keep running into the same problem again and again: Trying to re-use an old set of jupyter notebooks for which the environment is described in a requirements.txt file, but without explicit versions of the packages, because the user did not run pip freeze at the time. I know the date of when the notebooks ran successfully (e.g. 2021-01-01), but now they don't run any more, because some python packages got deprecated or updated in a backwards-incompatible way. Instead of specifying the version of each single package in requirements.txt that was current on 2021-01-01, I would like to create an environment with the versions of packages that were up-to-date on 2021-01-01.

Describe the solution you'd like

pip install --as-of 2021-01-01 -r requirements.txt

Alternative Solutions

This could be done by running pypi-timemachine for 2021-01-01 in one terminal window (pypi-timemachine 2021-01-01 --port 5000 and then executing in another terminal window e.g. pip install --index-url http://localhost:5000/ -r requirements.txt. However, this is very difficult to automate, so it would be really great if the date could be passed directly to the pip install command.

Additional context

See pypi/warehouse#6215 for more discussion.

Code of Conduct

@schymans schymans added S: needs triage Issues/PRs that need to be triaged type: feature request Request for a new feature labels May 24, 2024
@dtrodrigues
Copy link
Contributor

Is this the same as #6257?

@ichard26
Copy link
Member

Yup. Thanks!

@ichard26 ichard26 closed this as not planned Won't fix, can't repro, duplicate, stale May 25, 2024
@ichard26 ichard26 added resolution: duplicate Duplicate of an existing issue/PR C: finder PackageFinder and index related code and removed S: needs triage Issues/PRs that need to be triaged labels May 25, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: finder PackageFinder and index related code resolution: duplicate Duplicate of an existing issue/PR type: feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

3 participants