Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

element parent, update deps, support Python >= 3.9 #44

Merged
merged 6 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: "CI"

on:
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- '.github/workflows/ci.yml'
- '.pre-commig-config.yaml'
- 'pyproject.toml'
- 'poetry.lock'
- 'src/**.py'
Expand All @@ -20,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand All @@ -38,13 +39,13 @@ jobs:

- name: Test with pytest
run: |
poetry run pytest -v test/unit
poetry run pytest -v test/unit

regression-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
node-version: [20]

steps:
Expand All @@ -56,7 +57,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install node dependencies
run: |
mkdir test/regression/node_root
Expand All @@ -78,4 +79,4 @@ jobs:

- name: Test with pytest
run: |
poetry run pytest -v test/regression
poetry run pytest -v test/regression
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.2
rev: v0.3.4
hooks:
# Run the linter.
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# -- Project information -----------------------------------------------------

project = "Texmate Grammar Python"
version = "0.3.0"
version = "0.4.0"
copyright = f"{date.today().year}, Mark Shui Hu"
author = "Mark Shui Hu"

Expand Down
79 changes: 44 additions & 35 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
alabaster==0.7.16 ; python_version >= "3.11" and python_version < "4.0" \
alabaster==0.7.16 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:75a8b99c28a5dad50dd7f8ccdd447a121ddb3892da9e53d1ca5cca3106d58d65 \
--hash=sha256:b46733c07dce03ae4e150330b975c75737fa60f0a7c591b6c8bf4928a28e2c92
astroid==3.1.0 ; python_version >= "3.11" and python_version < "4.0" \
astroid==3.1.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:951798f922990137ac090c53af473db7ab4e70c770e6d7fae0cec59f74411819 \
--hash=sha256:ac248253bfa4bd924a0de213707e7ebeeb3138abeb48d798784ead1e56d419d4
babel==2.14.0 ; python_version >= "3.11" and python_version < "4.0" \
babel==2.14.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:6919867db036398ba21eb5c7a0f6b28ab8cbc3ae7a73a44ebe34ae74a4e7d363 \
--hash=sha256:efb1a25b7118e67ce3a259bed20545c29cb68be8ad2c784c83689981b7a57287
beautifulsoup4==4.12.3 ; python_version >= "3.11" and python_version < "4.0" \
beautifulsoup4==4.12.3 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:74e3d1928edc070d21748185c46e3fb33490f22f52a3addee9aee0f4f7781051 \
--hash=sha256:b80878c9f40111313e55da8ba20bdba06d8fa3969fc68304167741bbf9e082ed
certifi==2024.2.2 ; python_version >= "3.11" and python_version < "4.0" \
certifi==2024.2.2 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:0569859f95fc761b18b45ef421b1290a0f65f147e92a1e5eb3e635f9a5e4e66f \
--hash=sha256:dc383c07b76109f368f6106eee2b593b04a011ea4d55f652c6ca24a754d1cdd1
charset-normalizer==3.3.2 ; python_version >= "3.11" and python_version < "4.0" \
charset-normalizer==3.3.2 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:06435b539f889b1f6f4ac1758871aae42dc3a8c0e24ac9e60c2384973ad73027 \
--hash=sha256:06a81e93cd441c56a9b65d8e1d043daeb97a3d0856d177d5c90ba85acb3db087 \
--hash=sha256:0a55554a2fa0d408816b3b5cedf0045f4b8e1a6065aec45849de2d6f3f8e9786 \
Expand Down Expand Up @@ -104,28 +104,31 @@ charset-normalizer==3.3.2 ; python_version >= "3.11" and python_version < "4.0"
--hash=sha256:fb69256e180cb6c8a894fee62b3afebae785babc1ee98b81cdf68bbca1987f33 \
--hash=sha256:fd1abc0d89e30cc4e02e4064dc67fcc51bd941eb395c502aac3ec19fab46b519 \
--hash=sha256:ff8fa367d09b717b2a17a052544193ad76cd49979c805768879cb63d9ca50561
colorama==0.4.6 ; python_version >= "3.11" and python_version < "4.0" and sys_platform == "win32" \
colorama==0.4.6 ; python_version >= "3.9" and python_version < "4.0" and sys_platform == "win32" \
--hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \
--hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
docutils==0.20.1 ; python_version >= "3.11" and python_version < "4.0" \
docutils==0.20.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:96f387a2c5562db4476f09f13bbab2192e764cac08ebbf3a34a95d9b1e4a59d6 \
--hash=sha256:f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b
furo==2024.1.29 ; python_version >= "3.11" and python_version < "4.0" \
furo==2024.1.29 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:3548be2cef45a32f8cdc0272d415fcb3e5fa6a0eb4ddfe21df3ecf1fe45a13cf \
--hash=sha256:4d6b2fe3f10a6e36eb9cc24c1e7beb38d7a23fc7b3c382867503b7fcac8a1e02
idna==3.6 ; python_version >= "3.11" and python_version < "4.0" \
idna==3.6 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:9ecdbbd083b06798ae1e86adcbfe8ab1479cf864e4ee30fe4e46a003d12491ca \
--hash=sha256:c05567e9c24a6b9faaa835c4821bad0590fbb9d5779e7caa6e1cc4978e7eb24f
imagesize==1.4.1 ; python_version >= "3.11" and python_version < "4.0" \
imagesize==1.4.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:0d8d18d08f840c19d0ee7ca1fd82490fdc3729b7ac93f49870406ddde8ef8d8b \
--hash=sha256:69150444affb9cb0d5cc5a92b3676f0b2fb7cd9ae39e947a5e11a36b4497cd4a
jinja2==3.1.3 ; python_version >= "3.11" and python_version < "4.0" \
importlib-metadata==7.1.0 ; python_version >= "3.9" and python_version < "3.10" \
--hash=sha256:30962b96c0c223483ed6cc7280e7f0199feb01a0e40cfae4d4450fc6fab1f570 \
--hash=sha256:b78938b926ee8d5f020fc4772d487045805a55ddbad2ecf21c6d60938dc7fcd2
jinja2==3.1.3 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:7d6d50dd97d52cbc355597bd845fabfbac3f551e1f99619e39a35ce8c370b5fa \
--hash=sha256:ac8bd6544d4bb2c9792bf3a159e80bba8fda7f07e81bc3aed565432d5925ba90
markdown-it-py==3.0.0 ; python_version >= "3.11" and python_version < "4.0" \
markdown-it-py==3.0.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1 \
--hash=sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb
markupsafe==2.1.5 ; python_version >= "3.11" and python_version < "4.0" \
markupsafe==2.1.5 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:00e046b6dd71aa03a41079792f8473dc494d564611a8f89bbbd7cb93295ebdcf \
--hash=sha256:075202fa5b72c86ad32dc7d0b56024ebdbcf2048c0ba09f1cde31bfdd57bcfff \
--hash=sha256:0e397ac966fdf721b2c528cf028494e86172b4feba51d65f81ffd65c63798f3f \
Expand Down Expand Up @@ -186,22 +189,22 @@ markupsafe==2.1.5 ; python_version >= "3.11" and python_version < "4.0" \
--hash=sha256:fa9db3f79de01457b03d4f01b34cf91bc0048eb2c3846ff26f66687c2f6d16ab \
--hash=sha256:fce659a462a1be54d2ffcacea5e3ba2d74daa74f30f5f143fe0c58636e355fdd \
--hash=sha256:ffee1f21e5ef0d712f9033568f8344d5da8cc2869dbd08d87c84656e6a2d2f68
mdit-py-plugins==0.4.0 ; python_version >= "3.11" and python_version < "4.0" \
mdit-py-plugins==0.4.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:b51b3bb70691f57f974e257e367107857a93b36f322a9e6d44ca5bf28ec2def9 \
--hash=sha256:d8ab27e9aed6c38aa716819fedfde15ca275715955f8a185a8e1cf90fb1d2c1b
mdurl==0.1.2 ; python_version >= "3.11" and python_version < "4.0" \
mdurl==0.1.2 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8 \
--hash=sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba
myst-parser==2.0.0 ; python_version >= "3.11" and python_version < "4.0" \
myst-parser==2.0.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:7c36344ae39c8e740dad7fdabf5aa6fc4897a813083c6cc9990044eb93656b14 \
--hash=sha256:ea929a67a6a0b1683cdbe19b8d2e724cd7643f8aa3e7bb18dd65beac3483bead
packaging==24.0 ; python_version >= "3.11" and python_version < "4.0" \
packaging==24.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5 \
--hash=sha256:eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9
pygments==2.17.2 ; python_version >= "3.11" and python_version < "4.0" \
pygments==2.17.2 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:b27c2826c47d0f3219f29554824c30c5e8945175d888647acd804ddd04af846c \
--hash=sha256:da46cec9fd2de5be3a8a784f434e4c4ab670b4ff54d605c4c2717e9d49c4c367
pyyaml==6.0.1 ; python_version >= "3.11" and python_version < "4.0" \
pyyaml==6.0.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5 \
--hash=sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc \
--hash=sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df \
Expand Down Expand Up @@ -253,48 +256,54 @@ pyyaml==6.0.1 ; python_version >= "3.11" and python_version < "4.0" \
--hash=sha256:fca0e3a251908a499833aa292323f32437106001d436eca0e6e7833256674585 \
--hash=sha256:fd1592b3fdf65fff2ad0004b5e363300ef59ced41c2e6b3a99d4089fa8c5435d \
--hash=sha256:fd66fc5d0da6d9815ba2cebeb4205f95818ff4b79c3ebe268e75d961704af52f
requests==2.31.0 ; python_version >= "3.11" and python_version < "4.0" \
requests==2.31.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f \
--hash=sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1
snowballstemmer==2.2.0 ; python_version >= "3.11" and python_version < "4.0" \
snowballstemmer==2.2.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:09b16deb8547d3412ad7b590689584cd0fe25ec8db3be37788be3810cbf19cb1 \
--hash=sha256:c8e1716e83cc398ae16824e5572ae04e0d9fc2c6b985fb0f900f5f0c96ecba1a
soupsieve==2.5 ; python_version >= "3.11" and python_version < "4.0" \
soupsieve==2.5 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:5663d5a7b3bfaeee0bc4372e7fc48f9cff4940b3eec54a6451cc5299f1097690 \
--hash=sha256:eaa337ff55a1579b6549dc679565eac1e3d000563bcb1c8ab0d0fefbc0c2cdc7
sphinx-autodoc2==0.5.0 ; python_version >= "3.11" and python_version < "4.0" \
sphinx-autodoc2==0.5.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:7d76044aa81d6af74447080182b6868c7eb066874edc835e8ddf810735b6565a \
--hash=sha256:e867013b1512f9d6d7e6f6799f8b537d6884462acd118ef361f3f619a60b5c9e
sphinx-basic-ng==1.0.0b2 ; python_version >= "3.11" and python_version < "4.0" \
sphinx-basic-ng==1.0.0b2 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:9ec55a47c90c8c002b5960c57492ec3021f5193cb26cebc2dc4ea226848651c9 \
--hash=sha256:eb09aedbabfb650607e9b4b68c9d240b90b1e1be221d6ad71d61c52e29f7932b
sphinx==7.2.6 ; python_version >= "3.11" and python_version < "4.0" \
sphinx==7.2.6 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:1e09160a40b956dc623c910118fa636da93bd3ca0b9876a7b3df90f07d691560 \
--hash=sha256:9a5160e1ea90688d5963ba09a2dcd8bdd526620edbb65c328728f1b2228d5ab5
sphinxcontrib-applehelp==1.0.8 ; python_version >= "3.11" and python_version < "4.0" \
sphinxcontrib-applehelp==1.0.8 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:c40a4f96f3776c4393d933412053962fac2b84f4c99a7982ba42e09576a70619 \
--hash=sha256:cb61eb0ec1b61f349e5cc36b2028e9e7ca765be05e49641c97241274753067b4
sphinxcontrib-devhelp==1.0.6 ; python_version >= "3.11" and python_version < "4.0" \
sphinxcontrib-devhelp==1.0.6 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:6485d09629944511c893fa11355bda18b742b83a2b181f9a009f7e500595c90f \
--hash=sha256:9893fd3f90506bc4b97bdb977ceb8fbd823989f4316b28c3841ec128544372d3
sphinxcontrib-htmlhelp==2.0.5 ; python_version >= "3.11" and python_version < "4.0" \
sphinxcontrib-htmlhelp==2.0.5 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:0dc87637d5de53dd5eec3a6a01753b1ccf99494bd756aafecd74b4fa9e729015 \
--hash=sha256:393f04f112b4d2f53d93448d4bce35842f62b307ccdc549ec1585e950bc35e04
sphinxcontrib-jsmath==1.0.1 ; python_version >= "3.11" and python_version < "4.0" \
sphinxcontrib-jsmath==1.0.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178 \
--hash=sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8
sphinxcontrib-mermaid==0.9.2 ; python_version >= "3.11" and python_version < "4.0" \
sphinxcontrib-mermaid==0.9.2 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:252ef13dd23164b28f16d8b0205cf184b9d8e2b714a302274d9f59eb708e77af \
--hash=sha256:6795a72037ca55e65663d2a2c1a043d636dc3d30d418e56dd6087d1459d98a5d
sphinxcontrib-qthelp==1.0.7 ; python_version >= "3.11" and python_version < "4.0" \
sphinxcontrib-qthelp==1.0.7 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:053dedc38823a80a7209a80860b16b722e9e0209e32fea98c90e4e6624588ed6 \
--hash=sha256:e2ae3b5c492d58fcbd73281fbd27e34b8393ec34a073c792642cd8e529288182
sphinxcontrib-serializinghtml==1.1.10 ; python_version >= "3.11" and python_version < "4.0" \
sphinxcontrib-serializinghtml==1.1.10 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:326369b8df80a7d2d8d7f99aa5ac577f51ea51556ed974e7716cfd4fca3f6cb7 \
--hash=sha256:93f3f5dc458b91b192fe10c397e324f262cf163d79f3282c158e8436a2c4511f
typing-extensions==4.10.0 ; python_version >= "3.11" and python_version < "4.0" \
tomli==2.0.1 ; python_version >= "3.9" and python_version < "3.11" \
--hash=sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc \
--hash=sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f
typing-extensions==4.10.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:69b1a937c3a517342112fb4c6df7e72fc39a38e7891a5730ed4985b5214b5475 \
--hash=sha256:b0abd7c89e8fb96f98db18d86106ff1d90ab692004eb746cf6eda2682f91b3cb
urllib3==2.2.1 ; python_version >= "3.11" and python_version < "4.0" \
urllib3==2.2.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:450b20ec296a467077128bff42b73080516e71b56ff59a60a02bef2232c4fa9d \
--hash=sha256:d0570876c61ab9e520d776c38acbbb5b05a776d3f9ff98a5c8fd5162a444cf19
zipp==3.18.1 ; python_version >= "3.9" and python_version < "3.10" \
--hash=sha256:206f5a15f2af3dbaee80769fb7dc6f249695e940acca08dfb2a4769fe61e538b \
--hash=sha256:2884ed22e7d8961de1c9a05142eb69a247f120291bc0206a00a7642f09b5b715
Loading