Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Python packaging which previously included the "tests" package
After reading thought https://packaging.python.org and https://docs.python.org/3/distutils/ again, I decided to continue using the `find_packages` helper function because this make copy and paste easier when I decide to reuse this little project as a template for the next Python project. But ensure that Python packages like tests and docs are not installed by excluding them. It is directly used from the example given here: https://packaging.python.org/distributing/#packages Also add `package_data` to ensure that the Jinja2 templates of the package are included. Now only the "yaml4rst" package is installed which can be quickly verified by `pip3 uninstall yaml4rst`: ``` Uninstalling yaml4rst: /usr/local/lib/python3.5/dist-packages/yaml4rst-0.1.1.dist-info/DESCRIPTION.rst /usr/local/lib/python3.5/dist-packages/yaml4rst-0.1.1.dist-info/METADATA /usr/local/lib/python3.5/dist-packages/yaml4rst-0.1.1.dist-info/RECORD /usr/local/lib/python3.5/dist-packages/yaml4rst-0.1.1.dist-info/WHEEL /usr/local/lib/python3.5/dist-packages/yaml4rst-0.1.1.dist-info/entry_points.txt /usr/local/lib/python3.5/dist-packages/yaml4rst-0.1.1.dist-info/metadata.json /usr/local/lib/python3.5/dist-packages/yaml4rst-0.1.1.dist-info/top_level.txt /usr/local/lib/python3.5/dist-packages/yaml4rst/__init__.py /usr/local/lib/python3.5/dist-packages/yaml4rst/__pycache__/__init__.cpython-35.pyc /usr/local/lib/python3.5/dist-packages/yaml4rst/__pycache__/_meta.cpython-35.pyc /usr/local/lib/python3.5/dist-packages/yaml4rst/__pycache__/cli.cpython-35.pyc /usr/local/lib/python3.5/dist-packages/yaml4rst/__pycache__/defaults.cpython-35.pyc /usr/local/lib/python3.5/dist-packages/yaml4rst/__pycache__/helpers.cpython-35.pyc /usr/local/lib/python3.5/dist-packages/yaml4rst/__pycache__/reformatter.cpython-35.pyc /usr/local/lib/python3.5/dist-packages/yaml4rst/_meta.py /usr/local/lib/python3.5/dist-packages/yaml4rst/cli.py /usr/local/lib/python3.5/dist-packages/yaml4rst/defaults.py /usr/local/lib/python3.5/dist-packages/yaml4rst/helpers.py /usr/local/lib/python3.5/dist-packages/yaml4rst/reformatter.py ``` Related to: #1 Thanks to: @ganto
- Loading branch information