Skip to content

Commit

Permalink
Test build in CI & prepare release 0.5.1 (#117)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
mlondschien authored Sep 16, 2024
1 parent 6f80109 commit 6230b70
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ on:
types:
- published

name: Build
name: release

jobs:

python-build:
runs-on: ubuntu-latest

Expand All @@ -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
Expand All @@ -49,7 +56,6 @@ jobs:
with:
repository-url: https://test.pypi.org/legacy/


upload-pypi:
needs: [python-build, upload-testpypi]
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

0.5.1 - 2024-09-16
------------------

**Bug fixes:**

- Fixed the ``setuptools`` configuration.

0.5.0 - 2024-08-27
------------------

Expand Down
8 changes: 1 addition & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]" },
Expand All @@ -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}
Expand Down

0 comments on commit 6230b70

Please sign in to comment.