-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
78 lines (69 loc) · 2.29 KB
/
setup.py
File metadata and controls
78 lines (69 loc) · 2.29 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
66
67
68
69
70
71
72
73
74
75
76
77
78
import os
import re
from setuptools import setup, find_packages
def read_version() -> str:
"""read the project version in a preset file.
Raises:
RuntimeError: if the version string is not found.
Returns:
str: project version.
"""
version_file = os.path.join("src", "pydasa", "_version.py")
with open(version_file, "r", encoding="utf-8") as f:
content = f.read()
m = re.search(r'__version__\s*=\s*[\'"]([^\'"]+)[\'"]', content)
if not m:
raise RuntimeError("Unable to find version string.")
return m.group(1)
def read_long_description() -> str:
"""Read the long description from the README file.
Returns:
str: project long description.
"""
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
return long_description
setup(
name="pydasa",
version=read_version(),
description="Python package for Dimensional Analysis for Scientific Applications and Software Architecture (PyDASA).",
package_dir={"": "src"},
packages=find_packages(where="src"),
long_description=read_long_description(),
long_description_content_type="text/markdown",
url="https://github.com/DASA-Design/PyDASA",
author="@SFAM",
author_email="sa-artea@uniandes.edu.co",
# NOTE: theee tags are defined in pyproject.toml to avoid conflict
# license="GPL-3.0-or-later",
# classifiers=[
# "Programming Language :: Python :: 3.10",
# "Programming Language :: Python :: 3.11",
# "Programming Language :: Python :: 3.12",
# "Development Status :: 3 - Alpha",
# "Operating System :: OS Independent",
# "Intended Audience :: Science/Research",
# "Intended Audience :: Developers",
# "Topic :: Scientific/Engineering",
# ],
# install_requires=[
# "antlr4-python3-runtime==4.11",
# "numpy>=1.26.4",
# "scipy>=1.13.0",
# "sympy>=1.12",
# "matplotlib>=3.8.0",
# "pandas>=2.1.0",
# "SALib>=1.4.5",
# ],
# extras_require={
# "dev": [
# "pytest>=8.1.1",
# "twine>=6.1.0",
# ],
# "docs": [
# "sphinx>=7.3.7",
# "sphinx-rtd-theme>=1.3.0",
# ],
# },
python_requires=">=3.10",
)