summaryrefslogtreecommitdiff
path: root/setuptools/build_meta.py
Commit message (Collapse)AuthorAgeFilesLines
* Apply suggestions from code reviewAnderson Bravalheri2023-03-191-1/+1
| | | Co-authored-by: Ed Morley <501702+edmorley@users.noreply.github.com>
* Cluster deprecations due_dateAnderson Bravalheri2023-03-071-1/+1
|
* Use new warnings in setuptools/build_meta.pyAnderson Bravalheri2023-03-071-6/+9
|
* Import SetuptoolsDeprecationWarning from setuptools.warningsAnderson Bravalheri2023-03-061-1/+1
|
* Make __file__ an absolute path in setuptools.build_metahauntsaninja2023-01-241-1/+1
| | | | | | | | | This is a difference between pip's legacy wheel build (or direct invocations of setup.py) and the PEP 517 build. While setup.py scripts that rely on this are fragile, it was quite painful to debug! Since Python 3.4, `__file__` is usually an absolute path, so this change might result in fewer surprises.
* Use hidden directory to not interfere with discoveryAnderson Bravalheri2022-11-221-1/+2
|
* Improve warnings in editable installAnderson Bravalheri2022-08-261-3/+4
|
* Remove unused importAnderson Bravalheri2022-08-151-1/+1
|
* Refactor code to bubble up info directories in build_metaAnderson Bravalheri2022-08-151-25/+18
|
* Revert change in dist_info search for build_metaAnderson Bravalheri2022-08-151-9/+24
|
* Add compat mode to editable installAnderson Bravalheri2022-08-031-11/+4
| | | | | | | | This is only a transitional measure that can be temporarily used by users to help them to adapt to the PEP 660 implementation. In this commit the argument for the `editable_wheel` command is changed from the flag form `--strict` to `--mode=strict`.
* Add prepare_metadata_for_build_editable to build_meta.__all__Anderson Bravalheri2022-08-021-0/+1
|
* Merge 'upstream/main' into feature/pep660Anderson Bravalheri2022-07-211-1/+1
|\
| * build_meta: execute code directlyAnderson Bravalheri2022-07-041-1/+1
| | | | | | | | | | The `exec` function in Python should be able to execute code directly. Using `compile` and then `exec` seem to cause an overhead.
* | Allow users to opt-into previous "develop" behaviorAnderson Bravalheri2022-06-251-24/+33
| |
* | build_meta: Allow dist-info and egg-info to coexistAnderson Bravalheri2022-06-211-26/+21
| | | | | | | | | | | | | | PEP 517 does not care if other directories/files are left behind in the `metadata_directory`, as long as a `.dist_info` directory is produced at the root. We can leave the `.egg-info` directory behind, so this way we don't have to run it again when listing files from `build_py`.
* | Address errors in tests for WindowsAnderson Bravalheri2022-06-171-4/+4
| |
* | build_meta.build_editable: Add tests for config_settingsAnderson Bravalheri2022-06-161-9/+17
| |
* | Consider config_settings in build_editableAnderson Bravalheri2022-06-161-6/+10
| |
* | Prefer 'verbose' and 'quiet' instead of 'log-level'Anderson Bravalheri2022-06-161-21/+23
| |
* | Support --build-option alongside --global-optionAnderson Bravalheri2022-06-161-6/+17
| | | | | | | | | | | | `--build-option` should be used as a escape hatch to pass command specific options, while `--global-option` can be used to pass flags like `--quiet` or `--verbose`.
* | build_meta: Consider --global-option and --build-optionAnderson Bravalheri2022-06-161-34/+82
| |
* | Make the dist info args translation privateAnderson Bravalheri2022-06-161-2/+7
| | | | | | | | | | It requires changes in other parts of the build system/commands to be able to be used.
* | Add translator for config_settings to build_metaAnderson Bravalheri2022-06-161-31/+126
| |
* | Re-use dist-info dir for build_editableAnderson Bravalheri2022-06-151-1/+2
| |
* | Add prepare_metadata_for_build_editable hookAnderson Bravalheri2022-06-151-2/+9
| |
* | Fix flake8 errors with build_metaAnderson Bravalheri2022-06-151-2/+0
| |
* | Fix signature for build_editable according to PEP 660Anderson Bravalheri2022-06-151-1/+1
| |
* | Change build_meta to use --output-dir instead of --egg-base for dist-infoAnderson Bravalheri2022-06-151-1/+1
| |
* | include pep660 proof of concept (#3082)Anderson Bravalheri2022-04-221-0/+21
|\ \ | |/ |/|
| * include pep660 proof of conceptDaniel Holth2022-02-041-0/+21
| |
* | Merge pull request #2876 from gentlegiantJGC/mainJason R. Coombs2022-02-121-2/+19
|\ \ | | | | | | Fixed string list concatenation error
| * | Make _BuildMetaBackend._fix_config static and add tests.Jason R. Coombs2022-02-121-1/+15
| | |
| * | Use always_iterable to fix --global-option in one expression.Jason R. Coombs2022-02-121-3/+4
| | |
| * | Merge branch 'main' into gentlegiantJGC/mainJason R. Coombs2022-02-121-3/+2
| |\ \
| * | | Update build_meta.pygentlegiantJGC2021-11-131-0/+2
| | |/ | |/|
* | | Remove new style class declaration, now the default.Jason R. Coombs2022-02-121-1/+1
| | |
* | | Remove duplicate invocations of _BuildMetaBackend._fix_config.Jason R. Coombs2022-02-121-2/+0
| |/ |/|
* | Move requirements processing to _reqs module. Add parse function.Jason R. Coombs2022-02-051-12/+2
| |
* | In build_meta, remove dependency on pkg_resources.Jason R. Coombs2022-02-051-2/+11
|/
* Suppress 'setup.py install' warning under bdist_wheel. Fixes #2847.Jason R. Coombs2021-11-031-2/+11
|
* Remove superfluous else.Jason R. Coombs2021-03-221-2/+1
|
* fixup! build_meta: produce informative error when a dist is not foundlayday2021-03-211-2/+4
|
* fixup! fixup! build_meta: produce informative error when a dist is not foundlayday2021-03-211-3/+3
|
* build_meta: produce informative error when a dist is not foundlayday2021-03-161-2/+6
| | | | | | | | | | Previously, when `build_sdist` or `build_wheel` were unable to build a distribution (and were therefore unable to find the distribution file), they would throw a ValueError: not enough values to unpack (expected 1, got 0) which did not offer any clues as to where the issue might lie.
* Remove Python 2 compatibilityJason R. Coombs2020-08-161-17/+4
|
* get_requires_for_build* hooks rely on 'installing' setup_requiresThomas Kluyver2020-08-061-4/+5
|
* Don't install setup_requires when run as a PEP-517 backend.Thomas Kluyver2020-08-061-1/+18
| | | | | | Under PEP-517, installing build dependencies is up to the frontend. Closes gh-2303
* Remove pkg_resources.py31compat.makedirs() in favor of the stdlibJon Dufresne2020-02-161-2/+1
| | | | | As setuptools is now python 3.5+, this compatibility shim is no longer necessary.
* 👹 Feed the hobgoblins (delint).Jason R. Coombs2020-01-191-8/+16
|