summaryrefslogtreecommitdiff
path: root/setuptools/command/egg_info.py
Commit message (Collapse)AuthorAgeFilesLines
* Cluster deprecations due_dateAnderson Bravalheri2023-03-071-2/+2
|
* Use new warnings in setuptools/command/egg_info.pyAnderson Bravalheri2023-03-071-18/+34
|
* Fix error when integrating with pipAnderson Bravalheri2023-02-141-1/+2
|
* Allow None to be passed to egg_basenameAnderson Bravalheri2023-02-011-2/+2
|
* Fix dist-info naming discrepancy in relation to bdist_wheelAnderson Bravalheri2023-01-241-7/+3
|
* Implement alternative for pkg_resources.Distribution.egg_name in egg_info.pyAnderson Bravalheri2023-01-241-1/+22
|
* Prefer packaging instead of pkg_resources in egg_info.pyAnderson Bravalheri2023-01-231-6/+3
|
* Prefer setuptools._normalization instead of pkg_resources in egg_info.pyAnderson Bravalheri2023-01-231-5/+6
|
* Log referenced files when loggingAnderson Bravalheri2023-01-201-1/+2
|
* Add files referenced by file: directive in setup.cfg to sdistAnderson Bravalheri2023-01-191-0/+7
|
* Merge branch 'main' into debt/remove-legacy-versionJason R. Coombs2023-01-141-23/+39
|\
| * Catching the exception of utime in order to provide a path to the file that ↵Andrzej Kaczmarczyk2022-11-281-1/+5
| | | | | | | | was subject to the utime call; originally, the exception from utime does not point to this filepath. Ref #3667.
| * Merge 'upstream/main' into feature/pep660Anderson Bravalheri2022-07-041-1/+0
| |\
| | * setuptools: drop support for installing an entrypoint dependenciesBenoit Pierre2022-07-021-1/+0
| | | | | | | | | | | | | | | | | | | | | It does not work (broken since `v60.8.0`: the code in `_install_dependencies` forgets to add the newly installed egg to `sys.path`), and is unnecessary as it's the job of the code handling `setup_requires` to ensure all necessary build requirements are installed.
| * | Allow egg-info directory to be ignored in manifestAnderson Bravalheri2022-06-151-1/+12
| |/
| * Restore tags in egg_info but change the idempotency checkAnderson Bravalheri2022-03-291-4/+9
| |
| * Fix duplicated version tags in egg_infoAnderson Bravalheri2022-03-291-2/+7
| | | | | | | | | | | | | | | | | | | | | | Previously egg_info was adding duplicated tags to the version string. This was happening because of the version normalization. When the version normalization was applied to the string the tag was modified, then later egg_info could no longer recognize it before applying. The fix for this problem was to normalize the tag string before applying.
| * Prefer jaraco.text for yield_lines.Jason R. Coombs2022-02-061-1/+2
| |
| * Refactor _entry_points to separate loading from rendering. Explicitly ↵Jason R. Coombs2022-02-061-1/+2
| | | | | | | | validate and restore validation of entry points that don't match the pattern.
| * Extract module for entry point management.Jason R. Coombs2022-02-061-38/+2
| |
| * In egg_info, port use of pkg_resources.EntryPoint to importlib.metadataJason R. Coombs2022-02-061-3/+11
| |
| * Extract function for converting entry points to a string.Jason R. Coombs2022-02-061-6/+14
| |
| * Refactor to extract entry_points_definition generation.Jason R. Coombs2022-02-061-16/+23
| |
| * Refactor to construct data in a single expression and extract 'to_str'.Jason R. Coombs2022-02-061-7/+9
| |
| * Remove duplicate check on ep is None.Jason R. Coombs2022-02-061-1/+1
| |
| * Avoid dual-use variable.Jason R. Coombs2022-02-061-3/+3
| |
| * Migrate remainder of 'iter_entry_points' to importlib_metadata.Jason R. Coombs2022-02-061-5/+6
| |
* | Merge branch 'main' into debt/remove-legacy-versionJason R. Coombs2022-02-121-7/+3
|\ \ | |/
| * Replace use of parse_requirements with simple constructor.Jason R. Coombs2022-02-051-7/+3
| |
* | Merge branch 'main' into debt/remove-legacy-versiondebt/remove-legacy-versionJason R. Coombs2021-11-141-0/+21
|\ \ | |/
| * Use warning instead of log for distutils commandAnderson Bravalheri2021-11-051-2/+3
| | | | | | | | | | As discussed in #2855, using an actual warning instead of the logger allow users to control what gets displayed via warning filters.
| * Handle custom build_py inheriting from distutilsAnderson Bravalheri2021-11-041-1/+9
| | | | | | | | | | | | | | | | | | According to #2849, some projects, including important data-science packages rely on `distutils` when creating custom commands, instead of extending the ones provided by setuptools. This change should accomodate this use case, while also warning the users to migrate.
| * Reformat docstring and rewrite in imperative voice.Jason R. Coombs2021-11-021-4/+5
| |
| * Fix 1461: Better loop breaker for `manifest_maker`Anderson Bravalheri2021-11-011-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The inconsistency for the `package_data` configuration in sdists when `include_package_data=True` in #1461 have been causing some problems for the community for a while, as also shown in #2835. As pointed out by [@jaraco](https://github.com/pypa/setuptools/issues/1461#issuecomment-749092366), this was being caused by a mechanism to break the recursion between the `egg_info` and `sdist` commands. In summary the loop is caused by the following behaviour: - the `egg_info` command uses a subclass of `sdist` (`manifest_maker`) to calculate the MANIFEST, - the `sdist` class needs to know the MANIFEST to calculate the data files when `include_package_data=True` Previously, the mechanism to break this loop was to simply ignore the data files in `sdist` when `include_package_data=True`. The approach implemented in this change was to replace this mechanism, by allowing `manifest_maker` to override the `_safe_data_files` method from `sdist`. --- Please notice [an extensive experiment] (https://github.com/abravalheri/experiment-setuptools-package-data) was carried out to investigate the previous confusing behaviour. There is also [a simplified theoretical analysis] (https://github.com/pyscaffold/pyscaffold/pull/535#issuecomment-956296407) comparing the observed behavior in the experiment and the expected one. This analysis point out to the same offender indicated by [@jaraco](https://github.com/pypa/setuptools/issues/1461#issuecomment-749092366) (which is being replaced in this change).
* | Merge branch 'main' into debt/remove-legacy-versionJason R. Coombs2021-10-221-63/+75
|\ \ | |/
| * Overwrite exlude from MANIFEST with license_files optionMarc Mueller2021-05-231-1/+1
| | | | | | | | | | * needed for 'License-File' metadata, as this is written before MANIFEST is read
| * Remove license_files_computed fieldMarc Mueller2021-05-231-1/+1
| |
| * Add License-File field to package metadataMarc Mueller2021-05-231-1/+8
| |
| * Revert "Merge pull request #2533 from pypa/fix/2529"Jason R. Coombs2021-01-161-6/+4
| | | | | | | | | | This reverts commit ef457b2e4eb215ab9d730afbd61a10ed3b118d3c, reversing changes made to d2b1f7ebd6ebd57b4a50bc6660e93b31129bacb4.
| * Merge pull request #2518 from webknjaz/maintenance/flake8-mccabe-complexityJason R. Coombs2021-01-161-62/+67
| |\ | | | | | | Enable McCabe complexity check in flake8
| | * Apply noqa C901 comments to overly complex codeSviatoslav Sydorenko2020-12-311-1/+1
| | |
| | * Simplify `egg_info.FileList.process_template_line`Sviatoslav Sydorenko2020-12-311-61/+66
| | |
| * | Correctly handle normalized tagsfix/2529Dustin Ingram2021-01-151-4/+6
| |/
* | egg_info: avoid non-PEP440 versions from tag_dateChih-Hsuan Yen2020-12-251-1/+1
|/
* Extract method for maybe_tag.Jason R. Coombs2020-10-061-6/+11
|
* Remove Python 2 compatibilityJason R. Coombs2020-08-161-8/+4
|
* Fix exception causes all over the codebaseRam Rachum2020-06-281-2/+2
|
* 👹 Feed the hobgoblins (delint).Jason R. Coombs2020-01-191-4/+8
|
* Fix for Python 4: replace unsafe six.PY3 with PY2Hugo2020-01-081-1/+1
|
* Merge branch 'master' into license-fix-357Jason R. Coombs2019-01-271-2/+12
|\