-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
92 lines (81 loc) · 2.71 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
[build-system]
requires = ["setuptools>=61.0", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "cedarscript-editor"
dynamic = ["version"]
description = "A library for executing CEDARScript, a SQL-like language for code analysis and transformations"
authors = [{ name = "Elifarley", email = "cedarscript@orgecc.com" }]
readme = "README.md"
license = {text = "Apache-2.0"}
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Linguistic",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Compilers",
]
keywords = ["cedarscript", "code-editing", "refactoring", "code-analysis", "sql-like", "ai-assisted-development"]
dependencies = [
"cedarscript-ast-parser>=0.6.1",
"grep-ast==0.4.1",
# https://github.com/tree-sitter/py-tree-sitter/issues/303
# https://github.com/grantjenks/py-tree-sitter-languages/issues/64
"tree-sitter==0.21.3", # 0.22 breaks tree-sitter-languages
"tree-sitter-languages==1.10.2",
]
requires-python = ">=3.11"
[project.urls]
Homepage = "https://github.com/CEDARScript/cedarscript-editor-python"
Documentation = "https://github.com/CEDARScript/cedarscript-editor-python#readme"
Repository = "https://github.com/CEDARScript/cedarscript-editor-python.git"
"Bug Tracker" = "https://github.com/CEDARScript/cedarscript-editor-python/issues"
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=6.0.0",
"black>=22.0",
"isort>=5.0",
"flake8>=4.0",
"mypy>=0.900",
"coverage>=6.0",
"tox>=3.24",
]
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools_scm]
# To override version:
# >>> SETUPTOOLS_SCM_PRETEND_VERSION=0.0.2 python -m build
# To dry-run and see version:
# >>> python -m setuptools_scm
write_to = "src/cedarscript_editor/_version.py"
# Append .post{number of commits} to your version if there are commits after the last tag.
version_scheme = "post-release"
[tool.setuptools.packages.find]
where = ["src"]
include = ["cedarscript_editor*", "text_manipulation*"]
exclude = ["cedarscript_ast_parser.tests*"]
namespaces = false
[tool.setuptools.package-data]
"*" = ["*.txt", "*.rst"]
[tool.black]
line-length = 100
target-version = ['py311']
[tool.isort]
profile = "black"
line_length = 100
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_configs = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = [
"tests",
]