-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (36 loc) · 1.24 KB
/
setup.py
File metadata and controls
46 lines (36 loc) · 1.24 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
"""Setup script for module
To install, use
python -m pip install .
or, for an editable install,
python -m pip install --editable .
"""
from setuptools import setup
long_description = """
Python classes for implementing Lagrangian neural networks with built-in conservation laws.
For further details and information on how to use this module, see README.md
"""
# Extract requirements from requirements.txt file
with open("requirements.txt", "r", encoding="utf8") as f:
requirements = [line.strip() for line in f.readlines()]
# Run setup
setup(
name="conservative_nn",
author="Eike Mueller",
author_email="e.mueller@bath.ac.uk",
description="Lagrangian neural networks with built-in conservation laws",
long_description=long_description,
version="1.0.0",
packages=["conservative_nn"],
package_dir={"": "src"},
package_data={"conservative_nn": ["random_normal_table.json"]},
install_requires=[
'importlib-metadata; python_version == "3.8"',
]
+ requirements,
url="https://github.com/eikehmueller/mlconservation_code",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GPL-3.0 License",
"Operating System :: POSIX :: Linux",
],
)