forked from uber/h3-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (37 loc) · 1.19 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
import os
from setuptools import find_packages
from skbuild import setup
here = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(here, 'src', 'h3', '_version.py')) as f:
exec(f.read(), about)
def long_desc():
here = os.path.abspath(os.path.dirname(__file__))
fname = os.path.join(here, 'readme.md')
with open(fname) as f:
long_description = f.read()
return long_description
setup(
name = 'h3',
version = about['__version__'],
description = about['__description__'],
long_description = long_desc(),
long_description_content_type = 'text/markdown',
license = about['__license__'],
author = about['__author__'],
author_email = about['__author_email__'],
url = about['__url__'],
classifiers = about['__classifiers__'],
include_package_data=True,
packages = find_packages(
'src',
exclude = ["*.tests", "*.tests.*", "tests.*", "tests"],
),
package_dir = {'': 'src'},
cmake_languages = ('C'),
extras_require={
'numpy': ['numpy'],
'test': ['pytest', 'pytest-cov', 'flake8', 'pylint'],
'all': ['numpy', 'pytest', 'pytest-cov', 'flake8', 'pylint'],
},
)