]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
py: move package source into src directory
authorJeremy Sowden <jeremy@azazel.net>
Mon, 31 Jul 2023 11:40:22 +0000 (12:40 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 3 Aug 2023 07:47:49 +0000 (09:47 +0200)
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>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
py/Makefile.am
py/setup.py
py/src/__init__.py [moved from py/__init__.py with 100% similarity]
py/src/nftables.py [moved from py/nftables.py with 100% similarity]
py/src/schema.json [moved from py/schema.json with 100% similarity]

index f10ae360599feeeec3d40d032c0f4eac159a2e5d..4056aa61f82030bea417c50b9e5ebc94acc8aa8c 100644 (file)
@@ -1 +1 @@
-EXTRA_DIST = setup.py __init__.py nftables.py schema.json
+EXTRA_DIST = setup.py src
index 8ad73e7b58e5993fb5b61cddaf81d819edfed8d5..d08b8b129a81ce31090141984b3d40b63e7db405 100755 (executable)
@@ -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