-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
132 lines (110 loc) · 3.79 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
########################################################################################
# Build system configuration #
########################################################################################
[build-system]
# Latest versions that support Python 3.7
requires = ["setuptools >= 61", "setuptools_scm >= 7"]
build-backend = "setuptools.build_meta"
[tool.setuptools.package-dir]
just_sh = "just_sh"
pyjust = "just_sh"
[tool.setuptools.packages]
find = {}
[tool.setuptools.package-data]
"*" = ["py.typed"]
[tool.setuptools_scm]
########################################################################################
# Package metadata #
########################################################################################
[project]
name = "just.sh"
authors = [
{ name = "Jacob Strieb", email = "[email protected]" },
]
description = "Compile Justfiles to portable shell scripts"
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Software Development",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Build Tools",
"Topic :: Utilities",
"Typing :: Typed",
]
keywords = [ "just", "justfile", "just.sh", "shell", "compiler", "POSIX", "pyjust" ]
# Realistically, all of the code except for setuptools should be compatible with
# Python 3.6. So it's probably possible to run this code on Python 3.6 if the
# code is installed manually (without using this pyproject.toml) or run directly
# from cloned source.
requires-python = ">=3.7"
# May be compatible with older versions
dependencies = [
"parsy >= 2.1",
"importlib_metadata >= 1.4 ; python_version < '3.8'"
]
dynamic = ["version"]
[project.optional-dependencies]
# May be compatible with older versions. Many of the versions below are the
# latest ones that support Python 3.7.
test = [
# Linting
"black ~= 23.3.0",
"mypy ~= 1.4.1",
"ruff ~= 0.1.8",
# Testing
"pytest ~= 7.4.3",
"coverage[toml] ~= 6.5.0",
"pytest-cov ~= 4.1.0",
"pytest-xdist ~= 3.5.0",
]
[project.urls]
Homepage = "https://github.com/jstrieb/just.sh"
Repository = "https://github.com/jstrieb/just.sh.git"
Issues = "https://github.com/jstrieb/just.sh/issues"
[project.scripts]
"just.sh" = "just_sh.convert:cli_entrypoint"
just-sh = "just_sh.convert:cli_entrypoint"
just_sh = "just_sh.convert:cli_entrypoint"
pyjust = "just_sh.convert:cli_entrypoint"
########################################################################################
# Tool configuration #
########################################################################################
[tool.ruff.lint]
select = ["E", "F", "UP", "B", "SIM", "I"]
ignore = ["SIM108", "E501"]
[tool.mypy]
strict = true
[[tool.mypy.overrides]]
module = "parsy"
ignore_missing_imports = true
[tool.coverage.run]
relative_files = true
omit = [
"__*__.py",
]
[tool.coverage.report]
omit = [
"__*__.py",
]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain if tests don't hit defensive assertion code
"raise AssertionError",
"raise NotImplementedError",
"raise RuntimeError",
"raise ValueError",
"except ImportError",
"except PackageNotFoundError",
# Don't complain if non-runnable code isn't run
"if __name__ == .__main__.:",
"cli_entrypoint",
# Ignore unused conditionals
"pass",
]