aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/dist.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue with missing author metadataPaul Ganssle2018-11-121-2/+2
| | | | | Prior to this patch, if the author or author_email were omitted from `setup`, a malformed `PKG-INFO` would be created.
* Use write_field in write_pkg_filePaul Ganssle2018-11-071-20/+26
| | | | | | 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.
* Start patching DistributionMetadata.read_pkg_filePaul Ganssle2018-11-071-13/+20
| | | | | | | | | 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.
* Store metadata version on metadata objectPaul Ganssle2018-11-071-2/+6
|
* Add DistributionMetadata.read_pkg_filePaul Ganssle2018-11-071-0/+53
| | | | | This is the baseline, unchanged from the version in distutils.dist, to be modified before patching.
* Add custom deprecation warning classesJunhan Huang2018-10-281-2/+8
| | | | | | | | | | | `DeprecationWarning` is not visible by default in the latest versions of CPython, so this switches the deprecation warnings in setuptools and pkg_resources over to custom classes derived from `Warning` instead. Fixes issue github issue #159 Co-authored-by: Junhan Huang <robin.j.huang@gmail.com> Co-authored-by: Marton Pono <marci93@gmail.com>
* Allow setting long_description_content_type externallyIan Wienand2018-05-171-13/+23
| | | | | | | | | | | | | | | | | | Some tools, such as PBR, might want to set long_description_content_type during the parent object's Distribution.__init__() call (during distutils setup_keywords entry points). However, that field is currently unconditionally overwritten after these calls, erasing the value. We would rather not duplicate the existing method of copying into dist.metadata as done with project_urls. This preserves the fields within Distribution.metadata described by self._DISTUTIULS_UNUPPORTED_METADATA, or otherwise takes it from arguments. A test case that simulates setting the long description and overriding the arguments is added.
* Stop patching write_pkg_infoPaul Ganssle2018-03-181-9/+0
|
* DelintJason R. Coombs2018-03-181-2/+3
|
* When possible, avoid test-specific interfaces in production code.Jason R. Coombs2018-03-181-1/+1
|
* Fix issue with unicode author/maintainer on PY2Paul Ganssle2018-03-171-4/+10
|
* Setuptools now vendors its own direct dependencies (packaging, six, ↵Jason R. Coombs2018-03-171-3/+3
| | | | pyparsing). Ref #1296.
* Merge branch 'master' into HEADJason R. Coombs2018-03-171-1/+3
|\
| * address review comments and squash the empty string extra earlierwim glenn2018-03-161-3/+4
| |
| * fix for regression - spurious "Provides-Extra:" generated in metadatawim glenn2018-03-161-1/+2
| |
* | Add support for maintainer in PKG-INFOPaul Ganssle2018-03-161-12/+36
|/ | | | | Per PEP 345, metadata Version 1.2 should support the Author, Maintainer, Author-Email and Maintainer-Email fields.
* Updates for PEP 566 (Metadata 2.1)Dustin Ingram2018-03-141-4/+23
|
* Remove extraneous attribute copy, artifact of bad merge.Jason R. Coombs2018-01-041-3/+0
|
* Merge branch 'master' into masterJason R. Coombs2018-01-041-5/+7
|\
| * Merge pull request #1207 from cryvate/fix-issue-1206Jason R. Coombs2018-01-041-8/+7
| |\ | | | | | | Add setup.cfg support for long_description_content_type
| | * Rework how to handle long_description_content_typeHenk-Jaap Wagenaar2017-11-251-13/+5
| | |
| | * Add setup.cfg support for long_description_content_type (in line with docs).Henk-Jaap Wagenaar2017-11-211-0/+7
| | |
| * | Disallow unordered sequences for specifying install_requires. Fixes #458.Jason R. Coombs2017-11-251-0/+2
| |/
* / Support PEP 345 Project-URL metadataJeremy Stanley2017-11-221-1/+10
|/ | | | | | | | | | | By including one or more Project-URL entries in PKG-INFO metadata, PyPI can display helpful hyperlinks in a generic manner. Add support here to be able to pass it through setup.cfg and setup.py with a project_urls dict. See the corresponding section of the Core Metadata Specifications from the Python Packaging User Guide for details: https://packaging.python.org/specifications/core-metadata/#project-url-multiple-use
* support `setup_requires` in setup.cfgBenoit Pierre2017-10-161-21/+19
|
* Merge branch 'master' into pr1127Jason R. Coombs2017-09-031-0/+10
|\
| * Add new long_description_content_type kwargMarc Abramowitz2017-08-281-0/+10
| | | | | | | | | | | | | | This is used to populate the new `Description-Content-Type` field. `Description-Content-Type` is described at https://github.com/pypa/python-packaging-user-guide/pull/258
* | workaround easy_install bugBenoit Pierre2017-08-051-30/+24
|/ | | | | | Don't reuse `easy_install` command in `Distribution.fetch_build_egg` implementation. Fix #196.
* fix requires handling when using setup.cfgBenoit Pierre2017-08-021-5/+5
|
* do not strip empty sections in `extras_require`Benoit Pierre2017-07-251-0/+2
|
* Merge branch 'master' of https://github.com/pypa/setuptoolsJason R. Coombs2017-07-241-11/+4
|\
| * Revert "fix `install_requires` handling of extras"Benoit Pierre2017-07-231-7/+4
| | | | | | | | This reverts commit a3ec721ec1e70f1f7aec6c3349ad85b446410809.
* | Extract method capturing the 'suffix' for a marker.Jason R. Coombs2017-07-231-4/+16
| |
* | Parse the requirements just once for simplicity and clarityJason R. Coombs2017-07-231-8/+3
|/
* Align suffix calculation for extras sectionsJason R. Coombs2017-07-231-9/+4
|
* Refactor a bit for clarityJason R. Coombs2017-07-231-9/+12
|
* Consolidate logic around a 'simple' requirementJason R. Coombs2017-07-231-7/+11
|
* Extract a function for removing extras and marker from a requirement.Jason R. Coombs2017-07-231-9/+15
|
* Handle rebuild of install_requires separate from building extras"Jason R. Coombs2017-07-231-7/+12
|
* Use term 'section' consistentlyJason R. Coombs2017-07-231-5/+4
|
* Extract two methods (still interdependent) for fixing requiresJason R. Coombs2017-07-231-9/+19
|
* Consolidate assignment of extras to the key in extras requirements.Jason R. Coombs2017-07-231-5/+3
|
* Extract variable for nicer indentationJason R. Coombs2017-07-231-6/+4
|
* fix `install_requires` handling of extrasBenoit Pierre2017-07-151-3/+9
| | | | | | Internally move requirements in `install_requires` that are using extras to `extras_require` so those extras don't get stripped when building wheels.
* fix `extras_require` handlingBenoit Pierre2017-07-151-23/+23
| | | | | Allow requirements of the form `"extra": ["barbazquux; {marker}"]` by internally converting them to `"extra:{marker}": ["barbazquux"]`.
* fix possible error when finalizing `install_requires`Benoit Pierre2017-07-151-2/+3
|
* DelintJason R. Coombs2017-07-131-20/+31
|
* Use filter and next to directly extract a single failure.Jason R. Coombs2017-07-131-8/+12
|
* Use better variable names and the partition method for simplicity.Jason R. Coombs2017-07-131-7/+6
|
* ReindentJason R. Coombs2017-07-131-11/+12
|