Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"),
Expand Down
1 change: 1 addition & 0 deletions src/towncrier/newsfragments/314.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support building with PEP 517.
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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]
Expand Down Expand Up @@ -29,7 +33,7 @@ deps =
coverage
incremental
mock

wheel = True
commands =
python -V
coverage --version
Expand Down