Skip to content

Commit 76d76cd

Browse files
committed
Use maturin to build project instead of setuptools-rust
1 parent b4fe04f commit 76d76cd

File tree

4 files changed

+75
-214
lines changed

4 files changed

+75
-214
lines changed

MANIFEST.in

Lines changed: 0 additions & 14 deletions
This file was deleted.

pyproject.toml

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,77 @@
11
[build-system]
2-
requires = ['setuptools', 'setuptools_rust']
3-
build-backend = "setuptools.build_meta"
2+
requires = ["maturin ~=1.2"]
3+
build-backend = "maturin"
44

5+
[project]
6+
name = "fastobo"
7+
dynamic = ["version"]
8+
description = "Faultless AST for Open Biomedical Ontologies in Python."
9+
readme = "README.md"
10+
requires-python = ">=3.7"
11+
license = { file = "COPYING" }
12+
authors = [
13+
{ name = "Martin Larralde", email = "martin.larralde@embl.de" },
14+
]
15+
keywords = ["ontologies", "ontology", "obo", "obofoundry", "parser", "syntax", "ast"]
16+
classifiers = [
17+
"Development Status :: 4 - Beta",
18+
"Intended Audience :: Developers",
19+
"Intended Audience :: Science/Research",
20+
"Intended Audience :: Healthcare Industry",
21+
"License :: OSI Approved :: MIT License",
22+
"Programming Language :: Rust",
23+
"Programming Language :: Python :: 3.7",
24+
"Programming Language :: Python :: 3.8",
25+
"Programming Language :: Python :: 3.9",
26+
"Programming Language :: Python :: 3.10",
27+
"Programming Language :: Python :: 3.11",
28+
"Programming Language :: Python :: 3.12",
29+
"Programming Language :: Python :: 3.13",
30+
"Programming Language :: Python :: Implementation :: CPython",
31+
"Programming Language :: Python :: Implementation :: PyPy",
32+
"Topic :: Scientific/Engineering :: Bio-Informatics",
33+
"Topic :: Scientific/Engineering :: Medical Science Apps.",
34+
"Topic :: Software Development :: Libraries :: Python Modules",
35+
"Typing :: Typed",
36+
]
37+
38+
[project.urls]
39+
"Homepage" = "https://github.com/fastobo/fastobo-py/"
40+
"Bug Tracker" = "https://github.com/fastobo/fastobo-py/issues"
41+
"Changelog" = "https://fastobo.readthedocs.io/en/latest/changes.html"
42+
"Documentation" = "https://fastobo.readthedocs.io/"
43+
"Builds" = "https://github.com/fastobo/fastobo-py/actions/"
44+
"PyPI" = "https://pypi.org/project/fastobo"
45+
"Conda" = "https://anaconda.org/bioconda/fastobo"
46+
"PiWheels" = "https://www.piwheels.org/project/fastobo/"
47+
48+
[tool.maturin]
49+
manifest-path = "Cargo.toml"
50+
features = ["extension-module"]
51+
# python-source = "src"
52+
module-name = "fastobo"
53+
54+
[tool.cibuildwheel]
55+
skip = ["*-musllinux_i686"]
56+
before-build = "pip install maturin"
57+
test-command = "python -m unittest discover -s {project} -v"
58+
build-verbosity = 1
59+
free-threaded-support = false
60+
61+
[tool.cibuildwheel.linux]
62+
environment = { PATH="$HOME/.cargo/bin:$PATH" }
63+
before-all = "curl -sSf https://sh.rustup.rs | sh -s -- -y"
64+
65+
[tool.cibuildwheel.macos]
66+
before-all = ["curl -sSf https://sh.rustup.rs | sh -s -- -y"]
67+
environment = { MACOSX_DEPLOYMENT_TARGET = "10.12" }
68+
69+
[[tool.cibuildwheel.overrides]]
70+
select = "*-macosx_x86_64"
71+
inherit.before-all = "append"
72+
before-all = ["rustup target add x86_64-apple-darwin"]
73+
74+
[[tool.cibuildwheel.overrides]]
75+
select = "*-macosx_arm64"
76+
inherit.before-all = "append"
77+
before-all = ["rustup target add aarch64-apple-darwin"]

setup.cfg

Lines changed: 0 additions & 49 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 149 deletions
This file was deleted.

0 commit comments

Comments
 (0)