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

Pigar generating requirements.txt with old version #80

Open
o-felixz opened this issue Aug 24, 2020 · 3 comments
Open

Pigar generating requirements.txt with old version #80

o-felixz opened this issue Aug 24, 2020 · 3 comments

Comments

@o-felixz
Copy link

I just noticed that my pigar installation does not seem to select the latest version of some packages. For example:

  • html5lib == 1.0.1 (latest is 1.1, released 2020-06-23)
  • nltk == 3.4.5 (latest is 3.5, released 2020-04-13)
  • responses == 0.10.16 (latest is 0.11.0, released 2020-08-24)

Is this expected in some way? I notice pigar --update is supposed to "update database" and that all these packages were released after pigar 0.10.0 was (2020-03-14) . Does pigar not check against pypi for the latest version of packages on-demand?

OS: Ubuntu 20.04
Python version: 3.8.2
pigar version: 0.10.0

@damnever
Copy link
Owner

pigar will check the package on PyPI if such a package was not installed in the local environment.

You could run pigar -c /path/to/requirements.txt to see what happens.

@o-felixz
Copy link
Author

Ok, yes pigar -c /path/to/requirements.txt shows a list of installed vs latest packages (and some HTTP + logging errors) which is good, though I can't seem to find a way to upgrade the packages without manual edits?.

Would it be possible to document the current behavior and add a command to automatically update packages to their latest version? Preferably this command/flag would also be available during generation of a requirements file.

@damnever
Copy link
Owner

damnever commented Aug 25, 2020

Would it be possible to document the current behavior?

Documentation is certainly needed. I think the default behavior is acceptable and intuitive since the latest versions may cause problems.

For now, you can delete the requirements.txt, pigar -c will regenerate for you, this is in the document(README/help).

Preferably this command/flag would also be available during generation of a requirements file.

I agree, the additional flag is better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants