diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 840d6e31..5b224d5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,6 +76,11 @@ jobs: - name: Test run: tox -c tox.ini -e ${{ matrix.python.tox }}-tests + - name: Tree + if: always() + shell: bash + run: tree .tox + - name: Codecov run: | codecov -n "GitHub Actions - ${{ matrix.task.name}} - ${{ matrix.os.name }} ${{ matrix.python.name }}" diff --git a/pyproject.toml b/pyproject.toml index 2826ee30..df86fa4d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,3 +53,11 @@ exclude = ''' )/ ) ''' + +[build-system] +requires = [ + "setuptools ~= 44.1.1", + "wheel ~= 0.36.2", + "incremental == 17.5.0", +] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index caaed461..14b8f0f7 100644 --- a/setup.py +++ b/setup.py @@ -4,6 +4,11 @@ from setuptools import setup, find_packages +# If incremental is not present then setuptools just silently uses v0.0.0 so +# let's import it and fail instead. +import incremental + + setup( name="towncrier", maintainer="Amber Brown", @@ -36,7 +41,6 @@ "Programming Language :: Python :: Implementation :: PyPy", ], use_incremental=True, - setup_requires=["incremental"], install_requires=["click", "click-default-group", "incremental", "jinja2", "toml"], package_dir={"": "src"}, packages=find_packages("src"), diff --git a/src/towncrier/newsfragments/314.feature.rst b/src/towncrier/newsfragments/314.feature.rst new file mode 100644 index 00000000..91ce0ef1 --- /dev/null +++ b/src/towncrier/newsfragments/314.feature.rst @@ -0,0 +1 @@ +Support building with PEP 517. diff --git a/tox.ini b/tox.ini index b2256de2..eceb7235 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,9 @@ [tox] envlist = cov-erase, flake8, {pypy27,pypy36,pypy37,py27,py35,py36,py37,py38,py39}-{tests,flake8,check-manifest,check-newsfragment}, cov-report +requires= + virtualenv @ git+https://github.com/altendky/virtualenv@270abf2aa34de9239135206c52cabcacb27e6273 + tox-wheel>=0.6.0 +isolated_build=true skip_missing_envs = true [testenv:flake8] @@ -29,7 +33,7 @@ deps = coverage incremental mock - +wheel = True commands = python -V coverage --version