-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
80 lines (65 loc) · 2.6 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
""" Setup script for enlopy"""
import codecs
from setuptools import setup, find_packages
import os
import re
# import distutils.command.bdist_conda
HERE = os.path.abspath(os.path.dirname(__file__))
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()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
requirements = ['numpy>=1.10',
'scipy>=1.10',
'matplotlib>=2.2',
'pandas>=2.0']
setup(
name="enlopy",
author="Konstantinos Kavvadias",
author_email="[email protected]",
url='https://github.com/kavvkon/enlopy',
description='Python library with methods to generate, process, analyze, and plot energy related timeseries.',
long_description=read('README.rst'),
license="BSD-3-Clause",
version=find_version("enlopy", "__init__.py"),
python_requires = ">=3.9",
install_requires=requirements,
keywords=['energy','timeseries','statistics','profile','demand'],
packages=find_packages(),
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
"Topic :: Utilities",
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Software Development :: Libraries :: Python Modules',
'Natural Language :: English',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: BSD License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
# distclass=distutils.command.bdist_conda.CondaDistribution,
# conda_buildnum=1,
# conda_features=['mkl'],
],
)