forked from openergy/omemdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
37 lines (33 loc) · 1.3 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
from setuptools import setup, find_packages
from pkg_resources import parse_requirements
import os
REPO_AND_PACKAGE_NAME = "omemdb"
with open(os.path.join(REPO_AND_PACKAGE_NAME, "version.py")) as f:
version = f.read().split("=")[1].strip().strip("'").strip('"')
with open("requirements.txt", "r") as f:
requirements = [str(r) for r in parse_requirements(f.read())]
setup(
name=REPO_AND_PACKAGE_NAME,
version=version,
packages=find_packages(exclude="tests"),
author="Openergy team",
author_email="[email protected]",
long_description=open("README.md").read(),
install_requires=requirements,
url=f"https://github.com/openergy/{REPO_AND_PACKAGE_NAME}",
classifiers=[
"Programming Language :: Python",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Natural Language :: French",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.1",
"Topic :: Scientific/Engineering :: Physics",
],
package_data={REPO_AND_PACKAGE_NAME: ["*.txt"]},
include_package_data=True
)