-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (52 loc) · 2.07 KB
/
Copy pathsetup.py
File metadata and controls
58 lines (52 loc) · 2.07 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
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import find_packages, setup
import itemset_mining
with open("itemset_mining/VERSION") as version_file:
version = version_file.read().strip()
with open("README.md") as readme_file:
readme = readme_file.read()
# Requirements placed here for convenient viewing
install_requires = []
tests_requires = ["pytest", "pytest-cases", "pytest-cov"]
docs_requires = [
"Jinja2<3.1",
"mistune~=0.8.4", # required for m2r
"m2r",
"setuptools>=30.4",
"Sphinx~=2.0", # Use of v3.x.x requires m2r upgrade: https://github.com/miyakogi/m2r/pull/55
"sphinxcontrib-apidoc~=0.3.0",
"sphinx_rtd_theme",
]
dev_requires = tests_requires + docs_requires + ["pre-commit", "tox"]
# Avoid setuptools as an entrypoint unless it's the only way to do it.
# In other words, only use setuptools to build dists and wheels.
# E.g.: Run tests with pytest or tox; build sphinx directly; etc.
setup(
name=itemset_mining.__name__,
version=version,
description="A python package for itemset mining algorithms.",
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/zaxr/itemset_mining",
author=itemset_mining.__author__,
author_email=itemset_mining.__email__,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
keywords="high utility itemset mining data pattern huim apriori frequent",
packages=find_packages(exclude=["docs", "tests"]),
python_requires=">=3.6",
install_requires=install_requires,
include_package_data=True,
extras_require={"docs": docs_requires, "test": tests_requires, "dev": dev_requires},
)