xref: /freebsd/contrib/libucl/python/setup.py (revision cc426dd31990b8b50b210efc450e404596548ca1)
1try:
2    from setuptools import setup, Extension
3except ImportError:
4    from distutils.core import setup, Extension
5
6import os
7import sys
8
9tests_require = []
10
11if sys.version < '2.7':
12    tests_require.append('unittest2')
13
14uclmodule = Extension(
15    'ucl',
16    libraries = ['ucl'],
17    sources = ['src/uclmodule.c'],
18    language = 'c'
19)
20
21setup(
22    name = 'ucl',
23    version = '0.8',
24    description = 'ucl parser and emmitter',
25    ext_modules = [uclmodule],
26    test_suite = 'tests',
27    tests_require = tests_require,
28    author = "Eitan Adler, Denis Volpato Martins",
29    author_email = "lists@eitanadler.com",
30    url = "https://github.com/vstakhov/libucl/",
31    license = "MIT",
32    classifiers = [
33        "Development Status :: 3 - Alpha",
34        "Intended Audience :: Developers",
35        "License :: DFSG approved",
36        "License :: OSI Approved :: MIT License",
37        "Programming Language :: C",
38        "Programming Language :: Python :: 2",
39        "Programming Language :: Python :: 3",
40        "Programming Language :: Python :: Implementation :: CPython",
41        "Topic :: Software Development :: Libraries",
42    ]
43)
44