]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
python: add setup.py
authorDaniel Salzman <daniel.salzman@nic.cz>
Fri, 16 Nov 2018 13:44:02 +0000 (14:44 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Fri, 16 Nov 2018 14:04:24 +0000 (15:04 +0100)
.gitignore
configure.ac
python/Makefile.am
python/setup.py.in [new file with mode: 0644]

index b511cc5d57b650832e1c48497ce064f4041b3240..4aad9342bbc41a9379ea518710680329663a9824 100644 (file)
@@ -45,6 +45,7 @@ Makefile
 Makefile.in
 version.h
 
+/python/setup.py
 /samples/knot.sample.conf
 /src/knot/modules/static_modules.h
 
index bebc13a6bba8480cbfad556952c9e7717d69cae8..30f688abadb2ee462c567ae7f218d949b777ffbd 100644 (file)
@@ -700,6 +700,7 @@ AC_CONFIG_FILES([Makefile
                  samples/Makefile
                  distro/Makefile
                  python/Makefile
+                 python/setup.py
                  src/Makefile
                  src/knot/modules/static_modules.h
                  ])
index 2577319ccf83235f680ad5b60df8321524d22861..c7db41739d53e511e2be451c26196ec3354a9d27 100644 (file)
@@ -1,3 +1,4 @@
 EXTRA_DIST =                   \
        libknot/__init__.py     \
-       libknot/control.py
+       libknot/control.py      \
+       setup.py.in
diff --git a/python/setup.py.in b/python/setup.py.in
new file mode 100644 (file)
index 0000000..8d57bc9
--- /dev/null
@@ -0,0 +1,27 @@
+import setuptools
+
+setuptools.setup(
+    name='libknot',
+    version='@PACKAGE_VERSION@',
+    description='Python bindings for libknot',
+    author='Daniel Salzman',
+    author_email='daniel.salzman@nic.cz',
+    url='https://gitlab.labs.nic.cz/knot/knot-dns',
+    license='GPL-3.0',
+    packages=['libknot'],
+    classifiers=[ # See https://pypi.org/classifiers
+        'Development Status :: 5 - Production/Stable',
+        'Intended Audience :: Developers',
+        'Intended Audience :: System Administrators',
+        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
+        'Programming Language :: Python :: 3',
+        'Programming Language :: Python :: 3.4',
+        'Programming Language :: Python :: 3.5',
+        'Programming Language :: Python :: 3.6',
+        'Programming Language :: Python :: 3.7',
+        'Programming Language :: Python :: 3.8',
+        'Topic :: Internet :: Name Service (DNS)',
+        'Topic :: Software Development :: Libraries',
+        'Topic :: System :: Systems Administration',
+    ]
+)