File: pyproject.toml

package info (click to toggle)
nanopub 0.2.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,240 kB
  • sloc: javascript: 181; sh: 86; python: 64; xml: 60; makefile: 31
file content (73 lines) | stat: -rw-r--r-- 1,814 bytes parent folder | download
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[build-system]
requires = ["maturin~=1.0"]
build-backend = "maturin"

[project]
# NOTE: Most of the metadata are in Cargo.toml and injected by maturin
name = "nanopub-sign"
classifiers = [
    "Development Status :: 4 - Beta",
    "Intended Audience :: Developers",
    "License :: OSI Approved :: MIT License",
    "Programming Language :: Python :: 3 :: Only",
    "Programming Language :: Python :: 3.8",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Rust",
    "Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.8, <3.13"
dynamic = ["version"]

[project.urls]
Changelog = "https://github.com/vemonet/nanopub-rs/blob/main/CHANGELOG.md"
Documentation = "https://vemonet.github.io/nanopub-rs"
Homepage = "https://vemonet.github.io/nanopub-rs"
Source = "https://github.com/vemonet/nanopub-rs/tree/main/python"
Tracker = "https://github.com/vemonet/nanopub-rs/issues"

[tool.maturin]
features = ["pyo3/generate-import-lib"] # needed for Windows aarch64

[dependency-groups]
dev = [
    "maturin",
    # Linux specific dependency:
    # "maturin[patchelf]",
    "pytest >=8.3.4",
    "mktestdocs",
    "pre-commit",
]

[tool.uv]
# Rebuild package when any rust files change
cache-keys = [{file = "pyproject.toml"}, {file = "Cargo.toml"}, {file = "**/*.rs"}]
# Uncomment to build rust code in development mode
# config-settings = { build-args = '--profile=dev' }

[tool.ruff]
line-length = 120
select = [
    "ARG",
    "B",
    "C40",
    "E",
    "F",
    "FBT",
    "I",
    "ICN",
    "ISC",
    "N",
    "PIE",
    "PTH",
    "RET",
    "RUF",
    "SIM",
    "T10",
    "TID",
    "UP",
    "W",
    "YTT"
]