diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | python/Makefile.am | 3 | ||||
-rw-r--r-- | python/setup.py.in | 27 |
4 files changed, 31 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore index b511cc5d5..4aad9342b 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 bebc13a6b..30f688aba 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 2577319cc..c7db41739 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 000000000..8d57bc991 --- /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', + ] +) |