-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathsetup.py
51 lines (45 loc) · 1.69 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import io
import os
import re
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as f:
readme = f.read()
with io.open('unityparser/__init__.py', 'rt', encoding='utf8') as f:
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
f.read(),
re.MULTILINE
).group(1)
requirements = {'base': None, 'development': None}
for k in requirements:
with open("requirements/{}.in".format(k)) as f:
requirements[k] = list(filter(lambda x: bool(x.strip()) and not x.strip().startswith('-r '), f.read().splitlines()))
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='unityparser',
version=version,
description='A python library to parse and dump Unity YAML files',
long_description=readme,
long_description_content_type='text/markdown',
author='Ricard Valverde',
author_email='ricard.valverde@socialpoint.es',
url='https://github.com/socialpoint-labs/unity-yaml-parser',
license='MIT License',
python_requires='>=3.7.0',
packages=['unityparser'],
keywords=['unity', 'yaml', 'parser', 'serializer'],
install_requires=requirements.pop('base'),
extras_require=requirements,
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)