[!IMPORTANT] On June 26 2024, Linux Foundation announced the merger of its financial services umbrella, the Fintech Open Source Foundation (FINOS), with OS-Climate, an open source community dedicated to building data technologies, modeling, and analytic tools that will drive global capital flows into climate change mitigation and resilience; OS-Climate projects are in the process of transitioning to the FINOS governance framework; read more on finos.org/press/finos-join-forces-os-open-source-climate-sustainability-esg
This repository hosts the setup scripts and metadata for new OS-Climate Python projects
To create a new Python project, visit:
https://github.com/organizations/os-climate/repositories/new
Choose repository template:
os-climate/python-template-repository
Owner:
os-climate
Repository name:
[osc-your-new-repository]
Grant the following GitHub App access to the new repository:
pre-commit ci
Afterwards, you will need to ask an OS-Climate DevOps engineer (or GitHub organisation administrator) to add the repository to a credential permitting Github Actions workflows to modify action files:
https://github.com/organizations/os-climate/settings/secrets/actions/ACTIONS_WORKFLOW
Raise GitHub issues here if/when you need a new OS-Climate GitHub repository creating
Repository and CLI tool naming should reflect and match installable package names. Repository names are prefixed with "osc-" to help avoid wider name-space conflicts. Repository names use dashes, while module names and some folders may use underscores.
Package names should be generic
Note: this ensures consistency if/when packages are made available through PyPI
The setup script does the following:
We aim to ensure our projects start with the latest PEP standards compliance in mind
To this end, we do NOT use the following:
Instead we are using the following:
For further details on using PDM for managing dependencies and builds, see:
We can/should create new Python repositories using this template. Afterwards, the upstream DevOps tooling and GitHub workflows can be imported using the appropriate workflow. This can be run from the GitHub portal user interface, or from a shell using the provided thin wrapper script.
Note: _Before running the workflow, a member of the OS-Climate organisation with GitHub administrator privileges must extend the ACTIONSWORKFLOW credential to the relevant repository/repositories. The automation needs the ability to raise a PR, which the standard token/credential does not allow/permit.
Go here to update the repository settings to apply the relevant credential: