Skip to content

Commit

Permalink
Merge pull request #107 from kmike/towncrier
Browse files Browse the repository at this point in the history
Use towncrier to manage changelog
  • Loading branch information
fizyk committed Dec 14, 2022
2 parents 3fd56c2 + 16a4e60 commit 8752132
Show file tree
Hide file tree
Showing 9 changed files with 186 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'Run tests'
- 'Run tests on macos'
- 'Test build package'
- 'Run test commands'

jobs:
merge-me:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run test commands

on:
pull_request:
branches: [ main ]

jobs:
# bump:
# runs-on: ubuntu-latest
# steps:
# - name: Check out repository
# uses: actions/checkout@v3
# - uses: fizyk/actions-reuse/.github/actions/pipenv@v1.6.3
# with:
# python-version: "3.11"
# pipenv-install-options: "--skip-lock"
# command: tbump --dry-run --only-patch $(pipenv run tbump current-version)"-x"
towncrier:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: fizyk/actions-reuse/.github/actions/pipenv@v1.6.3
with:
python-version: "3.11"
pipenv-install-options: "--skip-lock"
command: towncrier check --compare-with origin/main
fetch-depth: 0
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
CHANGELOG
=========

.. towncrier release notes start
0.6.2
----------

Expand Down
12 changes: 12 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]
towncrier = "==22.8"

[requires]
python_version = "3.9"
120 changes: 120 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions newsfragments/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!.gitignore
1 change: 1 addition & 0 deletions newsfragments/107.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use towncrier as a changelog management tool.
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@
requires = ["setuptools >= 40.6.0", "wheel"]
build-backend = "setuptools.build_meta"

[tool.towncrier]
directory = "newsfragments"
single_file=true
filename="CHANGES.rst"
issue_format="`#{issue} <https://https://github.com/kmike/port-for/issues/{issue}>`_"

[tool.towncrier.fragment.feature]
name = "Features"
showcontent = true

[tool.towncrier.fragment.bugfix]
name = "Bugfixes"
showcontent = true

[tool.towncrier.fragment.break]
name = "Breaking changes"
showcontent = true

[tool.towncrier.fragment.misc]
name = "Miscellaneus"
showcontent = true

[tool.black]
line-length = 80
target-version = ['py38']
Expand Down
5 changes: 0 additions & 5 deletions setup.py

This file was deleted.

0 comments on commit 8752132

Please sign in to comment.