improvements to pyproject.toml changes

This commit is contained in:
jab 2018-09-17 23:23:46 +00:00
parent 0d0c91fc75
commit 1f5a66c355
5 changed files with 14 additions and 9 deletions

View File

@ -34,7 +34,7 @@ install: # Install our test dependencies.
script: # Run our test suite.
- if [[ -n $COVERAGE ]]; then export PYTEST_ADDOPTS="--cov=bidict --cov-config=.coveragerc"; fi
- pytest tests
- pytest
after_script:

View File

@ -25,7 +25,8 @@ on libraries.io to be notified when new versions of bidict are released.
0.17.3 (not yet released)
-------------------------
- Include some additional supporting files in the source distribution.
- Improve packaging by adding a pyproject.toml
and including more supporting files in the distribution.
0.17.2 (2018-04-30)

View File

@ -1,7 +1,7 @@
[build-system]
requires = [
"setuptools >= 35.0.2",
"wheel >= 0.29.0",
"setuptools_scm"
"setuptools",
"wheel",
"setuptools_scm",
]
build-backend = 'setuptools.build_meta'
build-backend = "setuptools.build_meta"

View File

@ -40,7 +40,10 @@ else:
with c_open(join(CWD, 'README.rst'), encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
SETUP_REQS = ['setuptools_scm']
SETUP_REQS = [
'setuptools_scm',
]
TEST_REQS = [
'hypothesis<4',
'hypothesis-pytest<1',
@ -51,6 +54,7 @@ TEST_REQS = [
'sortedcontainers<2',
]
# Split out coverage from test requirements since it slows down the tests.
COVERAGE_REQS = [
'coverage<5',
'pytest-cov<3',
@ -103,7 +107,7 @@ setup(
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
],
setup_requires=SETUP_REQS, # required so pip < 10 install works (no PEP-517/8 support)
setup_requires=SETUP_REQS, # required so pip < 10 install works (no PEP-517/518 support)
# for more details see https://www.python.org/dev/peps/pep-0518/#rationale
tests_require=TEST_REQS,
extras_require=dict(

View File

@ -4,4 +4,4 @@ envlist = py27, py34, py35, py36, py37, pypy, pypy3
[testenv]
commands =
pip install -e .[test]
py.test
pytest