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.5.tar.gz
(4.4 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.5.tar.gz.
File metadata
- Download URL: pypi_templates-0.1.5.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20408d27fbf0a7da2144766b0747076477b306ff9bb8997445d7008558833851
|
|
| MD5 |
405481d727cd5b33b5561e91b08ba459
|
|
| BLAKE2b-256 |
4a5450eed74e4591ba722854f0a3d49152510995192eabd7cdffdd2b7d8dbda6
|
File details
Details for the file pypi_templates-0.1.5-py3-none-any.whl.
File metadata
- Download URL: pypi_templates-0.1.5-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.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
405a69843d3120eb7c8b580f80db8e6d4ca2db29b1093aeffd2080a2f3345bcb
|
|
| MD5 |
045b02244d8c44a485669017f1f872a8
|
|
| BLAKE2b-256 |
2a76241dd3c3c95c7c4efc39a86699b99fa8b9827b73426d2eddbe93e5cdfce6
|