@@ -1 +1 @@
-EXTRA_DIST = setup.py __init__.py nftables.py schema.json
+EXTRA_DIST = setup.py src
@@ -10,7 +10,7 @@ setup(name='nftables',
url='https://netfilter.org/projects/nftables/index.html',
packages=['nftables'],
provides=['nftables'],
- package_dir={'nftables':'.'},
+ package_dir={'nftables':'src'},
package_data={'nftables':['schema.json']},
classifiers=[
'Development Status :: 4 - Beta',
similarity index 100%
rename from py/__init__.py
rename to py/src/__init__.py
similarity index 100%
rename from py/nftables.py
rename to py/src/nftables.py
similarity index 100%
rename from py/schema.json
rename to py/src/schema.json
Separate the actual package source from the build files. In addition to being a bit tidier, this will prevent setup.py being erroneously installed when we introduce PEP-517 support in a later commit. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> --- py/Makefile.am | 2 +- py/setup.py | 2 +- py/{ => src}/__init__.py | 0 py/{ => src}/nftables.py | 0 py/{ => src}/schema.json | 0 5 files changed, 2 insertions(+), 2 deletions(-) rename py/{ => src}/__init__.py (100%) rename py/{ => src}/nftables.py (100%) rename py/{ => src}/schema.json (100%)