From: Jeremy Sowden Date: Mon, 31 Jul 2023 11:40:22 +0000 (+0100) Subject: py: move package source into src directory X-Git-Tag: v1.0.6.1~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4627157041c39b47c94bbb31f5846f1bba36a102;p=thirdparty%2Fnftables.git py: move package source into src directory commit ce443afc214553b9fa6f02a640a3cd2f71a23ec9 upstream. 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 Signed-off-by: Pablo Neira Ayuso --- diff --git a/py/Makefile.am b/py/Makefile.am index f10ae360..4056aa61 100644 --- a/py/Makefile.am +++ b/py/Makefile.am @@ -1 +1 @@ -EXTRA_DIST = setup.py __init__.py nftables.py schema.json +EXTRA_DIST = setup.py src diff --git a/py/setup.py b/py/setup.py index 8ad73e7b..d08b8b12 100755 --- a/py/setup.py +++ b/py/setup.py @@ -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', diff --git a/py/__init__.py b/py/src/__init__.py similarity index 100% rename from py/__init__.py rename to py/src/__init__.py diff --git a/py/nftables.py b/py/src/nftables.py similarity index 100% rename from py/nftables.py rename to py/src/nftables.py diff --git a/py/schema.json b/py/src/schema.json similarity index 100% rename from py/schema.json rename to py/src/schema.json