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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
[build-system]
requires = ["setuptools>=61.2", "setuptools-rust"]
build-backend = "setuptools.build_meta"
[tool.mypy]
warn_redundant_casts = true
warn_unused_configs = true
check_untyped_defs = true
ignore_missing_imports = false
[project]
name = "upstream-ontologist"
authors = [{name = "Jelmer Vernooij", email = "jelmer@jelmer.uk"}]
maintainers = [{name = "Jelmer Vernooij", email = "jelmer@jelmer.uk"}]
description = "tracking of upstream project metadata"
requires-python = ">= 3.10"
dependencies = [
"python_debian",
"ruamel.yaml",
"breezy>=3.3.0",
]
dynamic = ["version"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/jelmer/upstream-ontologist-py"
Repository = "https://github.com/jelmer/upstream-ontologist-py.git"
[project.optional-dependencies]
debian_changelog = [
"httplib2>=0.7.8",
"python_debian",
]
homepage = ["bs4"]
readme = [
"docutils",
"lxml",
"bs4",
"pygments",
]
"setup.cfg" = ["setuptools"]
testing = ["breezy>=3.3.0"]
dev = ["ruff==0.14.4"]
[tool.setuptools]
include-package-data = false
[tool.setuptools.packages.find]
where = ["py"]
include = ["upstream_ontologist"]
[tool.setuptools.package-data]
upstream_ontologist = ["py.typed"]
[tool.setuptools.dynamic]
version = {attr = "upstream_ontologist.version_string"}
[tool.ruff.lint]
ignore = [
"ANN001",
"ANN002",
"ANN003",
"ANN201",
"ANN202",
"ANN204",
"ANN205",
"ANN206",
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D107",
"D204",
"D205",
"D417",
"E501", # line too long
"E741", # ambiguous variable name
]
select = [
"ANN",
"D",
"E",
"F",
"I",
"UP",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.cibuildwheel]
before-build = "pip install -U setuptools-rust && rustup default stable && rustup show"
environment = {PATH="$HOME/.cargo/bin:$PATH"}
# breezyshim needs to embed python, which pypy doesn't support
skip = "pp*-* *musllinux*"
[tool.cibuildwheel.linux]
before-build = "if command -v yum; then yum -y install libatomic openssl-devel; fi && if command -v apk; then apk add openssl-dev pkgconfig; fi && pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y && rustup show"
[tool.cibuildwheel.macos]
macos = "x86_64 arm64 universal2"
before-build = "brew install openssl && pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y && rustup show"
environment = {MACOSX_DEPLOYMENT_TARGET=15.0}
[[tool.cibuildwheel.overrides]]
select = "*-macosx_arm64"
before-build = "pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf | sh -s -- --profile=minimal -y && rustup target add aarch64-apple-darwin"
[tool.cibuildwheel.windows]
before-build = "vcpkg install openssl && pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y && rustup show"
environment = {CMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake"}
|