Add docs config

Update setup remove ipympl dependency
Update Project Name
add build to Makefile
This commit is contained in:
2021-05-11 19:11:03 +02:00
parent 79190ef2e1
commit d46f544466
6 changed files with 37 additions and 11 deletions

View File

@@ -1,5 +1,4 @@
import setuptools
import stree
def readme():
@@ -7,11 +6,23 @@ def readme():
return f.read()
VERSION = stree.__version__
def get_data(field):
item = ""
with open("stree/__init__.py") as f:
for line in f.readlines():
if line.startswith(f"__{field}__"):
delim = '"' if '"' in line else "'"
item = line.split(delim)[1]
break
else:
raise RuntimeError(f"Unable to find {field} string.")
return item
setuptools.setup(
name="STree",
version=stree.__version__,
license=stree.__license__,
version=get_data("version"),
license=get_data("license"),
description="Oblique decision tree with svm nodes",
long_description=readme(),
long_description_content_type="text/markdown",
@@ -21,19 +32,19 @@ setuptools.setup(
"Code": "https://github.com/Doctorado-ML/STree",
"Documentation": "https://stree.readthedocs.io/en/latest/index.html",
},
author=stree.__author__,
author_email=stree.__author_email__,
author=get_data("author"),
author_email=get_data("author_email"),
keywords="scikit-learn oblique-classifier oblique-decision-tree decision-\
tree svm svc",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: " + stree.__license__,
"License :: OSI Approved :: " + get_data("license"),
"Programming Language :: Python :: 3.8",
"Natural Language :: English",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Intended Audience :: Science/Research",
],
install_requires=["scikit-learn", "numpy", "ipympl"],
install_requires=["scikit-learn", "numpy"],
test_suite="stree.tests",
zip_safe=False,
)