Open Source Template
A demo for the OSS template at MeteoSwiss.
The template can be use as an example how to configure MeteoSwiss Github projects.
It uses:
Github actions to execute the CI/CD pipelines
Github pages to host the documentation
PyPI to publish the python packages
Development Setup with Poetry
Building the Project
$ cd open-source-template
$ poetry install
Run Tests
$ poetry run pytest
Run Quality Tools
$ poetry run pylint open_source_template
$ poetry run mypy open_source_template
Generate Documentation
$ poetry run sphinx-build doc doc/_build
Then open the index.html file generated in open-source-template/doc/_build/.
Build wheels
$ poetry build
Using the Library
To install open-source-template in your project, run this command in your terminal:
$ poetry add open-source-template
You can then use the library in your project through
import open_source_template
Releasing
Adapt CHANGELOG.rst with release information
Adapt doc/_static/switcher_config.json adding the new documentation URL for the release
Create a new Release in the Github project
Metadata
Release files for open-source-template 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| open_source_template-1.2.2.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| open_source_template-1.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / open_source_template-1.2.2.tar.gz
| Download URL | open_source_template-1.2.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7c145c555d78889b34465667a3e537f425a0a1e10a6c0481dee071a319f0dd7
|
|
BLAKE2b-256 checksum How to use checksums |
0977ab71a73e29735fea9d5cab0cc1fd52435700ad6ae9b025c4e239276cd772
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 19, 2025.
Transparency logRelease files / open_source_template-1.2.2-py3-none-any.whl
| Download URL | open_source_template-1.2.2-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a7800b8b1ed0eb9882d576725b4dbc1154f6aa8dcfac68487f98546b30496999
|
|
BLAKE2b-256 checksum How to use checksums |
8132fac4cd97149252ad403ad905b6e85d7c2251a31bc46addddc55efdb0765f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 19, 2025.
Transparency log