-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathsetup.py
69 lines (60 loc) · 1.84 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Author: Aaron Dettmann
# Modif: Aidan Jungo
# Modif: Giacomo Benedetti
import platform
import setuptools
from pathlib import Path
NAME = "ceasiompy"
EXCLUDE_DIRS = ["test_cases", "test_files", "installation"]
VERSION = "0.2.0"
AUTHOR = "CFS Engineering"
EMAIL = "[email protected]"
DESCRIPTION = "A conceptual aircraft design environment"
URL = "https://github.com/cfsengineering/CEASIOMpy"
REQUIRES_PYTHON = ">=3.8.0"
REQUIRED = ["numpy"]
README = "README.md"
PACKAGE_DIR = "."
LICENSE = "LICENSE"
SCRIPTS = [str(Path("src/bin/ceasiompy_exec.py"))]
# Windows
if platform.system().lower() == "windows":
# Use BAT file as wrapper, see file header for reason
SCRIPTS.append(str(Path("src/bin/ceasiompy_run.bat")))
# Linux and MacOs
else:
SCRIPTS.append(str(Path("src/bin/ceasiompy_run")))
here = Path(__file__).parent
with open(Path(here, README), "r") as fp:
long_description = fp.read()
with open(LICENSE) as f:
license = f.read()
setuptools.setup(
name=NAME,
version=VERSION,
author=AUTHOR,
author_email=EMAIL,
description=DESCRIPTION,
long_description=long_description,
url=URL,
include_package_data=True,
package_dir={"": PACKAGE_DIR},
scripts=SCRIPTS,
license=license,
packages=setuptools.find_packages(exclude=EXCLUDE_DIRS),
python_requires=REQUIRES_PYTHON,
install_requires=[],
# See: https://pypi.org/classifiers/
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
],
)