A python package template to upload to pypi
Project description
pypi_templates(setup.pygit )
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.6.tar.gz
(4.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypi_templates-0.1.6.tar.gz.
File metadata
- Download URL: pypi_templates-0.1.6.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50d67c85220acc84092b9146b315bf510976839c1d957f200ad1d3ed386633ed
|
|
| MD5 |
b1e963696b513c6e1c53fb2b692bf226
|
|
| BLAKE2b-256 |
383c41ebc06d9a6577eb2436ca9622207a9fc9218768bfb6c2a744a2801a1a10
|
File details
Details for the file pypi_templates-0.1.6-py3-none-any.whl.
File metadata
- Download URL: pypi_templates-0.1.6-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0fff7f3ba043b6b051d97f961d47e573f1963f1625a0c0ce3ef6090c91160da
|
|
| MD5 |
db3f6e1a5e6a9d0ffac92d1da3fdfa2b
|
|
| BLAKE2b-256 |
487048a00667bc0ab0c16f436fc17f7675f0f96878f0442160b9bdeab7095a1c
|