-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
119 lines (106 loc) · 4.75 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
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
117
118
119
[tool.poetry]
name = "utcnow"
version = "0.3.8"
description = "Timestamps as opinionated RFC 3339 (Date and Time on the Internet) formatted strings"
authors = ["Carl Oscar Aaro <[email protected]>"]
homepage = "https://github.com/kalaspuff/utcnow"
repository = "https://github.com/kalaspuff/utcnow"
keywords = ["utcnow", "utc timestamp", "modern timestamp", "rfc 3339", "rfc3339", "timestamp", "rfc3339 timestamp", "timestamps", "date and time on the internet", "datetime", "zulu time", "protobuf", "protobuf timestamp"]
readme = "README.md"
license = "MIT"
classifiers = [
"Development Status :: 3 - Alpha",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Intended Audience :: Developers",
"Typing :: Typed",
"License :: OSI Approved :: MIT License"
]
packages = [
{ include = "utcnow" },
]
include = [
"utcnow/*.py",
"utcnow/*.pyi",
"utcnow/protobuf/*.py",
"utcnow/protobuf/*.pyi",
"utcnow/py.typed",
]
exclude = [
"utcnow/cli/*.py",
"utcnow/cli/*.pyi",
"utcnow/cli/py.typed",
]
[tool.poetry.dependencies]
python = "^3.8"
protobuf = { version = ">=3.20.0,<5.0.0", optional = true }
utcnow-cli = { version = ">=1.0.0", optional = true }
[tool.poetry.extras]
cli = ["utcnow-cli"]
protobuf = ["protobuf"]
[tool.poetry.dev-dependencies]
flake8 = { version = ">=3.8.4", markers = "sys_platform != \"win32\"" }
flake8-black = { version = ">=0.2.0", markers = "sys_platform != \"win32\"" }
flake8-isort = { version = ">=4.0.0", markers = "sys_platform != \"win32\"" }
flake8-pyproject = { version = ">=1.1.0", markers = "sys_platform != \"win32\"" }
isort = { version = ">=5.6.0", markers = "sys_platform != \"win32\"" }
pytest = { version = ">=6.1.0", markers = "sys_platform != \"win32\"" }
pytest-cov = { version = ">=2.10.0", markers = "sys_platform != \"win32\"" }
black = { version = "*", markers = "sys_platform != \"win32\"", allow-prereleases = true }
mypy = { version = ">=0.800", markers = "sys_platform != \"win32\"" }
codecov = { version = ">=2.1.10", markers = "sys_platform != \"win32\"" }
protobuf = { version = ">=3.20.0,<5.0.0", markers = "sys_platform != \"win32\"" }
freezegun ={ version = ">=1.2.2", markers = "sys_platform != \"win32\"" }
types-protobuf = { version = ">=0.1.13", markers = "sys_platform != \"win32\"" }
setuptools = { version = ">=68.1.2", markers = "sys_platform != \"win32\"" }
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target_version = ["py38", "py39", "py310", "py311"]
include = '\.pyi?$'
exclude = '\.eggs/|\.egg-info/|\.git/|\.github/|\.mypy_cache/|\.venv/|\.pytest_cache/|\.vscode/|__pycache__/|build/|dist/|setup\.py'
[tool.isort]
profile = "black"
line_length = 120
src_paths = ["utcnow", "tests"]
known_first_party = "utcnow"
skip = ".mypy_cache,__pycache__,.pytest_cache,.eggs,.venv,.git,.vscode,.github,dist"
[tool.mypy]
pretty = true
files = ["$MYPY_CONFIG_FILE_DIR/utcnow", "$MYPY_CONFIG_FILE_DIR/tests"]
ignore_missing_imports = true
show_error_codes = true
no_implicit_reexport = true
no_implicit_optional = true
strict_equality = true
strict_optional = true
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
local_partial_types = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
[tool.flake8]
ignore = ["E203", "E501", "W503", "E231", "E221", "E704", "E301", "E302", "E305"]
exclude = ["utcnow.egg-info", ".git", ".mypy_cache", ".pytest_cache", ".venv", ".vscode", "__pycache__", "build", "dist", "tmp"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore:Using the 'utcnow[.](get_today)[(][)]' function alias is deprecated. Use the 'utcnow[.]today[(][)]' function instead.:DeprecationWarning:utcnow",
"ignore:Using the 'utcnow[.](unixtime)[(][)]' function alias is deprecated. Use the 'utcnow[.]as_unixtime[(][)]' function instead.:DeprecationWarning:utcnow",
"ignore:Using the 'utcnow[.](as_string|as_str|as_rfc3339|to_string|to_str|to_rfc3339|get_string|get_str|get_rfc3339|string|rfc3339|str)[(][)]' function alias is deprecated. Use the 'utcnow[.]rfc3339_timestamp[(][)]' function instead.:DeprecationWarning:utcnow",
"ignore:Using the 'utcnow[.](as_date|to_datetime|to_date|get_datetime|get_date|date|datetime)[(][)]' function alias is deprecated. Use the 'utcnow[.]as_datetime[(][)]' function instead.:DeprecationWarning:utcnow",
]
[tool.coverage.run]
omit = ["tests/*"]