Skip to main content

A python package template to upload to pypi

Project description

pypi_templates

python package template for publish to pypi

Windows

python -m venv .venv
& .venv\Scripts\Activate.ps1
python -m pip install --upgrade pip build wheel twine setuptools setuptools-scm
python -m pip list

$package_name="pypi_templates"
echo "" > setup.py
python -m pip freeze > requirements.txt
mkdir src/$package_name
echo "" > src/$package_name/__init__.py
echo "" > src/$package_name/__version__.py
echo "" > src/$package_name/__main__.py
echo "" > src/$package_name/main.py
mkdir tests
echo "" > tests/__init__.py
echo "" > tests/test_main.py


python -m pip install -e .[dev]
python -m pip install -e .[test]
python -m pip install -e .[lint]
python -m pip install -e .[fmt]
python -m pip install -e .[docs]

Unix

python3 -m venv .venv
. .venv/bin/activate
python3 -m pip install --upgrade pip build wheel twine setuptools setuptools-scm
python3 -m pip list

package_name="pypi_templates"
echo "" > setup.py
python3 -m pip freeze > requirements.txt
mkdir -p src/$package_name
echo "" > src/$package_name/__init__.py
echo "" > src/$package_name/__version__.py
echo "" > src/$package_name/__main__.py
echo "" > src/$package_name/main.py
mkdir -p tests
echo "" > tests/__init__.py
echo "" > tests/test_main.py



python3 -m pip install -e .[dev]
python3 -m pip install -e .[test]
python3 -m pip install -e .[lint]
python3 -m pip install -e .[fmt]
python3 -m pip install -e .[docs]

Project details


Download files

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

Source Distribution

pypi_templates-0.0.12.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypi_templates-0.0.12-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file pypi_templates-0.0.12.tar.gz.

File metadata

  • Download URL: pypi_templates-0.0.12.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pypi_templates-0.0.12.tar.gz
Algorithm Hash digest
SHA256 c7347b081e85b4d002a4ff5513631b295bcae8b8ab5e1789ba6d935466d9a681
MD5 3cd175ab08600a03f5b97a229155734c
BLAKE2b-256 164afee9e68c95549aeffa399b38e2dae97c23856a8d1c0b124c20f11d98cb30

See more details on using hashes here.

File details

Details for the file pypi_templates-0.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for pypi_templates-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 31d91ef1860f8f8c1e14b989567e01222c0ee93c197addc204761ceba59a51db
MD5 4a3d5467cee18ad46f8bb15309f7df40
BLAKE2b-256 4625cae8cf1ba5e645dcbe1e7956957342660b3028a5c3139b761f9206654817

See more details on using hashes here.

Supported by

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