Skip to content

Commit 8de01f6

Browse files
committed
chore: Release 1.0.1
1 parent 1221e64 commit 8de01f6

File tree

4 files changed

+65
-1
lines changed

4 files changed

+65
-1
lines changed

.github/workflows/python-package.yml

+28
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,31 @@ jobs:
3333
- name: Run Tests
3434
run: |
3535
pdm run pytest
36+
37+
pypi-publish:
38+
needs: ci
39+
# Only run this job if new work is pushed to the "master" branch
40+
if: github.event_name == 'push' && github.ref == 'refs/heads/master1'
41+
42+
name: upload release to PyPI
43+
runs-on: ubuntu-latest
44+
permissions:
45+
# This permission is needed for private repositories.
46+
contents: read
47+
# IMPORTANT: this permission is mandatory for trusted publishing
48+
id-token: write
49+
50+
# Dedicated environments with protections for publishing are strongly recommended.
51+
environment:
52+
name: pypi
53+
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54+
url: https://pypi.org/p/nvector
55+
56+
steps:
57+
- uses: actions/checkout@v4
58+
59+
- uses: pdm-project/setup-pdm@v4
60+
61+
- name: Publish release distributions to PyPI
62+
run: pdm publish
63+

.github/workflows/release.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
release:
3+
types: [published]
4+
5+
6+
jobs:
7+
pypi-publish:
8+
name: upload release to PyPI
9+
runs-on: ubuntu-latest
10+
permissions:
11+
# This permission is needed for private repositories.
12+
contents: read
13+
# IMPORTANT: this permission is mandatory for trusted publishing
14+
id-token: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: pdm-project/setup-pdm@v4
19+
20+
- name: Publish package distributions to PyPI
21+
run: pdm publish

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
4+
## [1.0.1] - 2024-10-03
5+
6+
### 📚 Documentation
7+
8+
- Prepare changelog for automatic updates using semantic versioning
9+
10+
### ⚙️ Miscellaneous Tasks
11+
12+
- *(pyproject.toml)* Replace use of python-semantic-release with pdm-bump and git-cliff.
13+
14+
### ◀️ Revert
15+
16+
- Remove release1, pypi-publish and test-pypi-publish jobs from workflows/python-package.yml
17+
318
## [1.0.0] 2024-10-02
419

520
- Added pytest-ruff and ruff as test dependencies to pyproject.toml

src/nvector/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from .objects import * # noqa
66
from ._common import use_docstring
77

8-
__version__ = "1.0.0"
8+
__version__ = "1.0.1"
99

1010
_PACKAGE_NAME = __name__
1111

0 commit comments

Comments
 (0)