-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
44 lines (39 loc) · 1.28 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
#!/usr/bin/env python
"""The setup script."""
import re
from setuptools import setup, find_packages
with open('README.md') as readme_file:
readme = readme_file.read()
with open('mcfunction/__version__.py', 'r') as f:
ver_re = re.compile(
r'''__version__\s*=\s*['"](([0-9]+\.?)+(a|b|rc)?)['"]'''
)
version = ver_re.search(f.read()).group(1)
setup(
author='Leo Developer',
author_email='leodeveloper@protonmail.com',
python_requires='>=3.7',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
description='Minecraft command parser.',
license='MIT license',
long_description=readme,
keywords='mcfunction parser',
name='mcfunction.py',
packages=find_packages(include=['mcfunction', 'mcfunction.*']),
tests_require=['pytest>=6.2,<8'],
url='https://github.com/le0developer/mcfunction',
version=version,
zip_safe=False,
extras_require={
'tests': ['pytest>=6.2,<8']
}
)