-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* trying to fix readthedocs v3 * trying to fix readthedocs v3 * release bump * fixing setup
- Loading branch information
Showing
4 changed files
with
28 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "rustrees" | ||
version = "0.2.2" | ||
version = "0.2.3" | ||
edition = "2021" | ||
authors = [ | ||
"Guilherme Lázari <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ econml | |
seaborn | ||
black | ||
ruff | ||
toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,34 @@ | ||
import toml | ||
from setuptools import find_packages, setup | ||
|
||
with open("Cargo.toml", "r") as file: | ||
cargo_toml = toml.load(file) | ||
|
||
with open("pyproject.toml", "r") as file: | ||
pyproject_toml = toml.load(file) | ||
|
||
package_name = cargo_toml["package"]["name"] | ||
version = cargo_toml["package"]["version"] | ||
description = cargo_toml["package"].get("description", "") | ||
license_type = cargo_toml["package"].get("license", "") | ||
authors = cargo_toml["package"].get("authors", []) | ||
authors_str = ", ".join(authors) | ||
|
||
dependencies = pyproject_toml["project"]["dependencies"] | ||
build_requires = pyproject_toml["build-system"]["requires"] | ||
|
||
setup( | ||
name="rustrees", | ||
version="0.2.0", | ||
description="Efficient decision tree and random forest library written in Rust with Python bindings", | ||
name=package_name, | ||
version=version, | ||
description=description, | ||
long_description=open("README.md").read(), | ||
long_description_content_type="text/markdown", | ||
author="Pedro Tabacof, Guilherme Lázari", | ||
author_email="[email protected], [email protected]", | ||
author=authors_str, | ||
url="https://github.com/tabacof/rust-trees", | ||
license="MIT", | ||
license=license_type, | ||
packages=find_packages(), | ||
include_package_data=True, | ||
install_requires=[ | ||
"numpy>=1.0", | ||
"pandas>=2.0", | ||
"scikit-learn>=1.0", | ||
"pyarrow>=12.0", | ||
], | ||
install_requires=dependencies, | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
|
@@ -31,7 +42,7 @@ | |
"Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
], | ||
python_requires=">=3.6", | ||
setup_requires=["maturin>=1.0,<2.0"], | ||
setup_requires=build_requires, | ||
zip_safe=False, | ||
project_urls={ | ||
"Documentation": "https://rust-trees.readthedocs.io/en/latest/", | ||
|