Skip to content

Commit e810169

Browse files
chg: [release] The project is now using Trusted Publishing with Pypi.
1 parent 2b2a22d commit e810169

7 files changed

Lines changed: 479 additions & 337 deletions

File tree

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on:
2+
release:
3+
types:
4+
- published
5+
6+
name: release
7+
8+
jobs:
9+
pypi-publish:
10+
name: Upload release to PyPI
11+
runs-on: ubuntu-latest
12+
environment:
13+
name: pypi
14+
url: https://pypi.org/p/PyMOSP
15+
16+
permissions:
17+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- name: Install Poetry
23+
run: python -m pip install --upgrade pip poetry
24+
- name: Build artifacts
25+
run: poetry build
26+
- name: Publish package distributions to PyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1

CHANGELOG.md

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

4+
v0.5.3 (2025-02-18)
5+
-------------------
6+
7+
Changes
8+
~~~~~~~
9+
10+
- Updated dependencies.
11+
- The project is now using Trusted Publishing with Pypi.
12+
413
514
v0.5.2 (2024-02-13)
615
-------------------

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ PyMOSP is a Python library to access [MOSP](https://github.com/NC3-LU/MOSP).
1414
### Use it as a command line tool
1515

1616
```bash
17-
$ pipx install pymosp
18-
installed package pymosp 0.5.2, Python 3.12.1
17+
$ pipx install pyPyMOSPmosp
18+
installed package pymosp 0.5.3, Python 3.13.0
1919
These apps are now globally available
2020
- pymosp
2121
done! ✨ 🌟 ✨
@@ -30,7 +30,7 @@ $ pymosp object --list
3030
### Use it as a Python library
3131

3232
```bash
33-
pip install pymosp
33+
pip install PyMOSP
3434
```
3535

3636
```python
@@ -68,8 +68,8 @@ See the examples in the file [example.py](example.py) or in the tests folder.
6868
This software is licensed under
6969
[GNU General Public License version 3](https://www.gnu.org/licenses/gpl-3.0.html).
7070

71-
* Copyright (C) 2019-2024 Cédric Bonhomme
72-
* Copyright (C) 2019-2024 LHC
71+
* Copyright (C) 2019-2025 Cédric Bonhomme
72+
* Copyright (C) 2019-2025 LHC
7373

7474
For more information, [the list of authors and contributors](AUTHORS.md)
7575
is available.

docs/conf.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717

1818
# -- Project information -----------------------------------------------------
1919

20-
project = 'PyMOSP'
20+
project = "PyMOSP"
2121
copyright = "NC3 Luxembourg <info@nc3.lu>"
2222
author = "Cédric Bonhomme <cedric@cedricbonhomme.org>"
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '0.5.1'
25+
release = "0.5.1"
2626

2727

2828
# -- General configuration ---------------------------------------------------
@@ -45,7 +45,7 @@
4545

4646

4747
# Add any paths that contain templates here, relative to this directory.
48-
templates_path = ['_templates']
48+
templates_path = ["_templates"]
4949

5050
html_sidebars = {
5151
"**": [
@@ -57,15 +57,15 @@
5757
# List of patterns, relative to source directory, that match files and
5858
# directories to ignore when looking for source files.
5959
# This pattern also affects html_static_path and html_extra_path.
60-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
60+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
6161

6262

6363
# -- Options for HTML output -------------------------------------------------
6464

6565
# The theme to use for HTML and HTML Help pages. See the documentation for
6666
# a list of builtin themes.
6767
#
68-
html_theme = 'sphinx_book_theme'
68+
html_theme = "sphinx_book_theme"
6969

7070
html_theme_options = {
7171
"path_to_docs": "docs",
@@ -90,4 +90,4 @@
9090
# Add any paths that contain custom static files (such as style sheets) here,
9191
# relative to this directory. They are copied after the builtin static files,
9292
# so a file named "default.css" will overwrite the builtin "default.css".
93-
html_static_path = ['_static']
93+
html_static_path = ["_static"]

0 commit comments

Comments
 (0)