From 6230b7097e230c2d78447c4a40ec3da22fb7b0f3 Mon Sep 17 00:00:00 2001 From: Malte Londschien <61679398+mlondschien@users.noreply.github.com> Date: Mon, 16 Sep 2024 11:46:27 +0200 Subject: [PATCH] Test build in CI & prepare release 0.5.1 (#117) * Test build in CI. * Fix ci. * Once is enough. * Move up one folder. * Get rid of tool.setuptools entries in pyproject.toml * Test some more. * Prepare release. --- .github/workflows/build.yaml | 10 ++++++++-- CHANGELOG.rst | 7 +++++++ pyproject.toml | 8 +------- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7fe331c..41b0e37 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -4,9 +4,10 @@ on: types: - published -name: Build +name: release jobs: + python-build: runs-on: ubuntu-latest @@ -24,6 +25,12 @@ jobs: - name: Build source distribution and wheel run: python -m build --sdist --wheel + - name: Install wheel + run: python -m pip install dist/*.whl + + - name: Test import + run: cd .. && python -c "from ivmodels import KClass;import ivmodels.tests;from ivmodels.quadric import Quadric" + - uses: actions/upload-artifact@v3 with: name: wheels @@ -49,7 +56,6 @@ jobs: with: repository-url: https://test.pypi.org/legacy/ - upload-pypi: needs: [python-build, upload-testpypi] runs-on: ubuntu-latest diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 222b29d..79bf752 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,13 @@ Changelog ========= +0.5.1 - 2024-09-16 +------------------ + +**Bug fixes:** + +- Fixed the ``setuptools`` configuration. + 0.5.0 - 2024-08-27 ------------------ diff --git a/pyproject.toml b/pyproject.toml index c83a6d9..4398a61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ requires = ['setuptools', 'setuptools-scm', 'wheel'] name = "ivmodels" description = "IV Models" readme = "README.md" -version = "0.5.0" +version = "0.5.1" requires-python = ">=3.7" authors = [ { name = "Malte Londschien", email = "malte@londschien.ch" }, @@ -28,12 +28,6 @@ known_first_party = "ivmodels" skip_glob = '\.eggs/*,\.git/*,\.venv/*,build/*,dist/*' default_section = 'THIRDPARTY' -[tool.setuptools] -py-modules = ["ivmodels"] - -[tool.setuptools.packages.find] -include = ["ivmodels.*"] - [tool.poetry.dependencies] sphinx = {version = "^3", optional = true} sphinx-autodoc-typehints ={version = "^1.11.1", optional = true}