setup.py 2.3 KB
Newer Older
1
#from distutils.core import setup
eckhart's avatar
eckhart committed
2
from setuptools import setup, find_packages
3 4 5
try:
    from Cython.Build import cythonize
except ImportError:
6
    def cythonize(filename, **options):
7
        return []
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',
16
    version=__version__,
eckhart's avatar
eckhart committed
17
    packages=['DHParser'],
18 19
    ext_modules=cythonize(['DHParser/stringview.py',
                           'DHParser/toolkit.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's avatar
eckhart committed
34
    description='DHParser - Parser generator and DSL-construction-kit',
Eckhart Arnold's avatar
Eckhart Arnold committed
35
    long_description = read_me,
eckhart's avatar
eckhart committed
36
    keywords='parser generator, domain specific languages, Digital Humanities, parser combinators, EBNF',
Eckhart Arnold's avatar
Eckhart Arnold committed
37
    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
    scripts=['DHParser/scripts/dhparser.py',
             'DHParser/scripts/dhparser_rename.py'],
55 56
    entry_points={
        'console_scripts': [
57
            'dhparser=DHParser.scripts.dhparser:main'
58 59
        ]
    }
Eckhart Arnold's avatar
Eckhart Arnold committed
60
)