Skip to content

Commit 6230b70

Browse files
authored
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.
1 parent 6f80109 commit 6230b70

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ on:
44
types:
55
- published
66

7-
name: Build
7+
name: release
88

99
jobs:
10+
1011
python-build:
1112
runs-on: ubuntu-latest
1213

@@ -24,6 +25,12 @@ jobs:
2425
- name: Build source distribution and wheel
2526
run: python -m build --sdist --wheel
2627

28+
- name: Install wheel
29+
run: python -m pip install dist/*.whl
30+
31+
- name: Test import
32+
run: cd .. && python -c "from ivmodels import KClass;import ivmodels.tests;from ivmodels.quadric import Quadric"
33+
2734
- uses: actions/upload-artifact@v3
2835
with:
2936
name: wheels
@@ -49,7 +56,6 @@ jobs:
4956
with:
5057
repository-url: https://test.pypi.org/legacy/
5158

52-
5359
upload-pypi:
5460
needs: [python-build, upload-testpypi]
5561
runs-on: ubuntu-latest

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
=========
33

4+
0.5.1 - 2024-09-16
5+
------------------
6+
7+
**Bug fixes:**
8+
9+
- Fixed the ``setuptools`` configuration.
10+
411
0.5.0 - 2024-08-27
512
------------------
613

pyproject.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires = ['setuptools', 'setuptools-scm', 'wheel']
55
name = "ivmodels"
66
description = "IV Models"
77
readme = "README.md"
8-
version = "0.5.0"
8+
version = "0.5.1"
99
requires-python = ">=3.7"
1010
authors = [
1111
{ name = "Malte Londschien", email = "malte@londschien.ch" },
@@ -28,12 +28,6 @@ known_first_party = "ivmodels"
2828
skip_glob = '\.eggs/*,\.git/*,\.venv/*,build/*,dist/*'
2929
default_section = 'THIRDPARTY'
3030

31-
[tool.setuptools]
32-
py-modules = ["ivmodels"]
33-
34-
[tool.setuptools.packages.find]
35-
include = ["ivmodels.*"]
36-
3731
[tool.poetry.dependencies]
3832
sphinx = {version = "^3", optional = true}
3933
sphinx-autodoc-typehints ={version = "^1.11.1", optional = true}

0 commit comments

Comments
 (0)