Skip to main content

A demo for the OSS template at MeteoSwiss.

Project description

https://img.shields.io/pypi/v/Open-Source-Template.svg https://img.shields.io/pypi/pyversions/Open-Source-Template.svg https://img.shields.io/pypi/l/Open-Source-Template.svg https://github.com/MeteoSwiss/Open-Source-Template/actions/workflows/github-code-scanning/codeql/badge.svg https://github.com/MeteoSwiss/Open-Source-Template/actions/workflows/CI_test.yaml/badge.svg https://github.com/MeteoSwiss/Open-Source-Template/actions/workflows/CI_publish_dev_documentation.yaml/badge.svg

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

open_source_template-1.2.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

open_source_template-1.2.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file open_source_template-1.2.2.tar.gz.

File metadata

  • Download URL: open_source_template-1.2.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for open_source_template-1.2.2.tar.gz
Algorithm Hash digest
SHA256 b7c145c555d78889b34465667a3e537f425a0a1e10a6c0481dee071a319f0dd7
MD5 e593e79aa61f037baab72b5d64860e89
BLAKE2b-256 0977ab71a73e29735fea9d5cab0cc1fd52435700ad6ae9b025c4e239276cd772

See more details on using hashes here.

Provenance

The following attestation bundles were made for open_source_template-1.2.2.tar.gz:

Publisher: CI_publish.yaml on MeteoSwiss/Open-Source-Template

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file open_source_template-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for open_source_template-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a7800b8b1ed0eb9882d576725b4dbc1154f6aa8dcfac68487f98546b30496999
MD5 0eae84bdb7a6b5851973c3acabe56a1f
BLAKE2b-256 8132fac4cd97149252ad403ad905b6e85d7c2251a31bc46addddc55efdb0765f

See more details on using hashes here.

Provenance

The following attestation bundles were made for open_source_template-1.2.2-py3-none-any.whl:

Publisher: CI_publish.yaml on MeteoSwiss/Open-Source-Template

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page