-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
48 lines (40 loc) · 1.73 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
import os
import setuptools
_CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
def _get_version():
with open(os.path.join(_CURRENT_DIR, "ocean_navigation_simulator", "__init__.py")) as f:
for line in f:
if line.startswith("__version__") and "=" in line:
version = line[line.find("=") + 1 :].strip(" '\"\n")
if version:
return version
raise ValueError("`__version__` not defined in `ocean_navigation_simulator/__init__.py`")
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
style_packages = ["black==22.8.0", "flake8==5.0.4", "isort==5.10.1"]
test_packages = ["pytest==7.1.3", "pytest-cov==3.0.0"]
setuptools.setup(
name="ocean_navigation_simulator",
version=_get_version(),
author="Marius Wiggert",
author_email="mariuswiggert@berkeleuy.edu",
description="Codebase to simulate ocean platform navigation",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/MariusWiggert/OceanPlatformControl/",
project_urls={},
license="MIT",
packages=setuptools.find_packages(),
python_requires=">=3.9.7",
extras_require={
"dev": style_packages + test_packages,
"test": test_packages,
},
# Include data
include_package_data=True,
package_data={"": ["package_data/*"]},
# Included core requirements: https://packaging.python.org/discussions/install-requires-vs-requirements/
# please install requirements manually from .txt
# install_requires=['jupyterlab', 'numpy', 'tqdm', 'pandas', 'seaborn',
# 'plotly', 'matplotlib', 'casadi', 'ffmpeg', 'imageio', 'netCDF4', 'datetime'],
)