1
1
[build-system ]
2
- requires = [" setuptools>=61.0" , " wheel" ]
2
+ requires = [" setuptools>=61.0" , " wheel" , " setuptools_scm[toml]>=6.2 " ]
3
3
build-backend = " setuptools.build_meta"
4
4
5
5
[project ]
6
6
name = " cedarscript-ast-parser"
7
7
dynamic = [" version" ]
8
8
description = " A library for parsing and interpreting CEDARScript, a SQL-like language for code analysis and transformations"
9
- readme = " README.md"
10
9
authors = [{ name = " Elifarley" , email = " cedarscript@orgecc.com" }]
11
- license = { file = " LICENSE" }
10
+ readme = " README.md"
11
+ license = {text = " MIT" }
12
12
classifiers = [
13
13
" Programming Language :: Python :: 3" ,
14
14
" Programming Language :: Python :: 3.12" ,
@@ -22,7 +22,7 @@ classifiers = [
22
22
]
23
23
keywords = [" parser" , " ast" , " cedarscript" , " code-editing" , " refactoring" , " code-analysis" , " sql-like" , " ai-assisted-development" ]
24
24
dependencies = [
25
- " cedarscript-grammar>=0.0.9 " ,
25
+ " cedarscript-grammar>=0.0.10 " ,
26
26
]
27
27
requires-python = " >=3.8"
28
28
@@ -40,15 +40,34 @@ dev = [
40
40
" flake8>=4.0" ,
41
41
]
42
42
43
- [tool .setuptools .dynamic ]
44
- version = {attr = " cedarscript_ast_parser.__version__" }
45
-
46
43
[tool .setuptools ]
47
44
package-dir = {"" = " src" }
48
- py-modules = [" cedarscript_ast_parser" ]
45
+
46
+ [tool .setuptools_scm ]
47
+ # To override version:
48
+ # >>> SETUPTOOLS_SCM_PRETEND_VERSION=0.0.2 python -m build
49
+ # To dry-run and see version:
50
+ # >>> python -m setuptools_scm
51
+ write_to = " src/cedarscript_ast_parser/_version.py"
52
+ # Append .post{number of commits} to your version if there are commits after the last tag.
53
+ version_scheme = " post-release"
49
54
50
55
[tool .setuptools .packages .find ]
51
56
where = [" src" ]
52
57
include = [" cedarscript_ast_parser*" ]
53
58
exclude = [" cedarscript_ast_parser.tests*" ]
54
59
namespaces = false
60
+
61
+ [tool .black ]
62
+ line-length = 100
63
+ target-version = [' py39' ]
64
+
65
+ [tool .isort ]
66
+ profile = " black"
67
+ line_length = 100
68
+
69
+ [tool .mypy ]
70
+ python_version = " 3.8"
71
+ strict = true
72
+ warn_return_any = true
73
+ warn_unused_configs = true
0 commit comments