| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |\ \ \ \
| | | | | |
| | | | | | |
In build_meta (PEP 517), always built gztar
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
that a zip sdist should be generated. Fixes #1623.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| |/ / / / |
|
| | | | | |
|
| |\ \ \ \
| | | | | |
| | | | | | |
Spelling fixes
|
| | | | | | |
|
| |\ \ \ \ \
| | | | | | |
| | | | | | | |
Disallow files for license inputs
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Both the old and new approaches are deeply unsatisfying to me, but
without reworking how these test commands are run, I think this is
about as close as we can get to enforcing that this specific call
raises ValueError.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The ability to handle files was originally added and documented based on
a misunderstanding of what the `license` field should include. The field
should be the name of the license, not the full text.
It is likely that anyone actually using this was outputing malformed
PKG-INFO files, because most license files contain newlines.
See GH issue #1551
|
| | |/ / / /
| |/| | | | |
|
| |/ / / / |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This both prevents the warning from surfacing during the tests and
ensures that no regressions occur.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes GH issue #1612, bug introduced in commit 0902f02d9d68f18
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| |\ \ \ \
| | |_|_|/
| |/| | | |
added unittest for _download_git
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Prior to this patch, if the author or author_email were omitted from
`setup`, a malformed `PKG-INFO` would be created.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This comment is not used anywhere and `platform.dist()` is deprecated.
See CPython PR #10414: https://github.com/python/cpython/pull/10414
and bpo-35186: https://bugs.python.org/issue35186
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The `upload.show_response` feature was not added until Python 3. Rather
than backport it, it is now enabled only if supported.
This also adds a "smoke test" for the feature.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This fixes uploads when bdist_rpm or bdist_dumb are the command, both of
which insert a comment about what platform they are built for.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This fixes an issue where `distutils.spawn.spawn` was not available in
the ported upload_file, which is only used when signing the data.
This also adds a test that the gpg signature command is invoked and
included in the uploaded data.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
`test_upload_metadata` was written before the fixture, so this updates
the test to use the fixture.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is a fixture to create an upload command with a patched version of
urlopen so that no HTTP queries are sent.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Rather than writing to a file in a temporary directory, we can write to
and read from an in-memory buffer, now that the encoding functionality
in write_pkg_file is fixed.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This creates a wrapper function for writing fields in the PKG-INFO file,
both to simplify the syntax and to add a point where we can inject an
encoding function in order to support Python 2.7 compatibility.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Previously this value was hard-coded to '1.0', which was inaccurate for
many packages.
Fixes #1381
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This turns get_metadata_version into a method on DistributionMetadata,
populated either by inferrence (in the case of package metadata
specified in `setup`) or from the data in a specified PKG-INFO file.
To populate metadata_version from PKG-INFO, we need to monkey patch
read_pkg_file in addition to write_pkg_file.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is the baseline, unchanged from the version in distutils.dist, to
be modified before patching.
|
| | | | | |
|
| |\ \ \ \
| | | | | |
| | | | | | |
Add futures and backport to Python 2.7 test requirements
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
`setuptools.tests.test_build_meta` relies on the Python 3 feature
`concurrent.futures` to run, and as a result has been silently skipped
in Python 2.7. This adds the `futures` backport to the 2.7 test
requirements and turns the `pytest.importorskip` invocations in test_build_meta
into standard import statements.
|