A clean, automated setup for publishing simple Python packages to PyPI and Anaconda.
Project description
Simple Poetry
A clean, automated setup for publishing simple Python packages to PyPI using Poetry and GitHub Actions.
Setup
-
Prepare GitHub repo
- Create new GitHub repository / fork this repository
- Setup PyPI Credentials in repository secrets
PYPI_TOKEN: PyPI API token
-
Replace text in files
- Rename
simple_poetryfolder to<package_name> - Replace all
simple_poetryinstance in files to<package_name> - Replace all
simple-poetryinstance in files to<package-name> - Replace all
3.8instance in files to<target-python-version> - Replace
ppeetteerrswith<github_user_name>
- Rename
-
Enter Package Information
pyproject.toml: Project description, authors<package_name>/__init__.py: Author and emailREADME.md: Customize it, change the name and description especially
-
Further Customizations
mkdocs.yaml: Edit theme andmkdocstringspreferences (Can also add sub-pages to API Reference etc.).devcontainer.json: Add preferred extensions / build configurations (e.g. use GPUs)Dockerfile: Install necessary formatters / linters / packages for local testingdocs/: Write your documentation.github/workflows/push.yaml: Remove thetests::Run Testsstep if you need to run tests locally (e.g. if your tests require GPU). Keep the rest to upload Codecov.
-
Publish and Setup GitHub Pages
commitandpushyour changes- Create first release
- Go to
Settingsand activate your GitHub Pages using thegh-pagesbranch
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 simple-poetry-0.1.0.tar.gz.
File metadata
- Download URL: simple-poetry-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.11.0-1028-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e2d848786f5a3d1243a63cf6d0e98df30ca5c692981ce2aad9d7562d24e4aa1
|
|
| MD5 |
97a61358786b5d210637f5dea3c83988
|
|
| BLAKE2b-256 |
16cade654b5b3685975d3fae50241646e6124b7e1a288804d935f7b0119651a6
|
File details
Details for the file simple_poetry-0.1.0-py3-none-any.whl.
File metadata
- Download URL: simple_poetry-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.11.0-1028-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
096337b944f80b48892c0908995b2b6b5d898172e82d46db609c53ce0b1b1161
|
|
| MD5 |
83dac007e469f42efc9f6bd314a079ba
|
|
| BLAKE2b-256 |
87473d6185147a3133d04ae22b481305c17cca1ec310a22205673b6762304445
|