Skip to main content

A python package template to upload to pypi

Project description

pypi_templates(setup.py)

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]
python -m pip install -e .[all]

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]
python -m pip install -e .[all]

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.1.7.tar.gz (4.0 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.1.7-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pypi_templates-0.1.7.tar.gz
Algorithm Hash digest
SHA256 2d598fd178925736b66d72cbc76ac6775f6e3eaf428c6fde0a8447781f0dca06
MD5 2e1d26857168500d2f452fdf4b14208b
BLAKE2b-256 7f089e6713621893623ecdc8729db5589932a23a90b655f57a17f231f657f9ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pypi_templates-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pypi_templates-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c3182b8c5ed059b05be5a4649d93b8d425fca63c28f07a7c02d271b5c6312347
MD5 b5906823c572d357fba0c92e9629ec55
BLAKE2b-256 5014cdf7f43eed68c31e6dd69b597305cf6ae4a75dc22cb4ad20f49642781c73

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