Skip to content

Commit

Permalink
Generate changelog in Ci
Browse files Browse the repository at this point in the history
  • Loading branch information
timofurrer committed Oct 25, 2019
1 parent 835b26e commit bd96ec8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:
run: |
sphinx-build -W -b html -d doctrees docs/source docs/build/html
sphinx-build -W -b doctest -d doctrees docs/source docs/build/html
- name: Generate CHANGELOG
run: |
towncrier --draft
publish:
needs: [build, docs]
Expand Down
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ recursive-include docs *.ico
recursive-include docs *.bat
prune docs/build

# Changelog
include *.rst
recursive-include changelog *.rst

# Just to keep check-manifest happy; on releases those files are gone.
# Last rule wins!
exclude changelog.d/*.rst
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
"coverage": ["coverage"],
"testing": ["PyYAML"],
# extras for contributors
"docs": ["sphinx"],
"docs": ["sphinx", "towncrier"],
"tests": ["freezegun", "coverage", "pytest", "pytest-mock"],
}
EXTRAS_REQUIRES["dev"] = (
EXTRAS_REQUIRES["tests"] + EXTRAS_REQUIRES["docs"] + ["pre-commit", "towncrier"]
EXTRAS_REQUIRES["tests"] + EXTRAS_REQUIRES["docs"] + ["pre-commit"]
)

#: Holds the contents of the README file
Expand Down
9 changes: 8 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = lint,manifest,py35,py36,py37,py38,integration,docs,coverage-report
envlist = lint,manifest,py35,py36,py37,py38,integration,docs,coverage-report,news


[testenv]
Expand Down Expand Up @@ -59,3 +59,10 @@ basepython = python3.8
deps = check-manifest
skip_install = true
commands = check-manifest


[testenv:news]
basepython = python3.8
deps = towncrier
skip_install = true
commands = towncrier

0 comments on commit bd96ec8

Please sign in to comment.