neuromorphs / NIR

Neuromorphic Intermediate Representation reference implementation
https://neuroir.org/docs
BSD 3-Clause "New" or "Revised" License
69 stars 10 forks source link

Remove docs and paper data/code from release #99

Closed matjobst closed 4 months ago

matjobst commented 4 months ago

This is a fix for #98 There is no way to remove stuff from the source distribution using a config inside pyproject.toml as long as we are using setuptools_scm (see https://github.com/pypa/setuptools_scm/issues/190). As soon as setuptools_scm is used, all data which is under version control is added. The solution proposed by the authors of setuptools_scm is to add a MANIFEST.in. In the MANIFEST.in, I remove the docs and the paper folders as these should not be required for a source distribution via pypi. Additrionally I added find={include = ["nir*"]} in the pyproject.toml which will cause only the nir folder to be added to the wheel (the other files should not be required). I tested it locally and it seems to work. But please also check it, @Jegp . Resulting sizes are ~19 kB for the wheel and 25 kB for the source.

matjobst commented 4 months ago

Its released as version 1.0.4 now. Looks good on pypi. A trial install also worked without any immediate issues.