v2.0.0
Thanks for all the feedback and contributions, try the v2: pip install pigar==2.0.0.
This version has changed a lot of things, most of them are BREAKING CHANGEs!
- Dropped support for Python versions older than 3.7.
- Redesigned the command line interface.
pigar generateto generate requirements.txt.pigar searchto search packages/distributions by the top level module names.pigar checkto check the latest versions of requirements.pigar -hto explore more.pigaraccepts a prefix for a command, such aspigar gen,pigar c.
- Refactored a lot of code and interfaces.
- Vendoring the pip to access more sophisticated utilities(
pipnamed it's module as_internalso vendoring technology is introduced). - Tweaked some default actions and introduced more options for better user experience.
pigarwill ask user to choose the right packages/distributions ifpigarhas found multiple packages/distributions for the same module names. With--auto-selectenabled,pigarwill guess the best matched one or choose all possible packages/distributions automatically.- Added an option
--dry-runwhich allowspigarto not write a requirements.txt file, just print it. - Added an option
--follow-symbolic-links/--dont-follow-symbolic-linksto let user decide whether to follow the symbolic links, fixed #89. - Added an option
-i/--index-urlto allow the custom URL of the Python Package Index, fixed #52. - Removed the spaces from requirements specifier, fixed #86.
- Added an option
--show-differences/--dont-show-differencesto enable or disable showing the differences when the requirements file is overwritten.
- Introduced
asyncioto synchronize distributions' metadata with the PyPI, the process is much faster now. - Refactored the code to make the index database more reliable.
- Add unique contstraints to avoid duplicate records, fixed #119.
- Store versions in the database to do incremental index synchronization.