-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
41 lines (35 loc) · 1.02 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
from setuptools import setup, find_packages
import codecs
import os
HERE = os.path.abspath(os.path.dirname(__file__))
FINAL_RELEASE = open(os.path.join(HERE, 'VERSION')).read().strip()
def read(*parts):
"""
Build an absolute path from *parts* and and return the contents of the
resulting file. Assume UTF-8 encoding.
"""
with codecs.open(os.path.join(HERE, *parts), "rb", "utf-8") as f:
return f.read()
setup(
name='energyscope',
author='',
description='Energy Scope',
packages=find_packages(),
long_description=read('README.md'),
include_package_data=True,
use_scm_version={
'version_scheme': 'post-release',
'local_scheme': lambda version: version.format_choice("" if version.exact else "+{node}", "+dirty"),
'fallback_version': FINAL_RELEASE,
},
python_requires='>=3.7',
setup_requires=["setuptools_scm"],
install_requires=[
'numpy',
'pandas',
'pyyaml',
'matplotlib',
'plotly'
],
keywords=[]
)