Skip to main content

python-repo-structure

This repository shows how to structure small Python project using CI (Codecov) and Poetry to upload to PyPi.


Badges

codecov CI Github Actions

Find other badges you want to see in your repository.

Usage

from package_name.some_file import ModernWarfare

print(ModernWarfare().call_of_duty())
# "Press F to pay respects"

Testing on replit.com

img.png

img_2.png

img_1.png

Install

pip install python-repo-structure
git clone https://github.com/dimitryzub/python-repo-structure.git

Upload to Pypi

When running poetry publish you will be prompted to add your PyPi username and password. You won't the password while typing, it's intentional.

1. $ poetry build --format wheel
2. $ poetry publish

Building package:

$ poetry build --format wheel
Building python-repo-structure (0.1.0)
  - Building wheel
  - Built python_repo_structure-0.1.0-py3-none-any.whl

Once start uploading process, you'll see something like this in the terminal:

$ poetry publish

Username: dimitryzub
Password:
Publishing python-repo-structure (0.1.0) to PyPI
 - Uploading python_repo_structure-0.1.0-py3-none-any.whl 0%
 - Uploading python_repo_structure-0.1.0-py3-none-any.whl 100%
 - Uploading python_repo_structure-0.1.0-py3-none-any.whl 100%

Metadata

Release files for python-repo-structure 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for python-repo-structure 0.1.1
File Interpreter ABI Platform
python_repo_structure-0.1.1-py3-none-any.whl Python 3 none any Details

Release files / python_repo_structure-0.1.1-py3-none-any.whl

Download URL python_repo_structure-0.1.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9d7039da9c5fa69073c84614d00c46ec24b6ad7fed6c0b08a5eab8be6e9616e
BLAKE2b-256 checksum
How to use checksums
b1aa387ad79d956eeb35d892e909edfe87979344985b5baba9bd4ced2cfbfe27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.10 CPython/3.9.5 Windows/10

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page