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 from https://pypi.org/project/python-sample-package-with-data/:
python3 -m pip install --user python-sample-package-with-data
python-sample-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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 911a9557eaee07de7df5917f6fefed65ac7fc0d2905a1e233dfc31948f656d74 |
|
MD5 | 1a0bc7a81f164099b8963a44c1acf2dd |
|
BLAKE2b-256 | 2573f7bbbb979e129123ed1f4c33a77d9e2fc6aa4d8dcc9419cdb326ead9ca5f |
Close
Hashes for python_sample_package_with_data-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b87ca1e6337e6e32074575f99d785c89d505b299ed4de2869f0b0ceadc7338b5 |
|
MD5 | debe2fc1c88fac306b8f22761ada79cb |
|
BLAKE2b-256 | bc638ccf9eb8753423bfc9fda6e1a04c2a214f75ea0d88b838d78cd3d917ad8e |