-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
137 lines (115 loc) · 2.82 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
[project]
name = "cinemagoerng"
version = "0.4"
description = "Retrieve data from the IMDb."
readme = "README.md"
authors = [
{name = "H. Turgut Uyar", email = "[email protected]"},
{name = "Mohamed Zumair", email = "[email protected]"},
{name = "Davide Alberani", email = "[email protected]"},
]
license = {file = "LICENSE.txt"}
keywords = ["imdb", "cinema", "movie", "film", "cast", "actor", "director"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Database :: Front-Ends",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = "~=3.10"
dependencies = [
"typedload",
"lxml",
"jmespath",
]
[project.optional-dependencies]
tests = [
"pytest",
"pytest-cov",
]
types = [
"mypy",
"lxml-stubs",
"types-jmespath",
]
style = ["ruff"]
dev = [
"cinemagoerng[tests,types,style]",
"build",
"twine",
"tox",
]
[project.urls]
repository = "https://github.com/cinemagoer/cinemagoerng"
[project.scripts]
cinemagoerng = "cinemagoerng:cli.main"
[tool.setuptools]
packages = ["cinemagoerng"]
include-package-data = false
[tool.setuptools.package-data]
cinemagoerng = ["specs/*.json"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.coverage.run]
source_pkgs = ["cinemagoerng"]
[tool.coverage.report]
show_missing = true
skip_covered = true
[tool.ruff]
line-length = 79
[tool.ruff.lint]
select = ["A", "E", "F", "I", "T", "W"]
[tool.ruff.lint.per-file-ignores]
"cli.py" = ["T201"]
"tests/*" = ["E501"]
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py3{10,11,12,13}, pypy3{10}, types, style
isolated_build = True
[testenv]
extras = tests
package = wheel
wheel_build_env = .pkg
commands =
pytest
[testenv:coverage]
commands =
pytest --cov
[testenv:types]
extras = types
commands =
mypy cinemagoerng
[testenv:style]
skip_install = true
deps =
ruff
commands =
ruff check --preview cinemagoerng tests
[testenv:package]
skip_install = true
deps =
build
twine
commands =
python -c "import shutil; shutil.rmtree('dist', ignore_errors=True)"
python -m build
twine check dist/*
"""
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"