Skip to main content

Show how to structure small Python package using CI (Codecov) and Poetry to upload to PyPi.

Project description

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%

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

python_repo_structure-0.1.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page