-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
76 lines (65 loc) · 1.7 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools", "wheel", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "pyudunits2"
dynamic = [
"version", # The version is taken directly from the repository, using setuptools-scm.
]
description = "A pure Python library designed for handling units of physical quantities, fully based on the UDUNITS2 grammar and XML database"
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
authors = [
{ name = "Phil Elson", email = "pelson.pub@gmail.com" },
]
requires-python = ">=3.10"
# The core dependencies of the project.
dependencies = [
"sympy",
]
[project.optional-dependencies]
xml = [
"lxml",
]
test = [
"cf-units", # To compare against the real udunits2.
"pytest",
]
doc = [
]
dev = [
# Dependencies for development of the project, such as type checkers,
# linters, etc.
"jinja2",
"ruff",
# Include the "test" and "doc" dependencies in the dev dependencies.
"pyudunits2[doc,test]",
]
[project.urls]
Homepage = "https://github.com/pelson/pyudunits2"
Repository = "https://github.com/pelson/pyudunits2"
[tool.setuptools.packages.find]
include = ["pyudunits2", "pyudunits2.*"]
[tool.setuptools_scm]
# Tell setuptools_scm to write a _version.py file in the package. The
# _version.py file must not be committed to the repository.
version_file = "pyudunits2/_version.py"
#[tool.mypy]
#check_untyped_defs = true
#disallow_untyped_defs = true
#disallow_untyped_calls = true
[tool.ruff.lint.per-file-ignores]
"pyudunits2/_grammar/**/*.py" = [
"F841",
"F401",
"E402",
"F403",
"F405", # There are many import * in the antlr runtime.
"F821",
"E741",
"E721",
"E711",
]