Skip to content
Merged
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
18 changes: 8 additions & 10 deletions doc/source/_includes/release-notes.rst → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
Release Notes
-------------
1.1.0
~~~~~
# 1.1.0

* **1.1.0 is not released yet.**

1.0.0
~~~~~
# 1.0.0

* The transition of the source code from NumPy to this package is complete.

0.2.0
~~~~~
# 0.2.0

* Removed the use of `numpy.core.overrides.array_function_dispatch` to create
wrappers of the financial functions.
* Support NumPy versions back to 1.15.

0.1.0
~~~~~
# 0.1.0

* This is the initial release of numpy-financial. The functions were
copied from NumPy 1.17.
25 changes: 19 additions & 6 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,25 @@ PyPI trusted publishing. Do not build or upload artifacts by hand.
export PREVIOUS=<previous version number>
export ORG="numpy"
export REPO="numpy-financial"
export NOTES="doc/source/_includes/release-notes.rst"
export NOTES="CHANGELOG.md"
export CHANGES="${VERSION}.md"

- Make sure the test suite is green on `main`, for all operating systems
and Python versions in `.github/workflows/pythonpackage.yml`.

- Write the release notes for ${VERSION} at the top of the version list in
${NOTES}. To get a list of the merged pull requests since the last
release:
- Generate the list of merged pull requests since the last release:

changelist ${ORG}/${REPO} v${PREVIOUS} main --version ${VERSION} --config pyproject.toml
changelist ${ORG}/${REPO} v${PREVIOUS} main --version ${VERSION} --config pyproject.toml --out ${CHANGES}

${CHANGES} is a scratch file. Keep it until the GitHub release is
made, then delete it. Do not commit it.

- Put the generated notes at the top of ${NOTES}:

cat ${CHANGES} | cat - ${NOTES} > temp && mv temp ${NOTES}

Then edit the new section: keep what is useful to a reader, and remove
the rest.

- Set the release version. `__version__` in `numpy_financial/__init__.py`.

Expand Down Expand Up @@ -68,9 +77,13 @@ PyPI trusted publishing. Do not build or upload artifacts by hand.

- go to https://github.com/numpy/numpy-financial/releases/new?tag=v${VERSION}
- add v${VERSION} for the `Release title`
- paste the ${VERSION} section of ${NOTES} in the `Describe this release section`
- paste the contents of ${CHANGES} in the `Describe this release section`
- if pre-release check the box labelled `Set as a pre-release`

- Delete the scratch file:

rm ${CHANGES}

- Update https://github.com/numpy/numpy-financial/milestones:

- close old milestone
Expand Down
6 changes: 5 additions & 1 deletion doc/source/dev/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ Development
checking_out_an_upstream_pr.md


.. include:: ../_includes/release-notes.rst
Release Notes
-------------

.. include:: ../../../CHANGELOG.md
:parser: myst_parser.sphinx_
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ skip = "*-musllinux* *_i686 *-win32"
test-command = "python -c \"import numpy_financial\""

[tool.changelist]
title_template = "{version}"
ignored_user_logins = ["dependabot[bot]", "pre-commit-ci[bot]"]

[tool.ruff.lint]
Expand Down
Loading