From 657b5158dc2ae7593d6435772c31a115d76aca29 Mon Sep 17 00:00:00 2001 From: Elifarley Date: Thu, 12 Dec 2024 03:09:22 -0300 Subject: [PATCH 1/3] cedarscript-grammar>=0.7.0 --- Makefile | 2 +- pyproject.toml | 6 +++--- src/cedarscript_ast_parser/__init__.py | 2 +- src/version/__init__.py | 3 +++ 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 src/version/__init__.py diff --git a/Makefile b/Makefile index a59585f..0478c1d 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ all: ci build version dist d: all scripts/check-version.sh - twine upload dist/* + twine upload $$(test -e ~/.pypirc && echo '--config-file ~/.pypirc') dist/* clean c: rm -rfv out dist build/bdist.* build/lib/cedarscript* diff --git a/pyproject.toml b/pyproject.toml index b735d2e..a07ecfc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ classifiers = [ ] keywords = ["parser", "ast", "cedarscript", "code-editing", "refactoring", "code-analysis", "sql-like", "ai-assisted-development"] dependencies = [ - "cedarscript-grammar>=0.6.1", + "cedarscript-grammar>=0.7.0", ] requires-python = ">=3.8" @@ -49,7 +49,7 @@ package-dir = {"" = "src"} [tool.setuptools.packages.find] where = ["src"] -include = ["cedarscript_ast_parser*"] +include = ["version", "cedarscript_ast_parser*"] exclude = ["cedarscript_ast_parser.tests*"] namespaces = false @@ -58,7 +58,7 @@ namespaces = false # >>> SETUPTOOLS_SCM_PRETEND_VERSION=0.0.2 python -m build # To dry-run and see version: # >>> python -m setuptools_scm -write_to = "src/cedarscript_ast_parser/_version.py" +write_to = "src/version/_version.py" # Append .post{number of commits} to your version if there are commits after the last tag. version_scheme = "post-release" diff --git a/src/cedarscript_ast_parser/__init__.py b/src/cedarscript_ast_parser/__init__.py index 565017a..9bb62ec 100644 --- a/src/cedarscript_ast_parser/__init__.py +++ b/src/cedarscript_ast_parser/__init__.py @@ -1,4 +1,4 @@ -from ._version import __version__ +from version import __version__ from .cedarscript_ast_parser import ( CEDARScriptASTParser, ParseError, Command, diff --git a/src/version/__init__.py b/src/version/__init__.py new file mode 100644 index 0000000..32495d2 --- /dev/null +++ b/src/version/__init__.py @@ -0,0 +1,3 @@ +from ._version import version + +__version__ = version From 3d89893f65ce40a395f14ba3aa91f8aab3a74840 Mon Sep 17 00:00:00 2001 From: Elifarley Date: Thu, 12 Dec 2024 11:38:40 -0300 Subject: [PATCH 2/3] Makefile and .gitignore adjustments --- .gitignore | 8 ++++++++ Makefile | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3983192 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +/src/version/_version.py +src/*.egg-info +dist +build +out +.coverage +.*.history* +*.tags.cache* diff --git a/Makefile b/Makefile index 0478c1d..e6852c9 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,11 @@ all: ci build version dist d: all scripts/check-version.sh + # Win MSYS2 support: force config file location twine upload $$(test -e ~/.pypirc && echo '--config-file ~/.pypirc') dist/* clean c: - rm -rfv out dist build/bdist.* build/lib/cedarscript* + rm -rfv out dist build/bdist.* src/*.egg-info version v: git describe --tags ||: From 114005f2a150970f15d51cc9e0d62862a0252ccb Mon Sep 17 00:00:00 2001 From: Elifarley Date: Thu, 19 Dec 2024 21:19:11 +0000 Subject: [PATCH 3/3] Fix license badge --- .gitignore | 1 + README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3983192..0a8c941 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /src/version/_version.py src/*.egg-info +__pycache__ dist build out diff --git a/README.md b/README.md index 8928a32..dc08aa8 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![PyPI version](https://badge.fury.io/py/cedarscript-ast-parser.svg)](https://pypi.org/project/cedarscript-ast-parser/) [![Python Versions](https://img.shields.io/pypi/pyversions/cedarscript-ast-parser.svg)](https://pypi.org/project/cedarscript-ast-parser/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) -[![AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0) +[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) `CEDARScript AST Parser` is a Python library for parsing and interpreting `CEDARScript`, a SQL-like language designed for concise code analysis, manipulation, and refactoring tasks. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy