Skip to main content

Frequenz repository setup tools and common configuration

Project description

Frequenz Repository Configuration

Build Status PyPI Package Docs

Introduction

This is a highly opinionated set of tools and configurations to set up a Python repository for Frequenz projects.

It offers:

  • Cookiecutter templates for scaffolding new projects
  • Trivial build of noxfile.py with some predefined sessions that include all common checks.
  • Tools to build protobuf/grpc files as Python, including type information.

Quick Example

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 on Repology. You need at least version 2.1.0. To ensure you get an up-to-date version, you can always use pip and install it in a venv:

$ python -m venv cookiecutter
$ cd cookiecutter
$ . bin/activate
(venv) $ pip install cookiecutter
Collecting cookiecutter
...

Then simply 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 \
    --checkout v0.5.2

This command will prompt you for the project type, name, and other configuration options, and it will generate the entire project for you.

After completing the project and fixing the TODOs, you can either amend the previous commit using git commit --amend or create a new commit for the changes using git commit.

Documentation

For more detailed documentation, please check the project's website.

Contributing

If you want to know how to build this project and contribute to it, please refer to the Contributing Guide.

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

frequenz-repo-config-0.5.2.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

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

frequenz_repo_config-0.5.2-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file frequenz-repo-config-0.5.2.tar.gz.

File metadata

  • Download URL: frequenz-repo-config-0.5.2.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for frequenz-repo-config-0.5.2.tar.gz
Algorithm Hash digest
SHA256 1fe9405e1c8e30dfa61c19370507b2b6d2de5f884a7d2e6fe16c17e6311b4296
MD5 ef7713b648b66a04e34b1d4a465355ee
BLAKE2b-256 89030f11b0f531fd903a1b7e4873b17fc459daadb86091159de18f4c6b7e3fc4

See more details on using hashes here.

File details

Details for the file frequenz_repo_config-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for frequenz_repo_config-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2fac63f7bf5f6f025e522cc43c32b808cc5b47ffc69091402f0fd7bec6d9aaf
MD5 cb65ea5325b3649f29530e7898cccc35
BLAKE2b-256 2c7e8ae2615744b250e3f75e924a0e0e20555a29f01274f19462439ed834d8c9

See more details on using hashes here.

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