|
1 | 1 | [build-system]
|
2 |
| -requires = [ |
3 |
| - "setuptools>=42", |
4 |
| - "wheel", |
5 |
| - "ninja", |
6 |
| - "cmake>=3.12", |
| 2 | +requires = ["scikit-build-core>=0.3.3", "pybind11"] |
| 3 | +build-backend = "scikit_build_core.build" |
| 4 | + |
| 5 | + |
| 6 | +[project] |
| 7 | +name = "naive_svg" |
| 8 | +version = "0.0.3" |
| 9 | +url = "https://github.com/cubao/pybind11-naive-svg" |
| 10 | +description="naive svg writer" |
| 11 | +readme = "README.md" |
| 12 | +authors = [ |
| 13 | + { name = "district10", email = "[email protected]" }, |
| 14 | +] |
| 15 | +requires-python = ">=3.7" |
| 16 | +classifiers = [ |
| 17 | + "Development Status :: 4 - Beta", |
| 18 | + "License :: OSI Approved :: MIT License", |
| 19 | + "Programming Language :: Python :: 3 :: Only", |
| 20 | + "Programming Language :: Python :: 3.7", |
| 21 | + "Programming Language :: Python :: 3.8", |
| 22 | + "Programming Language :: Python :: 3.9", |
| 23 | + "Programming Language :: Python :: 3.10", |
| 24 | + "Programming Language :: Python :: 3.11", |
| 25 | + "Programming Language :: Python :: 3.12", |
7 | 26 | ]
|
8 |
| -build-backend = "setuptools.build_meta" |
9 | 27 |
|
10 |
| -[tool.mypy] |
11 |
| -files = "setup.py" |
12 |
| -python_version = "3.7" |
13 |
| -strict = true |
14 |
| -show_error_codes = true |
15 |
| -enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"] |
16 |
| -warn_unreachable = true |
| 28 | +[project.optional-dependencies] |
| 29 | +test = ["pytest", "scipy"] |
| 30 | + |
| 31 | + |
| 32 | +[tool.scikit-build] |
| 33 | +wheel.expand-macos-universal-tags = true |
17 | 34 |
|
18 |
| -[[tool.mypy.overrides]] |
19 |
| -module = ["ninja"] |
20 |
| -ignore_missing_imports = true |
21 | 35 |
|
22 | 36 | [tool.pytest.ini_options]
|
23 | 37 | minversion = "6.0"
|
24 | 38 | addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
|
25 | 39 | xfail_strict = true
|
26 |
| -filterwarnings = ["error"] |
| 40 | +log_cli_level = "INFO" |
| 41 | +filterwarnings = [ |
| 42 | + "error", |
| 43 | +] |
27 | 44 | testpaths = ["tests"]
|
28 | 45 |
|
| 46 | + |
29 | 47 | [tool.cibuildwheel]
|
30 | 48 | test-command = "pytest {project}/tests"
|
31 | 49 | test-extras = ["test"]
|
32 | 50 | test-skip = ["*universal2:arm64"]
|
33 |
| -# Setuptools bug causes collision between pypy and cpython artifacts |
34 |
| -before-build = "rm -rf {project}/build" |
| 51 | +build-verbosity = 1 |
| 52 | + |
35 | 53 |
|
36 | 54 | [tool.ruff]
|
| 55 | +src = ["src"] |
| 56 | + |
| 57 | +[tool.ruff.lint] |
| 58 | +exclude = ["*.pyi"] |
37 | 59 | extend-select = [
|
38 |
| - "B", # flake8-bugbear |
39 |
| - "B904", |
40 |
| - "I", # isort |
41 |
| - "PGH", # pygrep-hooks |
42 |
| - "RUF", # Ruff-specific |
43 |
| - "UP", # pyupgrade |
| 60 | + "B", # flake8-bugbear |
| 61 | + "I", # isort |
| 62 | + "ARG", # flake8-unused-arguments |
| 63 | + "C4", # flake8-comprehensions |
| 64 | + "EM", # flake8-errmsg |
| 65 | + "ICN", # flake8-import-conventions |
| 66 | + "G", # flake8-logging-format |
| 67 | + "PGH", # pygrep-hooks |
| 68 | + "PIE", # flake8-pie |
| 69 | + "PL", # pylint |
| 70 | + "PT", # flake8-pytest-style |
| 71 | + "PTH", # flake8-use-pathlib |
| 72 | + "RET", # flake8-return |
| 73 | + "RUF", # Ruff-specific |
| 74 | + "SIM", # flake8-simplify |
| 75 | + "T20", # flake8-print |
| 76 | + "UP", # pyupgrade |
| 77 | + "YTT", # flake8-2020 |
| 78 | + "EXE", # flake8-executable |
| 79 | + "NPY", # NumPy specific rules |
| 80 | + "PD", # pandas-vet |
44 | 81 | ]
|
45 |
| -extend-ignore = [ |
46 |
| - "E501", # Line too long |
| 82 | +ignore = [ |
| 83 | + "PLR09", # Too many X |
| 84 | + "PLR2004", # Magic comparison |
| 85 | + "PTH100", |
| 86 | + "PTH103", |
| 87 | + "PTH120", |
47 | 88 | ]
|
48 |
| -target-version = "py37" |
| 89 | +isort.required-imports = ["from __future__ import annotations"] |
| 90 | + |
| 91 | +[tool.ruff.lint.per-file-ignores] |
| 92 | +"tests/**" = ["T20"] |
0 commit comments