See what’s changed in detail between v2.1.4 and v2.1.6.
See what’s changed in detail between v2.1.4 and v2.1.5.
See what’s changed in detail between v2.1.3 and v2.1.4.
See what’s changed in detail between v2.1.2 and v2.1.3.
See what’s changed in detail between v2.1.1 and v2.1.2.
See what’s changed in detail between v2.1.0 and v2.1.1.
This release includes an experimental feature called 'requirement-annotations' that allows you to declare implicit packages/distributions by using comments.
See what’s changed in detail between v2.0.8 and v2.1.0.
See what’s changed in detail between v2.0.7 and v2.0.8.
See what’s changed in detail between v2.0.6 and v2.0.7.
See what’s changed in detail between v2.0.5 and v2.0.6.
See what’s changed in detail between v2.0.4 and v2.0.5.
See what’s changed in detail between v2.0.3 and v2.0.4.
- Bump certifi from 2022.9.24 to 2022.12.7 (ref: https://github.com/advisories/GHSA-43fp-rhv2-5gv8)
- Fixed os.path.commonpath raises ValueError for different drives.
See what’s changed in detail between v2.0.2 and v2.0.3.
- Ignore absolute path in distributions' installed files.
- Ignore vcs exception when parsing information for EggInfoDistribution.
- Sort searched results, print unknown if version not found.
- Fix dirty records in the index database.
Make absolute import more reliable by searching parent directory as well.
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 generate
to generate requirements.txt.pigar search
to search packages/distributions by the top level module names.pigar check
to check the latest versions of requirements.pigar -h
to explore more.pigar
accepts 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(
pip
named it's module as_internal
so vendoring technology is introduced). - Tweaked some default actions and introduced more options for better user experience.
pigar
will ask user to choose the right packages/distributions ifpigar
has found multiple packages/distributions for the same module names. With--auto-select
enabled,pigar
will guess the best matched one or choose all possible packages/distributions automatically.- Added an option
--dry-run
which allowspigar
to not write a requirements.txt file, just print it. - Added an option
--follow-symbolic-links/--dont-follow-symbolic-links
to let user decide whether to follow the symbolic links, fixed #89. - Added an option
-i/--index-url
to 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-differences
to enable or disable showing the differences when the requirements file is overwritten.
- Introduced
asyncio
to 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.
- Fix requirements list in setup.py #122.
- Support
*.ipynb
magics and shell command, fixed #87. See #102, #117, #118 for details. - Parse requirements file with the more sophisticated utility, fixed #48, #113. See #115 for details.
- Fixed #99, continue if a local package isn't exists. See #107 for details.
- Fixed too many values to unpack error when parsing git config. See #97 for details.
- BREAKING CHANGE: Disable the comments which contain filenames and line numbers by default, use
--with-referenced-comments
to enable this feature. - Skip if local package (edit-mode project) not found, fixed #99.
- Refactored the main logic, the interface has been changed, be careful if you are using
pigar
as a library. - Handle the HTTP error, fixed #61.
- Ignore local packages quietly, fixed #47, #58 and #65.
Thank @bganglia for the following contributions:
- Add Jupyter notebook(
.ipynb
) support, refer to #69. - Option to turn off filenames and line numbers in requirements.txt, refer to #65.
- Fix check path, refer to #64.
- And more.
- Make version comparison operator configurable, fixed #37
- Fixed potential security vulnerabilities by updating requests.
- Fixed #49
- Reuse connections.
- Update database.
- Fixed #44
- Use https://pypi.org/
- Fixed #41
- Fixed #34
- Fixed the .egg suffix which caused by sudo pip install ... on Ubuntu.
- Workaround for special packages, such as #29
- Fixed #26
- Fixed relative import issue.
- Fixed ImportError.
- Supported flask extension.
- Sorted requirements.
- Use gevent if possible.
- If modules in the
try...except...
block, assume they are optional.
- Fixed IndexError.
- Fixed AttributeError.
- Fixed PEP8 warning.
- Removed useless code.
- Cache modules, to avoid duplication of inspection.
Thank @spacewander for the following contributions:
- Fixed error for Python 2.7.6.
- Fixed error when using './xxx' as relative path.
- Support
importlib.import_module
and__import__
.
- Sort files, make comments more clearer.
- Fixed grammar, to make the README clearer. Thank @roryokane and @flyingfisch.
- Make it work with
python -m pigar
. Thank @lilydjwg. - Fixed the pep8 warnings: #15.
- Make output more clearer: #12.
- Fixed UnicodeDecodeError for Python 3.
- If requirements file is overwritten over, show difference between old and new.
- Adjust the structure of the code.
- Fixed typo.
- Follow symlinks.
- Enhancement: issue #7, show imported module come from which files.
- Consider package installed via Git.
- Add command "-i", used to ignore a list of directory.
- Fixed issue #1.
- Make version compare more effective.
- Removed useless code.
- Available in PyPI(https://pypi.python.org/pypi/pigar).
- Generate requirements for Python project.
- Can consider different for different Python versions.
- Search package names by imported names.