setup.py 2.16 KB
Newer Older
Eckhart Arnold's avatar
Eckhart Arnold committed
1
2
#from distutils.core import setup
from setuptools import setup
3
4
5
try:
    from Cython.Build import cythonize
except ImportError:
6
    def cythonize(filename, **options):
7
        return []
Eckhart Arnold's avatar
Eckhart Arnold committed
8
9
from DHParser.versionnumber import __version__

Eckhart Arnold's avatar
Eckhart Arnold committed
10
11
12
13
14
15

with open('README.md', encoding='utf-8') as f:
    read_me = f.read()

setup(
    name='DHParser',
Eckhart Arnold's avatar
Eckhart Arnold committed
16
    version=__version__,
Eckhart Arnold's avatar
Eckhart Arnold committed
17
    packages=['DHParser'],
eckhart's avatar
eckhart committed
18
19
    ext_modules=cythonize(['DHParser/toolkit.py',
                           'DHParser/stringview.py',
eckhart's avatar
eckhart committed
20
21
                           'DHParser/preprocess.py',
                           'DHParser/error.py',
22
                           'DHParser/syntaxtree.py',
eckhart's avatar
eckhart committed
23
                           'DHParser/log.py',
24
25
                           'DHParser/parse.py',
                           'DHParser/transform.py',
eckhart's avatar
eckhart committed
26
                           'DHParser/compile.py',
eckhart's avatar
eckhart committed
27
                           'DHParser/ebnf.py',
28
                           ],
29
                          nthreads=0, annotate=False),
Eckhart Arnold's avatar
Eckhart Arnold committed
30
    url='https://gitlab.lrz.de/badw-it/DHParser',
31
    license='[Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0)',
Eckhart Arnold's avatar
Eckhart Arnold committed
32
33
    author='Eckhart Arnold',
    author_email='arnold@badw.de',
Eckhart Arnold's avatar
Eckhart Arnold committed
34
    description='DHParser - Domain specific languages for the Digital Humanities',
Eckhart Arnold's avatar
Eckhart Arnold committed
35
36
37
    long_description = read_me,
    keywords='Digital Humanities, domain specific languages, parser combinators, EBNF',
    classifiers = [
eckhart's avatar
eckhart committed
38
        'Development Status :: 4 - Beta',
Eckhart Arnold's avatar
Eckhart Arnold committed
39
40
41
        'Intended Audience :: Developers',
        'Environment :: Console',
        'License :: OSI Approved :: Apache Software License',
Eckhart Arnold's avatar
Eckhart Arnold committed
42
        'Operating System :: OS Independent',
Eckhart Arnold's avatar
Eckhart Arnold committed
43
44
45
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
46
        'Programming Language :: Python :: 3.7',
Eckhart Arnold's avatar
Eckhart Arnold committed
47
48
        'Programming Language :: Python :: Implementation :: CPython',
        'Programming Language :: Python :: Implementation :: PyPy',
Eckhart Arnold's avatar
Eckhart Arnold committed
49
50
51
        'Topic :: Text Processing :: Markup',
        'Topic :: Software Development :: Code Generators',
        'Topic :: Software Development :: Compilers'
52
53
54
55
56
57
    ],
    entry_points={
        'console_scripts': [
            'dhparser = dhparser'
        ]
    }
Eckhart Arnold's avatar
Eckhart Arnold committed
58
)
Eckhart Arnold's avatar
Eckhart Arnold committed
59