diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0a8c941 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +/src/version/_version.py +src/*.egg-info +__pycache__ +dist +build +out +.coverage +.*.history* +*.tags.cache* diff --git a/Makefile b/Makefile index a59585f..e6852c9 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,11 @@ all: ci build version dist d: all scripts/check-version.sh - twine upload dist/* + # 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 ||: 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. 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 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