mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
47aa2acc90
- Fix how `use_pep517` and `build_isolation` are read from the environment -- introduce a new environment helper to detect `<PREFIX>_<SETTING>` and `<PREFIX>_NO_<SETTING>`, check for booleans and return appropriately boolean, str, or None types - Check for `False` values when adding `--no-use-pep517` and `--no-build-isolation` during resolution rather than falsey values - Change environment variable name from `PIP_PYTHON_VERSION` to `PIPENV_REQUESTED_PYTHON_VERSION` to avoid causing `pip` to fail due to accidentally percieving the `python_version` flag as being set -- this is an artifact from attempting to resolve outside of the virtualenv - Add `pipenv` to the path of patched `notpip.__main__` to accommodate updated import fully qualified module names - Update `pip` and `piptools` patches - Add test packages for each of two known failure modes: outdated `setuptools` with a missing `build-backend` (which `pip` forces to `build_meta:__legacy__` & which doesn't exist before `40.8`), and `import Cython` statements in `setup.py` in packages with properly defined `pyproject.toml` `build-backend` lines. - Fixes #4231 - Replaces, includes, and closes #4242 Signed-off-by: Dan Ryan <dan.ryan@canonical.com> Add integration tests for #4231 Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
53 lines
1.1 KiB
TOML
53 lines
1.1 KiB
TOML
[build-system]
|
|
requires = ["setuptools >= 40.6.0", "setuptools-scm", "cython"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.black]
|
|
line-length = 90
|
|
target_version = ['py27', 'py35', 'py36', 'py37', 'py38']
|
|
include = '\.pyi?$'
|
|
exclude = '''
|
|
/(
|
|
\.eggs
|
|
| \.git
|
|
| \.hg
|
|
| \.mypy_cache
|
|
| \.tox
|
|
| \.pyre_configuration
|
|
| \.venv
|
|
| _build
|
|
| buck-out
|
|
| build
|
|
| dist
|
|
)
|
|
'''
|
|
|
|
[tool.towncrier]
|
|
package = 'cython-import-package'
|
|
package_dir = 'src'
|
|
filename = 'CHANGELOG.rst'
|
|
directory = 'news/'
|
|
title_format = '{version} ({project_date})'
|
|
issue_format = '`#{issue} <https://github.com/sarugaku/cython_import_package/issues/{issue}>`_'
|
|
template = 'tasks/CHANGELOG.rst.jinja2'
|
|
|
|
[[tool.towncrier.type]]
|
|
directory = 'feature'
|
|
name = 'Features'
|
|
showcontent = true
|
|
|
|
[[tool.towncrier.type]]
|
|
directory = 'bugfix'
|
|
name = 'Bug Fixes'
|
|
showcontent = true
|
|
|
|
[[tool.towncrier.type]]
|
|
directory = 'trivial'
|
|
name = 'Trivial Changes'
|
|
showcontent = false
|
|
|
|
[[tool.towncrier.type]]
|
|
directory = 'removal'
|
|
name = 'Removals and Deprecations'
|
|
showcontent = true
|