From ac4019c549b526de2ce5a3e1dcc26f2767638efa Mon Sep 17 00:00:00 2001 From: Michael Herrmann Date: Mon, 12 Oct 2015 19:35:03 +0200 Subject: [PATCH] Add setup.py file. --- .gitignore | 4 +++- setup.py | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index d0a113f..128e3ec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.pyc -.DS_Store \ No newline at end of file +.DS_Store +dist/ +pypxlib.egg-info/ \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..4f96b05 --- /dev/null +++ b/setup.py @@ -0,0 +1,63 @@ +"""Python bindings for the pxlib library for reading and writing Paradox +databases. + +See: +https://github.com/mherrmann/pypxlib +""" + +from codecs import open +from os.path import abspath, dirname, join +from setuptools import setup, find_packages + +here = abspath(dirname(__file__)) + +with open(join(here, 'README.rst'), encoding='utf-8') as f: + long_description = f.read() + +setup( + name='pypxlib', + + version='1.0', + + description='Python bindings for the pxlib library for reading and writing ' + 'Paradox databases.', + long_description=long_description, + url='https://github.com/mherrmann/pypxlib', + + author='Michael Herrmann', + author_email='[my first name]@[my last name].io', + + license='GPLv2', + + classifiers=[ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + + 'License :: OSI Approved :: GNU General Public License v2 (GPLv2)', + + 'Operating System :: MacOS :: MacOS X', + 'Operating System :: Microsoft :: Windows', + 'Operating System :: POSIX :: Linux', + + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.2', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + + 'Topic :: Database', + 'Topic :: Software Development :: Libraries' + ], + + keywords='paradox database pxlib', + + packages=['pypxlib', 'pypxlib.pxlib_ctypes'], + package_data={ + 'pypxlib.pxlib_ctypes': [ + 'pxlib.dll', 'libiconv2.dll', 'libpx.dylib', 'libpx.so' + ] + } +) \ No newline at end of file