Skip to content

Commit

Permalink
chore: Release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrod committed Oct 3, 2024
1 parent 26151cd commit 127ccf6
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,31 @@ jobs:
- name: Run Tests
run: |
pdm run pytest
pypi-publish:
needs: ci
# Only run this job if new work is pushed to the "master" branch
if: github.event_name == 'push' && github.ref == 'refs/heads/master1'

name: upload release to PyPI
runs-on: ubuntu-latest
permissions:
# This permission is needed for private repositories.
contents: read
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

# Dedicated environments with protections for publishing are strongly recommended.
environment:
name: pypi
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
url: https://pypi.org/p/nvector

steps:
- uses: actions/checkout@v4

- uses: pdm-project/setup-pdm@v4

- name: Publish release distributions to PyPI
run: pdm publish

21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
release:
types: [published]


jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
permissions:
# This permission is needed for private repositories.
contents: read
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4

- uses: pdm-project/setup-pdm@v4

- name: Publish package distributions to PyPI
run: pdm publish
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog


## [1.0.1] - 2024-10-03

### 📚 Documentation

- Prepare changelog for automatic updates using semantic versioning

### ⚙️ Miscellaneous Tasks

- *(pyproject.toml)* Replace use of python-semantic-release with pdm-bump and git-cliff.

### ◀️ Revert

- Remove release1, pypi-publish and test-pypi-publish jobs from workflows/python-package.yml

## [1.0.0] 2024-10-02

- Added pytest-ruff and ruff as test dependencies to pyproject.toml
Expand Down
2 changes: 1 addition & 1 deletion src/nvector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from .objects import * # noqa
from ._common import use_docstring

__version__ = "1.0.0"
__version__ = "1.0.1"

_PACKAGE_NAME = __name__

Expand Down

0 comments on commit 127ccf6

Please sign in to comment.