forked from gradslam/gradslam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (61 loc) · 1.93 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
70
71
import runpy
import logging
from setuptools import setup, find_packages
# Retrieve __version__ from the package.
PACKAGE_NAME = "gradslam"
VERSION = runpy.run_path("gradslam/version.py")["__version__"]
DESCRIPTION = "gradSLAM: Dense SLAM meets Automatic Differentiation"
URL = "<url.to.go.in.here>"
AUTHOR = "MontrealRobotics"
LICENSE = "MIT (TBD)"
DOWNLOAD_URL = ""
LONG_DESCRIPTION = """
A longer description of what the library does. This will appear on pypi, and also influence
search keywords etc. (Maybe 1-2 paragraphs long)
"""
CLASSIFIERS = [
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
# TODO: Add Windows OS
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: MIT",
"Topic :: Software Development :: Libraries",
]
logger = logging.getLogger()
logging.basicConfig(format="%(levelname)s - %(message)s")
def get_requirements():
packages = None
with open("requirements.txt") as f:
packages = f.read().splitlines()
return packages
if __name__ == "__main__":
setup(
# Metadata
name=PACKAGE_NAME,
version=VERSION,
author=AUTHOR,
description=DESCRIPTION,
url=URL,
long_description=LONG_DESCRIPTION,
licence=LICENSE,
python_requires=">3.6",
# Package info
packages=find_packages(exclude=("docs", "test", "examples")),
install_requires=get_requirements(),
extras_require={
"all": ["matplot", "tqdm"],
"dev": [
"black",
"flake8",
"nbsphinx",
"pytest>=4.6",
"pytest-cov>=2.7",
"sphinx==2.2.0", # pinned to resolve issue with docutils 0.16b0.dev
],
},
zip_safe=True,
include_dirs=[],
classifiers=CLASSIFIERS,
)