diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6546298e..a5467106 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -160,10 +160,12 @@ jobs: python-version: '3.11' task: - name: Check Newsfragment - nox: check_newsfragment + run: | + nox -e check_newsfragment + nox -e draft_newsfragment >> $GITHUB_STEP_SUMMARY run-if: ${{ github.head_ref != 'pre-commit-ci-update-config' }} - name: Check mypy - nox: typecheck + run: nox -e typecheck run-if: true steps: @@ -187,7 +189,9 @@ jobs: - uses: twisted/python-info-action@v1 - - run: nox -e ${{ matrix.task.nox }} + - name: Check + run: | + ${{ matrix.task.run }} if: ${{ matrix.task.run-if }} diff --git a/NEWS.rst b/NEWS.rst index 9db34e74..70db8733 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -5,6 +5,27 @@ Release notes .. towncrier release notes start +towncrier 23.11.0 (2023-11-08) +============================== + +No significant changes since the previous release candidate. + + +Bugfixes +-------- + +- ``build`` now treats a missing fragments directory the same as an empty one, consistent with other operations. (`#538 `_) +- Fragments with filenames like `fix-1.2.3.feature` are now associated with the ticket `fix-1.2.3`. + In previous versions they were incorrectly associated to ticket `3`. (`#562 `_) +- Orphan newsfragments containing numeric values are no longer accidentally associated to tickets. In previous versions the orphan marker was ignored and the newsfragment was associated to a ticket having the last numerical value from the filename. (`#562 `_) + + +Misc +---- + +- `#558 `_, `#559 `_ + + towncrier 23.10.0 (2023-10-24) ============================== diff --git a/noxfile.py b/noxfile.py index bcd7f4ef..d3e7d025 100644 --- a/noxfile.py +++ b/noxfile.py @@ -54,6 +54,12 @@ def check_newsfragment(session: nox.Session) -> None: session.run("python", "-m", "towncrier.check", "--compare-with", "origin/trunk") +@nox.session +def draft_newsfragment(session: nox.Session) -> None: + session.install(".") + session.run("python", "-m", "towncrier.build", "--draft") + + @nox.session def typecheck(session: nox.Session) -> None: # Click 8.1.4 is bad type hints -- lets not complicate packaging and only diff --git a/src/towncrier/_version.py b/src/towncrier/_version.py index 1c086269..020bb62e 100644 --- a/src/towncrier/_version.py +++ b/src/towncrier/_version.py @@ -11,7 +11,7 @@ # For dev - Version('towncrier', 23, 8, 1, dev=0) # For RC - Version('towncrier', 23, 9, 0, release_candidate=1) # For final - Version('towncrier', 23, 9, 0) -__version__ = Version("towncrier", 23, 10, 1, dev=0) +__version__ = Version("towncrier", 23, 11, 1, dev=0) # The version is exposed in string format to be # available for the hatching build tools. _hatchling_version = __version__.short() diff --git a/src/towncrier/newsfragments/538.bugfix b/src/towncrier/newsfragments/538.bugfix deleted file mode 100644 index 3a6fbf34..00000000 --- a/src/towncrier/newsfragments/538.bugfix +++ /dev/null @@ -1 +0,0 @@ -``build`` now treats a missing fragments directory the same as an empty one, consistent with other operations. diff --git a/src/towncrier/newsfragments/558.misc b/src/towncrier/newsfragments/558.misc deleted file mode 100644 index e69de29b..00000000 diff --git a/src/towncrier/newsfragments/559.misc b/src/towncrier/newsfragments/559.misc deleted file mode 100644 index e69de29b..00000000 diff --git a/src/towncrier/newsfragments/562.bugfix b/src/towncrier/newsfragments/562.bugfix deleted file mode 100644 index 623ceab8..00000000 --- a/src/towncrier/newsfragments/562.bugfix +++ /dev/null @@ -1 +0,0 @@ -Orphan newsfragments containing numeric values are no longer accidentally associated to tickets. In previous versions the orphan marker was ignored and the newsfragment was associated to a ticket having the last numerical value from the filename. diff --git a/src/towncrier/newsfragments/562.bugfix.1 b/src/towncrier/newsfragments/562.bugfix.1 deleted file mode 100644 index d751ebe8..00000000 --- a/src/towncrier/newsfragments/562.bugfix.1 +++ /dev/null @@ -1,2 +0,0 @@ -Fragments with filenames like `fix-1.2.3.feature` are now associated with the ticket `fix-1.2.3`. -In previous versions they were incorrectly associated to ticket `3`.