Package: pkginfo2
pkginfo2READMEHomepage URL:https://github.com/nexB/pkginfo2SPDX-License-Identifier: MITThis package provides an API for querying the distutils metadata written in
thePKG-INFOfile inside a source distriubtion (ansdist) or a
binary distribution or a wheel (e.g., created by runningbdist_egg).  It can
also query theEGG-INFOdirectory of an installed distribution, and
the*.egg-infostored in a “development checkout”
(e.g, created by runningsetup.py develop), or the*.dist-infofrom
an as-installed package.This is a fork ofhttp://bazaar.launchpad.net/~tseaver/pkginforemoving the
ability to import and eval arbitrary code and work with modules known to the
current interpreter. Use importlib_metadata for this if you need it.Please see thepkginfo2 repo atfor more documentation.pkginfo2Changelog30.0.0 (2022-01-28)Forked and rename to pkginfo2. Removed ability to import or eval packages
or modules.Move the bzr history to git1.8.2 (2021-12-01)Add fix for installed distributions with ‘__package__’ set to an empty
string. LP #1952946.1.8.1 (2021-11-19)Add ‘MANIFEST.in’ to ensure example files used by tests are included
in source distributions.  LP #1951553.1.8.0 (2021-11-18)Support new standard metadata location for installed dists. LP #1865286.Don’t overwrite header-based ‘description’ with empty payload. LP #1885458.Add support for Metadata-Version 2.2. LP #1928729.Add support for uncompressed tarballs for sdists.  LP #1951457.Add support for Python 3.10.1.7.1 (2021-07-09)Use Python3 to build docs, and fix doctest examples to use Python3-
compatible syntax.  LP #1933322.1.7.0 (2021-01-16)Add support for Python 3.9.Drop support for Python 3.5.1.6.1 (2020-10-26)Adjust test classifiers to match supported Python versions. LP #1901127.1.6.0 (2020-10-20)Add support for Python 3.8.
LP #1869854.Drop support for Python 3.4.Update tests to match setuptools’ change, no longer reporting metadata
version for installed packages w/o explicit metadata.  LP #1870197.1.5.0.1 (2019-01-08)Fix broken ‘sdist’.  LP #1639585.1.5.0 (2019-01-07)Fix ‘console_scripts’ entry point syntax.  LP #1810734.Add support for JSON output from the CLI.  LP #1700580.Add support for installed wheels.  E.g., ‘dist-info/’ dirs.  LP #1700200.Harden metadata extraction against unexpected encodings.  LP #1780454.Update tests to match pip/setuptools’ use of new metadata version.
LP #1772274.Add support for Python 3.6 and 3.7.Drop support for Python 3.3.1.4.2 (2018-03-14)Use relative imports in pkginfo modules.  Supports vendoring of the
package into setuptools.Add support forProvides-ExtraandDescription-Content-Typefields.
Perhttps://packaging.python.org/specifications/.  See:  PEP 566.Remove support for old setuptools leavingPKG-INFOin the root of
the project directory.1.4.1 (2016-11-07)Packaging only change (invalid sdist built for 1.4.0).1.4.0 (2016-11-04)Relicense under MIT license:  the PSF license is not suitable for
third-party libraries.1.3.2 (2016-05-24)Packaging-only change (automate fix for wheel built for 1.3.1).1.3.1 (2016-05-24)Packaging-only change (invalid wheel built for 1.3.0).1.3.0 (2016-05-23)Update homepage URL to point to Launchpad, rather than PyPI.Add support for building wheels.Add support for Python 3.5.Drop support for Python 2.6 and 3.2.1.2.1 (2014-01-02)Add overlooked Trove classifier for Python 3.4.1.2 (2014-01-02)Add support for Python 3.4, PyPy3.Add 100% coverage forpkginfo.commandlinemodule.1.2b1 (2013-12-05)Add support for the “wheel” distribution format, along with minimal
metadata 2.0 support (not including new PEP 426 JSON properties).
Code (re-)borrowed from Donald Stuft’stwinepackage.1.1 (2013-10-09)Fix tests to pass with current PyPy releases.1.1b1 (2013-05-05)Support “develop” packages which keep their*.egg-infoin a subdirectory.
Seehttps://bugs.launchpad.net/pkginfo/+bug/919147.Add support for “unpacked SDists” (thanks to Mike Lundy for the patch).1.0 (2013-05-05)No changes from 1.0b2.1.0b2 (2012-12-28)Suppress resource warning leaks reported against clients.Fix ‘commandline’ module under Py3k.1.0b1 (2012-12-28)Add support for Python 3.2 and 3.3, including testing them undertox.Add support for PyPy, including testing it undertox.Test supported Python versions undertox.Drop support for Python 2.5.Add asetup.py devalias:  runssetup.py developand installs
testing extras (noseandcoverage).0.9.1 (2012-10-22)Fix test failure under Python >= 2.7, which is enforcing
‘metadata_version == 1.1’ because we have classifiers.0.9 (2012-04-25)Fix introspection of installed namespace packages.
They may be installed as eggs or via dist-installed ‘egg-info’ files.https://bugs.launchpad.net/pkginfo/+bug/934311Avoid a regression in 0.8 under Python 2.6 / 2.7 when parsing unicode.https://bugs.launchpad.net/pkginfo/+bug/733827/comments/30.8 (2011-03-12)Work around Python 2.7’s breakage of StringIO.  Fixeshttps://bugs.launchpad.net/pkginfo/+bug/733827Fix bug in introspection of installed packages missing the__package__attribute.0.7 (2010-11-04)Preserve newlines in thedescriptionfield.  Thanks to Sridhar
Ratnakumar for the patch.100% test coverage.0.6 (2010-06-01)Replace use ofStringIO.StringIOwithio.StringIO, where available
(Python >= 2.6).Replace use ofrfc822stdlib module withemail.parser, when
available (Python >= 2.5).  Ensured that distributions “unfold” wrapped
continuation lines, stripping any leading / trailing whitespace, no matter
which module was used for parsing.Remove bogus testing dependency onzope.testing.Add tests that the “environment markers” spelled out in the approved
PEP 345 are captured.AddProject-URLfor1.2PKG-INFO metdata (defined in the accepted
version of PEP 345).0.5 (2009-09-11)Marked package as non-zip-safe.Fix Trove metadata misspelling.Restore compatibility with Python 2.4.Note that the introspection of installed packages / modules works only
in Python 2.6 or later.AddIndexclass as an abstraction over a collection of distributions.Adddownload_url_prefixargument topkginfoscript.  If passed,
the script will use the prefix to synthesize adownload_urlfor
distributions which do not supply that value directly.0.4.1 (2009-05-07)Fix bugs in handling of installed packages which lack__file__orPKG-INFO.0.4 (2009-05-07)Extend the console script to allow output as CSV or INI.  Also, added
arguments to specify the metadata version and other parsing / output
policies.Add support for the different metadata versions specified in PEPs
241, 314, and 345.  Distributions now parse and expose only the attributes
corresponding to their metadata version, which defaults to the version
parsed from thePKG-INFOfile.  The programmer can override that version
when creating the distribution object.0.3 (2009-05-07)Add support for introspection of “development eggs” (checkouts withPKG-INFO, perhaps created viasetup.py develop).Add a console script,pkginfo, which takes one or more paths
on the command line and writes out the associated information.  Thanks
torunehfor the patch!Addget_metadatahelper function, which dispatches a given path or
module across the available distribution types, and returns a distribution
object.  Thanks torunehfor the patch!Make distribution objects support iteration over the metadata fields.
Thanks torunehfor the patch!MakeDistributionand subclasses new-style classes.  Thanks torunehfor the patch!0.2 (2009-04-14)Add support for introspection ofbdist_eggbinary distributions.0.1.1 (2009-04-10)Fix packaging errors.0.1 (2009-04-10)Initial release.