diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd3cb6002..798db8bed 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,5 @@ jobs: - uses: actions/setup-python@v2 with: python-version: 3.8 - - run: | - python -m pip install requests - python .ci/release_check.py src/iminuit/version.py doc/changelog.rst + - run: python -m pip install requests + - run: python .ci/release_check.py src/iminuit/version.py doc/changelog.rst diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 0c6886a00..1f4b597f1 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -76,6 +76,7 @@ jobs: path: dist/*.tar.gz upload: + if: "github.event.release.release" needs: [wheels, sdist] runs-on: ubuntu-latest steps: @@ -84,17 +85,7 @@ jobs: name: artifact path: dist - - name: Prerelease - if: "github.event.release.prerelease" - uses: pypa/gh-action-pypi-publish@master - with: - user: __token__ - password: ${{secrets.test_pypi_password}} - repository_url: https://test.pypi.org/legacy/ - - - name: Release - if: "github.event.release.release" - uses: pypa/gh-action-pypi-publish@master + - uses: pypa/gh-action-pypi-publish@master with: user: __token__ password: ${{secrets.pypi_password}} diff --git a/doc/changelog.rst b/doc/changelog.rst index a929a2e4e..c485f88c6 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -5,8 +5,9 @@ Changelog ========= -2.0 (???, 2020) ------------------ +2.0.0 (December 7, 2020) +------------------------ + This is a breaking change for iminuit. Interface that was deprecated in 1.x has been removed. In addition, breaking changes were made to the interface to arrive at a clean minimal state that is easier to learn, safer to use, and ready for the long-term future. **To keep existing scripts running, pin your major iminuit version to <2**, i.e. ``pip install 'iminuit<2'`` installs the 1.x series. Under the hood, Cython was replaced with pybind11 to generate the bindings to the C++ Minuit2 library. This simplified the code considerably (Cython is bad at generating correct C++ bindings, while it is a breeze with pybind11).