| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Support the same mechanism as for Python sources for declaring
the encoding to be used when reading `setup.cfg` (see PEP 263),
and return the results of reading it as Unicode.
Fix #1062 and #1136.
|
| | | | |
|
| | |/
| |/| |
|
| | | |
|
| | | |
|
| |\ \
| | | |
| | | | |
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.
|
| | | |
|
| |\ \
| | | |
| | | | |
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.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Previously this value was hard-coded to '1.0', which was inaccurate for
many packages.
Fixes #1381
|
| | | | |
|
| |\ \ \
| | | | |
| | | | | |
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.
|
| | | | | |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | | |
This tests that `setup.py` is included by default in the distribution
with the egg_info command and when an sdist is built with
build_meta.build_sdist
|
| |\ \ \
| | | | |
| | | | | |
Deprecate the requires keyword
|
| | |/ /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
For runtime dependencies, install_requires should be used. For build
dependencies, a PEP 518-compliant `pyproject.toml` should be used.
Other dependencies can use extra requirements.
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
These are tests to ensure that the specified deprecation warnings are
raised when the functions are called.
Co-authored-by: Junhan Huang <robin.j.huang@gmail.com>
Co-authored-by: Marton Pono <marci93@gmail.com>
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Also reuse pre-defined py2_only and py3_only decorators where
appropriate.
|
| | | |
|
| | | |
|
| | | |
|
|/ /
| |
| |
| | |
Co-Authored-By: Poyzan Nur Taneli <31743851+ptaneli@users.noreply.github.com>
|
| |
| |
| |
| |
| |
| | |
In the test case, dist.data_files needs to be sorted because the
current implementation loads the configuration files as a dictionary
with arbitrary order on Python < 3.6.
|
| | |
|
| | |
|
| | |
|
| | |
|