-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathsetup.py
More file actions
65 lines (56 loc) · 2.18 KB
/
setup.py
File metadata and controls
65 lines (56 loc) · 2.18 KB
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
import os
import re
from setuptools import setup
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
def get_version():
"""Read the single source-of-truth version from geomeppy/__init__.py."""
with open(os.path.join(THIS_DIR, "geomeppy", "__init__.py")) as f:
init = f.read()
match = re.search(r'__version__ = "(.+?)"', init)
if match is None:
raise RuntimeError("Cannot find __version__ in geomeppy/__init__.py")
return match.group(1)
with open(os.path.join(THIS_DIR, "requirements.in")) as f:
install_requires = [line for line in f if line and line[0] not in "#-"]
with open(os.path.join(THIS_DIR, "test-requirements.in")) as f:
test_requires = [line for line in f if line and line[0] not in "#-"]
with open(os.path.join(THIS_DIR, "README.md")) as f:
long_description = f.read()
setup(
name="geomeppy",
packages=["geomeppy", "geomeppy.geom", "geomeppy.io", "tests"],
version=get_version(),
description="Geometry editing for E+ idf files",
long_description=long_description,
long_description_content_type="text/markdown",
author="Jamie Bull",
author_email="jamie.bull@gmail.com",
url="https://github.com/jamiebull1/geomeppy",
download_url="https://github.com/jamiebull1/geomeppy/tarball/v{}".format(
get_version()
),
license="MIT License",
keywords=["EnergyPlus", "geometry", "building performance simulation"],
platforms="any",
install_requires=install_requires,
python_requires=">=3.10",
classifiers=[
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Development Status :: 3 - Alpha",
"Natural Language :: English",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
],
extras_require={
"lint": ["mypy", "black"],
"testing": test_requires,
},
include_package_data=True,
)