Skip to content

Commit

Permalink
trying to fix readthedocs v3
Browse files Browse the repository at this point in the history
  • Loading branch information
tabacof committed Dec 6, 2023
2 parents 06c630f + 72b1d7f commit 05430c4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
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 <guilhermelcs@gmail.com>",
Expand Down
43 changes: 19 additions & 24 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,56 +1,51 @@
import toml
from setuptools import find_packages, setup

# Load and parse Cargo.toml
with open("path/to/your/Cargo.toml", "r") as file:
with open("Cargo.toml", "r") as file:
cargo_toml = toml.load(file)

# Load and parse pyproject.toml
with open("path/to/your/pyproject.toml", "r") as file:
with open("pyproject.toml", "r") as file:
pyproject_toml = toml.load(file)

# Extract information from Cargo.toml
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)

# Extract information from pyproject.toml
dependencies = pyproject_toml["project"]["dependencies"]
build_requires = pyproject_toml["build-system"]["requires"]

from setuptools import find_packages, setup

setup(
name=package_name,
version=version,
description=description,
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author=authors_str,
url='https://github.com/tabacof/rust-trees',
url="https://github.com/tabacof/rust-trees",
license=license_type,
packages=find_packages(),
include_package_data=True,
install_requires=dependencies,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Rust',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Rust",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
python_requires='>=3.6',
python_requires=">=3.6",
setup_requires=build_requires,
zip_safe=False,
project_urls={
'Documentation': 'https://rust-trees.readthedocs.io/en/latest/',
'Rust Package': 'https://crates.io/crates/rustrees',
"Documentation": "https://rust-trees.readthedocs.io/en/latest/",
"Rust Package": "https://crates.io/crates/rustrees",
},
)

0 comments on commit 05430c4

Please sign in to comment.