Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toumorokoshi/setuptools-parcels
setuptools-parcels is an alternative to the package_data argument in the setup() function.
https://github.com/toumorokoshi/setuptools-parcels
Last synced: 8 days ago
JSON representation
setuptools-parcels is an alternative to the package_data argument in the setup() function.
- Host: GitHub
- URL: https://github.com/toumorokoshi/setuptools-parcels
- Owner: toumorokoshi
- License: mit
- Created: 2017-04-20T14:47:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-22T19:42:32.000Z (about 5 years ago)
- Last Synced: 2024-11-28T21:52:41.750Z (25 days ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=================
setuptools-parcels
=================An alternative syntaxt to setuptools package_data argument.
Improvements over package_data include:
* simple way to include all non-python files found in packages
.. note::
An alternative way to work around specifying package_data is to
specify the files you would like in distutil's MANIFEST.in, and use the
include_package_data argument:http://setuptools.readthedocs.io/en/latest/setuptools.html#including-data-files
If your goal is to include whatever MANIFEST.in specifies into the
installed package, this alternative will work fine.-----
Usage
-----You can use setuptools-parcels by including it in your setup.py, as an
additional argument to setup`s setup_requires function, and an
additional parcels parameter:.. code:: python
setup(...
# add it here
setup_requires=["setuptools-parcels", "vcver"],
# an argument with the same name as the extension (in this case the extension is parcels).
# this is required to activate setuptools-parcels.
parcels={}
)Without any configuration, parcels will search through all packages,
find any non-python files, and include those.If the package_data is present, parcels will merge it's additions with
the existing values.