Broken top_level.txt file in distribution · Issue #571 · RDFLib/rdflib (original) (raw)

This is what the setuptools documentation says about the top_level.txtfile:

This file is a list of the top-level module or package names provided by the project, one Python identifier per line.

Subpackages are not included; a project containing both a foo.bar and a foo.baz would include only one line, foo, in its top_level.txt.

The file distributed with rdflib can be accessed with:

>>> import pkg_resources
>>> provider = pkg_resources.get_distribution('rdflib')
>>> print(provider.get_metadata('top_level.txt'))
rdflib
rdflib/extras
rdflib/plugins
rdflib/plugins/parsers
rdflib/plugins/parsers/pyMicrodata
rdflib/plugins/parsers/pyRdfa
rdflib/plugins/parsers/pyRdfa/extras
rdflib/plugins/parsers/pyRdfa/host
rdflib/plugins/parsers/pyRdfa/rdfs
rdflib/plugins/parsers/pyRdfa/transform
rdflib/plugins/serializers
rdflib/plugins/sparql
rdflib/plugins/sparql/results
rdflib/plugins/stores
rdflib/tools

and is clearly broken as it should only contain le first line.

I think the problem is that the packages variable in setup.py is not what should be passed to the packages= keyword argument.