-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
41 lines (34 loc) · 1.14 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
import setuptools
import re
def read_description(path='README.md'):
with open(path) as f:
return f.read()
def scrape_version(path='coregent/version.py'):
with open(path) as f:
text = f.read()
m = re.search(r'''__version__ = ['"](.*?)['"]''', text)
if m:
print(m, m.groups())
return m.group(1)
setuptools.setup(
name='coregent',
version=scrape_version(),
author='Daniel Foerster',
author_email='[email protected]',
description='Co-regent: a toolkit for building Python games, especially with Kivy',
long_description=read_description(),
long_description_content_type='text/markdown',
license_files=['LICENSE'],
url='https://github.com/pydsigner/coregent',
packages=['coregent'],
classifiers=[
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: Apache Software License',
],
python_requires='>=3.7',
)