A python project template, using Poetry.
Project description
python-project-template
A python project template, using Poetry.
Setup Instructions
-
Rename the Template
Run the following command to rename the template to your desired project name:./rename-template.sh <new_project_name> -
Install Poetry and Poethepoet
If you don't have Poetry and Poe installed, you can install them from requirements using pip:pip install -r requirements.txt
-
Install Project Dependencies
Use Poetry to install all project dependencies:poetry install -
Setup Releases
- Add your
RELEASE_TOKEN(see Personal Access Tokens) to GitHub secrets (or modify deploy.yml to useGITHUB_TOKEN). - If you want to publish your package to PyPI, you need to add your
PYPI_TOKENto GitHub secrets.- Make sure to adopt Conventional Commits to trigger properly Semantic Release.
- Add your
Main Commands
-
Run Tests
Execute the test suite usingpytest:poe test
-
Run Tests with Coverage
Execute the test suite with coverage reporting:poe coverageand generate a report with
poe coverage-reportorpoe coverage-html -
Run Static Checks
Perform static code analysis using bothmypyandruff:poe static-checks -
Format Code
Format your code usingruff:poe format
Note: All these checks are required to pass in order to create a release.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_project_template_mala1180-1.0.0.tar.gz.
File metadata
- Download URL: python_project_template_mala1180-1.0.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.10.9 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e53f9f9fc95c8b184b1f42525803ad5556222dcdfbaec8eca97c9f282f61c80b
|
|
| MD5 |
1a915a2a89d9f7073a83f46292312e3a
|
|
| BLAKE2b-256 |
2d6232ec0c14c843a32029ce207e3a1ae3496ac719282760e2d4ef253a81a26d
|
File details
Details for the file python_project_template_mala1180-1.0.0-py3-none-any.whl.
File metadata
- Download URL: python_project_template_mala1180-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.10.9 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a995d90412f6f10db25685fef7e025f8b86efd7dd2d9e92d9e96906d56a8df31
|
|
| MD5 |
9ffcc8c9f0ef92c016b8d5c3fe8d229d
|
|
| BLAKE2b-256 |
86f3a82baa7dfd04dca0377a0a63e3e9798d4c42d144e24b0b37ba281f2f0144
|