File: pyproject.toml

package info (click to toggle)
python-orjson 3.11.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 4,192 kB
  • sloc: ansic: 11,268; python: 7,073; sh: 160; makefile: 9
file content (97 lines) | stat: -rw-r--r-- 2,624 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[project]
name = "orjson"
version = "3.11.3"
repository = "https://github.com/ijl/orjson"
description = "Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy"
requires-python = ">=3.9"
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Intended Audience :: Developers",
    "License :: OSI Approved :: Apache Software License",
    "License :: OSI Approved :: MIT License",
    "Operating System :: MacOS",
    "Operating System :: Microsoft :: Windows",
    "Operating System :: POSIX :: Linux",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
    "Programming Language :: Python :: 3.14",
    "Programming Language :: Python :: Implementation :: CPython",
    "Programming Language :: Python",
    "Programming Language :: Rust",
    "Typing :: Typed",
]
readme = "README.md"
license = "Apache-2.0 OR MIT"

[project.urls]
source = "https://github.com/ijl/orjson"
documentation = "https://github.com/ijl/orjson"
changelog = "https://github.com/ijl/orjson/blob/master/CHANGELOG.md"

[build-system]
build-backend = "maturin"
requires = ["maturin>=1,<2"]

[tool.maturin]
python-source = "pysrc"
include = [
    { format = "sdist", path = ".cargo/*" },
    { format = "sdist", path = "build.rs" },
    { format = "sdist", path = "Cargo.lock" },
    { format = "sdist", path = "include/cargo/**/*" },
    { format = "sdist", path = "include/yyjson/**/*" },
]

[tool.ruff]
line-length = 88
target-version = "py39"

[tool.ruff.lint]
select = [
    "A",
    "ASYNC",
    "B",
    "COM",
    "DTZ",
    "E",
    "EXE",
    "F",
    "FLY",
    "I",
    "ISC",
    "PIE",
    "PLC",
    "PLE",
    "PLR",
    "PLW",
    "RUF",
    "TCH",
    "TID",
    "UP",
    "W",
]
ignore = [
    "B005", # Using `.strip()` with multi-character strings is misleading
    "DTZ001", # `datetime.datetime()` called without a `tzinfo` argument
    "DTZ005", # `datetime.datetime.now()` called without a `tz` argument
    "E402", # Module level import not at top of file
    "E501", # line too long
    "F601", # Dictionary key literal ... repeated
    "PIE810", # Call `startswith` once with a `tuple`
    "PLR2004", # Magic value used in comparison
    "UP012", # Unnecessary call to encode as UTF-8
]

[tool.ruff.lint.isort]
known-first-party = ["orjson"]

[tool.mypy]
python_version = "3.9"

[[tool.mypy.overrides]]
module = ["dateutil", "pytz"]
ignore_missing_imports = true