Distlib

Latest version: v0.3.9

Safety actively analyzes 714772 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

0.3.4

~~~~~

Released: 2021-12-08

- database

- Fixed 153: Raise warnings in get_distributions() if bad metadata seen, but keep
going.

- markers

- Fixed 154: Determine Python versions correctly for Python >= 3.10.

- scripts

- Updated launcher executables.

Code relating to support for Python 2.6 was also removed.

0.3.3

~~~~~

Released: 2021-09-22

- compat

- Fixed 152: Removed splituser() function which wasn't used and is deprecated.

- markers

- Fixed 149: Handle version comparisons correctly in environment markers.

- scripts

- Add ARM-64 launchers and support code to use them. Thanks to Niyas Sait and
Adrian Vladu for their contributions.

- util

- Fixed 148: Handle a single trailing comma following a version. Thanks to Blazej
Floch for the report and suggested fix.

- version

- Fixed 150: Fix incorrect handling of epochs.

- wheel

- Reverted handling of tags for Python >= 3.10 (use 310 rather than 3_10). This is
because PEP 641 was rejected.

- tests

- Made changes relating to implementing CI using GitHub Actions.

0.3.2

~~~~~

Released: 2021-05-29

- locators

- Fixed 141: removed unused regular expression.

- metadata

- Fixed 140: allowed "Obsoletes" in more scenarios, to better handle faulty
metadata already on PyPI.

- resources

- Fixed 146: added entry for SourcelessFileLoader to the finder registry.

- scripts

- Made the generation of scripts more configurable:

- the ``variant_separator`` attribute can be set to determine the separator used
between a script basename and its X.Y variant. The default value is ``'-'``
and would result in a final script basename like ``'foo-X.Y'``, whereas
setting it to ``''`` would result in a final script basename like
``'fooX.Y'``.

- You can also subclass and override the ``get_script_filenames()`` method to
provide a more customised set of file basenames.

- util

- Fixed 140: allowed a trailing comma in constraints, to better handle faulty
metadata already on PyPI.

- Moved get_platform() logic from distutils to here.

- Fixed 143: removed normcase() to avoid some problems on Windows.

- wheel

- Dropped any trailing data when computing the Python tag.

- Added support for manylinux tags.

- Changed handling of tags for Python >= 3.10 (use 3_10 rather than 310).

- Fixed 147: permission bits are now preserved on POSIX when installing from a
wheel.

- tests

- Fixed 139: improved handling of errors related to the test PyPI server.

0.3.1

~~~~~

Released: 2020-06-27

The repository has been migrated to Git. References to earlier changesets (commits) in
issue comments, etc. will be invalid.

- scripts

- Fixed 132: Added documentation to help with relative interpreter paths. Thanks
to Paul Kienzle for the patch.

- Fixed 134: Allowed specifying a different target Python version when generating
scripts.

- Fixed 135: Exposed the ``enquote_executable`` function previously implemented
as an internal function.

- Addressed 138: Improved metadata support for newer metadata versions. Thanks to
James Tocknell for the patch.

- wheel

- Changed the output of flags in entry point definitions. Thanks to frostming (明希)
for the patch.

- Stopped writing JSON metadata. Only old-style metadata is written now.

0.3.0

~~~~~

Released: 2019-10-29

- database

- Issue 102 (partial): modules attribute of InstalledDistribution was
incorrectly computed as a list of bytes, rather than a list of str. This
has now been corrected.

- locators

- Updated Locator._get_digest to check PyPI JSON responses for a "digests"
dictionary before trying "algo_digest" keys. Thanks to Jeffery To for the
patch.

- scripts

- Fixed 123: Improved error message if a resource isn't found.

- Fixed 124: Stopped norm-casing the executable written into shebangs, as
it doesn't work for some non-ASCII paths.

- Fixed 125: Updated launchers with versions that correctly report errors
containing non-ASCII characters. The updated launchers now also support
relative paths (see http://bit.ly/2JxmOoi for more information).

- Changed Python version handling to accommodate versions like e.g. 3.10
(no longer assume a version X.Y where X and Y are single digits).

- util

- Fixed 127: Allowed hyphens in flags in export specifications.

- wheel

- Changed Python version handling to accommodate versions like e.g. 3.10
(no longer assume a version X.Y where X and Y are single digits).

0.2.9

~~~~~

Released: 2019-05-14

- index

- Updated default PyPI URL to https://pypi.org/pypi.

- locators

- Updated default PyPI URL to https://pypi.org/pypi.

- metadata

- Relaxed metadata format checks to ignore 'Provides'.

- scripts

- Fixed 33, 34: Simplified script template.

- Updated Windows launchers.

- util

- Fixed 116: Corrected parsing of credentials from URLs.

- wheel

- Fixed 115: Relaxed check for '..' in wheel archive entries by not
checking filename parts, only directory segments.

- Skip entries in archive entries ending with '/' (directories) when
verifying or installing.

- docs

- Updated default PyPI URL to https://pypi.org/pypi.

- Commented out Disqus comment section.

- Changed theme configuration.

- Updated some out-of-date argument lists.

- tests

- Updated default PyPI URL to https://pypi.org/pypi.

- Preserved umask on POSIX across a test.

Page 2 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.