A sample Python project
Project description
Requirements
python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine
python3 -m pip install --upgrade setuptools wheel
Download repository:
git clone https://github.com/johanneskruse/pypi_template.git
Upload:
In pyproject.toml you can set the name of the pacakage
Run the following to upload:
Generating distribution archives
Stand inside the project, i.e.
cd pypi_template
Next build the package:
python3 -m build
This command should output a lot of text and once completed should generate two files in the dist directory:
dist/
├── sampleproject-0.0.1-py3-none-any.whl
└── sampleproject-0.0.1.tar.gz
Uploading the distribution archives
twine upload dist/*
Go to https://pypi.org/ to see the package!
Inspiration
setup.py vs setup.cfg in Python
TODO:
- Setup with pyproject.toml file
- Note that if you want to install packages in editable mode (i.e. by running pip install -e .) you must have a valid setup.py file apart from setup.cfg and pyproject.toml. TRY TO RUN INSTEAD: pip install -e . -f .
Acronym Generator (help generate the name)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
recsources-0.0.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for recsources-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8a6ae5caba6aa474d663c575c2f4c3a676daa089133bd45302cba61636c522b |
|
MD5 | f3785bc63fc2e14a443ddeb2bcc518c1 |
|
BLAKE2b-256 | a78e5b15d837b955351338461cb92524f5f229bd5bd20271e91c22302cf39e0d |