Frequenz repository setup tools and common configuration
Project description
Frequenz repository common configuration for Python
This is very opinionated set of tools and configurations to setup a Python repository for Frequenz projects.
If offers:
- Cookiecutter templates for scaffolding new projects
- Trivial build of
noxfile.py
with some predefined sessions with all common checks. - Tools to build protobuf/grpc files as Python, including type information.
Start a new projects
To start a new project you should first install
Cookiecutter.
It is normally available in any Linux distribution, but some have a very old
version (for example, Ubuntu/Debian). You can check which version your distro
has in Repology. You need
at least version 2.1.0. To make sure to get an up to date version you can
always uses pip
and install in a venv
:
$ python -m venv cookiecutter
$ cd cookiecutter
$ . bin/activate
[cookiecutter] $ pip install cookiecutter
Collecting cookiecutter
...
Then just run cookiecutter where you want to create the new project. A new directory will be created with the generated project name. For example:
cd ~/devel
cookiecutter gh:frequenz-floss/frequenz-repo-config-python --directory=cookiecutter
This will prompt for the project type, name and other configuration and generate the whole project for you.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for frequenz-repo-config-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12a9cab741de8f3ba7c6b2bf594bb0adc3b94a9829890be1cea92d69f7767c63 |
|
MD5 | 9e57e5839846158d2059ab5f7b3f33ce |
|
BLAKE2b-256 | e925dc56157d8daba235a068b0e9068c3e1d2e654a409054f585edd0c5349921 |
Hashes for frequenz_repo_config-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81d8c1fe8b0c3afa32dd91f6c11abeb7e5c633b47e975e7d22367bffce27b11b |
|
MD5 | b266c2c07e6473d8aa77511319aed168 |
|
BLAKE2b-256 | af3c78102a3cba129681a23beff4672ad43a959e5f2b6520ee8d747677e4d968 |