From: Daniel Salzman Date: Fri, 16 Nov 2018 13:44:02 +0000 (+0100) Subject: python: add setup.py X-Git-Tag: v2.8.0~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efac81acecd4097ea221816158f23e9b16dc4ea9;p=thirdparty%2Fknot-dns.git python: add setup.py --- diff --git a/.gitignore b/.gitignore index b511cc5d57..4aad9342bb 100644 --- a/.gitignore +++ b/.gitignore @@ -45,6 +45,7 @@ Makefile Makefile.in version.h +/python/setup.py /samples/knot.sample.conf /src/knot/modules/static_modules.h diff --git a/configure.ac b/configure.ac index bebc13a6bb..30f688abad 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ]) diff --git a/python/Makefile.am b/python/Makefile.am index 2577319ccf..c7db41739d 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -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 index 0000000000..8d57bc991e --- /dev/null +++ b/python/setup.py.in @@ -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', + ] +)