-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to pyproject.yaml. Expand antlr runtime compatibility check.
- Loading branch information
Showing
3 changed files
with
105 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'dev/**' | ||
pull_request: | ||
branches: [ main ] | ||
release: | ||
types: | ||
- published | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build distributions | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
name: Install Python | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U build | ||
- name: Build | ||
run: python -m build | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: | | ||
dist/*.tar.gz | ||
dist/*.whl | ||
#------------------------------------------------------------------------------- | ||
publish: | ||
needs: | ||
- build | ||
|
||
runs-on: ubuntu-latest | ||
environment: release | ||
permissions: | ||
id-token: write | ||
|
||
# Only publish when a GitHub Release is created. | ||
if: github.event_name == 'release' | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: artifact | ||
path: dist | ||
- uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[build-system] | ||
requires = ["setuptools", "setuptools-scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "speedy-antlr-tool" | ||
dynamic = ["version"] | ||
requires-python = ">=3.6" | ||
dependencies = [ | ||
"antlr4-python3-runtime >= 4.10, < 4.14", | ||
"jinja2", | ||
] | ||
|
||
authors = [ | ||
{name="Alex Mykyta"}, | ||
] | ||
description = "Generate an accelerator extension that makes your Antlr parser in Python super-fast!" | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"Operating System :: OS Independent", | ||
"Topic :: Software Development :: Compilers", | ||
"Topic :: Software Development :: Code Generators", | ||
] | ||
|
||
[project.urls] | ||
Source = "https://github.com/amykyta3/speedy-antlr-tool" | ||
Tracker = "https://github.com/amykyta3/speedy-antlr-tool/issues" | ||
Changelog = "https://github.com/amykyta3/speedy-antlr-tool/releases" | ||
Documentation = "http://speedy-antlr-tool.readthedocs.io" | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "speedy_antlr_tool.__about__.__version__"} |