Skip to content

milosz275/python-package-template

Repository files navigation

Build CodeQL

Python Package Template

Template of Python project wrapped as package that can be easily uploaded to PyPi

Getting Started

To use this template click "Use this template" and create a new repository or open the template in a codespace or use this template here

Usage

Create virtual environment and install dependencies:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

After that you would adapt the code and continue when the project is ready to be published. Build the package using:

python setup.py sdist bdist_wheel

Test compiled package locally using:

pip install dist/package-xx.whl

Before publishing to PyPi create account and get API key. Save API key in your session using:

export TWINE_USERNAME=__token__
export TWINE_PASSWORD=$actual_token

Publish the package to PyPi:

twine upload dist/*

About

Python Package Template

Topics

Resources

License

Stars

Watchers

Forks

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy