-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
79 lines (71 loc) · 2.34 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
72
73
74
75
76
77
78
79
import flurs
VERSION = flurs.__version__
DISTNAME = "flurs"
DESCRIPTION = "A library for streaming recommendation algorithms"
with open("README.rst") as f:
LONG_DESCRIPTION = f.read()
LONG_DESCRIPTION_CONTENT_TYPE = "text/x-rst"
AUTHOR = "Takuya Kitazawa"
AUTHOR_EMAIL = "k.takuti@gmail.com"
MAINTAINER = AUTHOR
MAINTAINER_EMAIL = AUTHOR_EMAIL
LICENSE = "MIT"
URL = "https://github.com/takuti/flurs"
DOWNLOAD_URL = "https://pypi.org/project/flurs/#files"
def setup_package():
from setuptools import setup, find_packages
metadata = dict(
name=DISTNAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type=LONG_DESCRIPTION_CONTENT_TYPE,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
license=LICENSE,
url=URL,
download_url=DOWNLOAD_URL,
classifiers=[
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
"Development Status :: 4 - Beta",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
packages=find_packages(exclude=["*tests*"]),
install_requires=[
"numpy>=1.14.6",
"scipy>=1.6.3",
"scikit_learn>=1.0",
"mmh3>=3.0.0",
],
extras_require={
"docs": [
"sphinx_rtd_theme",
"sphinx-gallery",
],
"tests": {
"pytest>=5.0.1",
# https://github.com/pytest-dev/pytest/issues/4608
"pytest-remotedata==0.3.2",
"flake8>=3.8.2",
"black>=21.6b0",
"mypy>=0.770",
"pre-commit",
},
},
)
setup(**metadata)
if __name__ == "__main__":
setup_package()