-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
130 lines (115 loc) Β· 2.67 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
[project]
name = "emoji-country-flag"
dynamic = ["version"]
authors = [{name = "cuzi", email = "[email protected]"}]
license.text = "MIT"
description = "En/Decode unicode country flags emoji"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Communications :: Chat",
"Topic :: Printing",
"Topic :: Text Processing :: General",
"Typing :: Typed",
]
[project.urls]
homepage = "https://github.com/cvzi/flag"
documentation = "https://flag.readthedocs.io/"
repository = "https://github.com/cvzi/flag"
downloads = "https://pypi.org/project/emoji-country-flag/"
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.optional-dependencies]
test = [
"pytest >= 8.2.2",
"emoji >= 2.12.1",
"tox >= 4.15.0"
]
coverage = [
"coverage >= 7.5.1",
"codacy_coverage >= 1.3.11",
]
ruff = [
"ruff >= 0.4.7",
]
docs = [
"sphinx >= 7.3.7",
"sphinx-rtd-theme >= 2.0.0",
" sphinxcontrib-jquery >= 4.1",
]
[build-system]
requires = ["setuptools>=67.1"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["flag", "flag.data"]
zip-safe = true
license-files = ["LICENSE"]
include-package-data = false
[tool.setuptools.package-data]
flag = [
"py.typed",
"LICENSE",
"data/LICENSE",
"data/region.xml",
"data/subdivision.xml",
]
[tool.setuptools.dynamic]
version = {attr = "flag.__version__"}
[tool.pytest.ini_options]
pythonpath = "."
addopts = [
"--import-mode=importlib",
]
[tool.pyright]
pythonVersion = "3.10"
pythonPlatform = "All"
typeCheckingMode = "strict"
exclude = [
"**/__pycache__",
".mypy_cache",
".pytest_cache",
".ruff_cache",
".vscode",
".git",
".tox",
".venv",
"build",
"dist",
"tests",
"windows_tools",
]
# TODO remove the superfluos ignore
[tool.tox]
legacy_tox_ini = """
[tox]
env_list =
py310
py311
py312
pypy3s
minversion = 4.15.0
[testenv]
description = run the tests with pytest
package = wheel
wheel_build_env = .pkg
changedir = tests
deps =
pytest>=6
emoji>2
commands =
pytest {tty:--color=yes} --basetemp="{envtmpdir}" {posargs}
"""
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "B", "Q"]