forked from intelligent-environments-lab/CityLearn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (36 loc) · 1.54 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 os
import re
import setuptools
ROOT = os.path.dirname(__file__)
VERSION_RE = re.compile(r"__version__\s*=\s*['\"]([\w\.-]+)['\"]")
with open('README.md', 'r') as fh:
long_description = fh.read()
with open('requirements.txt', 'r') as fh:
requirements = fh.readlines()
requirements = [requirement.strip().replace('\n','').replace('\r','') for requirement in requirements]
requirements = [requirement for requirement in requirements if len(requirement) != 0 and requirement[0] != '#']
def get_version():
init = open(os.path.join(ROOT, 'citylearn', '__init__.py')).read()
return VERSION_RE.search(init).group(1)
setuptools.setup(
name='CityLearn',
version=get_version(),
author='Jose Ramon Vazquez-Canteli, Kingsley Nweye, Zoltan Nagy',
author_email='nweye@utexas.edu',
description=(
'An open source Farama Foundation Gymnasium environment for benchmarking distributed '
'energy resource control algorithms to provide energy flexibility in a district of buildings.'),
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/intelligent-environments-lab/CityLearn',
packages=setuptools.find_packages(),
include_package_data=True,
install_requires=requirements,
entry_points={'console_scripts': ['citylearn = citylearn.__main__:main']},
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
python_requires='>=3.7.7',
)