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)
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7347b081e85b4d002a4ff5513631b295bcae8b8ab5e1789ba6d935466d9a681
|
|
| MD5 |
3cd175ab08600a03f5b97a229155734c
|
|
| BLAKE2b-256 |
164afee9e68c95549aeffa399b38e2dae97c23856a8d1c0b124c20f11d98cb30
|
File details
Details for the file pypi_templates-0.0.12-py3-none-any.whl.
File metadata
- Download URL: pypi_templates-0.0.12-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31d91ef1860f8f8c1e14b989567e01222c0ee93c197addc204761ceba59a51db
|
|
| MD5 |
4a3d5467cee18ad46f8bb15309f7df40
|
|
| BLAKE2b-256 |
4625cae8cf1ba5e645dcbe1e7956957342660b3028a5c3139b761f9206654817
|