-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
67 lines (57 loc) · 2.05 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import os
import platform
import sys
from pathlib import Path
from setuptools import setup
# read the contents of your README file
this_directory = Path(__file__).parent
long_description = (this_directory / 'README.md').read_text(encoding='utf-8')
ext_modules = None
if not any(arg in sys.argv for arg in ['clean', 'check']) and \
'SKIP_CYTHON' not in os.environ and \
platform.python_implementation() == 'CPython':
try:
from Cython.Build import cythonize
except ImportError:
pass
else:
compiler_directives = {}
if 'CYTHON_TRACE' in sys.argv:
compiler_directives['linetrace'] = True
ext_modules = cythonize(
str(this_directory / 'armaclass' / 'parser.py'),
language_level=3,
compiler_directives=compiler_directives,
)
setup(
name='armaclass',
version='0.2.3',
packages=['armaclass'],
url='https://github.com/overfl0/Armaclass',
license='MIT',
author='Lukasz Taczuk',
author_email='',
description='Python parser and generator for Arma class definitions (e.g. sqm files)',
long_description=long_description,
long_description_content_type='text/markdown',
keywords='arma pbo sqm class parser generator',
python_requires='>=3.7',
classifiers=[
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 5 - Production/Stable',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'License :: OSI Approved :: MIT License',
],
ext_modules=ext_modules,
)
# Install in "editable mode" for development:
# pip install -e .