My short description
Project description
Python sample package with data
How to distribute a Python package with data.
Tested on Ubuntu 19.10, Python 3.7.5, wheel==0.32.3, setuptools==41.1.0, twine==3.1.1.
How end users use the package:
python3 -m pip install --user python-sample-package-with-data
python-sapmle-package-with-data
Expected output:
hello data
How maintainers publish it:
# One time setup.
python3 -m pip install --user setuptools wheel twine
# Every time you want to publish.
python setup.py sdist bdist_wheel
twine upload dist/*
Bibliography:
- https://stackoverflow.com/questions/47577762/how-do-i-distribute-my-pip-package-with-data-files-correctly https://stackoverflow.com/questions/47817944/python-pkg-resources-and-file-access-in-packages https://stackoverflow.com/questions/39104/finding-a-file-in-a-python-module-distribution https://stackoverflow.com/questions/14211575/any-python-function-to-get-data-files-root-directory https://stackoverflow.com/questions/14422340/manifest-in-package-data-and-data-files-clarification https://stackoverflow.com/questions/3596979/manifest-in-ignored-on-python-setup-py-install-no-data-files-installed/3597263#3597263 https://stackoverflow.com/questions/11235820/setup-py-not-installing-data-files
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
Built Distribution
Close
Hashes for python-sample-package-with-data-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2022e48c16ad15bf1a4ed8d2109d8b821164e5fa0ddc0bb334dd7b074714aa5 |
|
MD5 | a3840efd53d25eb40df1cb9a444e4a06 |
|
BLAKE2b-256 | 7d3b543aa0eec290a23bc9e0da8a547d9b152f99b50d4c94bf07e43069c94b98 |
Close
Hashes for python_sample_package_with_data-0.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e550a6bb31dd4ce3381e7537ab76a5d4fe8316bf25ab67b345608f7ad0cbc21f |
|
MD5 | 23480dca2ae97720415d7382b3be2f14 |
|
BLAKE2b-256 | fb83762cba9f0194c31976d01cf1d440c6c95ccf5496659fba1eb663bf6a414c |