A template for creating a Python package and publishing it to PyPI
Project description
SWECC pypi template
Get up and running quickly with a new python package.
- Rename
./swecc_pypi_templateto whatever your package is named - Find and replace
./swecc_pypi_templateandswecc-pypi-template - Optionally change the python versions in
./pyproject.tomland.github/workflows/ci.yml
Dev Setup
python -m venv venv
source venv/bin/activate
pip install -e ".[dev]"
pre-commit install
Commands
# lint
ruff check swecc_pypi_template
# format
black swecc_pypi_template
# type check
mypy swecc_pypi_template
# test
pytest
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 swecc_pypi_template-0.1.1.tar.gz.
File metadata
- Download URL: swecc_pypi_template-0.1.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3462ce8520931ffd2e0ddcda9660c87759c557c5182910dfa9cb6861ea16fe13
|
|
| MD5 |
6004f9a842612a4e2d7bb6590535e1ee
|
|
| BLAKE2b-256 |
790e18e52a3a503db3a43195f4767b15d2a6dce2a6cefbea21bc52b6f410c30a
|
File details
Details for the file swecc_pypi_template-0.1.1-py3-none-any.whl.
File metadata
- Download URL: swecc_pypi_template-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4c2dfd69fd173233b15b553d801bcddb907dd2862689b0d42e8367ddeb4367a
|
|
| MD5 |
7957f9c5bbeda0a5c366b482c1870cf1
|
|
| BLAKE2b-256 |
2bf394bc421dee4534e0cfe40f0e364742e1cbb4054e5402fef78c2e8de8985e
|