Skip to content

Commit ccc86cc

Browse files
committed
Add python 3.11 check and improvements
1 parent d92ac8d commit ccc86cc

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

.github/workflows/test.yml .github/workflows/pr_check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
strategy:
1414
matrix:
15-
python-version: ['3.7', '3.8', '3.9', '3.10']
15+
python-version: ['3.7', '3.8', '3.9', '3.10', ]
1616
steps:
1717
- uses: actions/checkout@master
1818
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
run: python -m pip install --upgrade pip build
1818
- name: Generate Lark Parser
1919
run: |
20-
pip install -r requirements.pip -e .
20+
pip install -r requirements.txt -e .
2121
python hcl2/parser.py
2222
- name: Build tarball
2323
run: python3 -m build

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## \[4.0.1] - 2022-12-16
7+
## \[4.1.0] - 2022-12-27
8+
9+
### Added
10+
- Added support of python 3.11
811

912
### Changed
1013
- Moved from setup.py to pyproject.toml. Thanks @KOLANICH ([#98](https://github.com/amplify-education/python-hcl2/pull/98))

requirements.pip requirements.txt

File renamed without changes.
File renamed without changes.

tox.ini

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist=lint,{py37}-unit,{py38}-unit,{py39}-unit,{py310}-unit
2+
envlist=lint,{py37}-unit,{py38}-unit,{py39}-unit,{py310}-unit,{py311}-unit
33
skipsdist=true
44

55
[gh-actions]
@@ -8,18 +8,19 @@ python =
88
3.8: py38-unit
99
3.9: py39-unit
1010
3.10: py310-unit
11+
3.11: py311-unit
1112

1213
[testenv]
1314
commands =
14-
pip install --upgrade -r requirements.pip -r test-requirements.pip .
15+
pip install --upgrade -r requirements.txt -r test-requirements.txt .
1516
nose2 --config tox.ini --verbose
1617
coverage xml -o reports/coverage.xml --omit=hcl2/lark_parser.py
1718

1819
[testenv:lint]
1920
allowlist_externals=npm
2021
basepython=python3.7
2122
commands =
22-
pip install --upgrade -r requirements.pip -r test-requirements.pip -e .
23+
pip install --upgrade -r requirements.txt -r test-requirements.txt -e .
2324
pylint --rcfile=pylintrc --output-format=colorized --ignore lark_parser.py,version.py hcl2 test
2425
pycodestyle --exclude=lark_parser.py,version.py hcl2 test
2526
mypy .
@@ -33,7 +34,7 @@ whitelist_externals=rm
3334
passenv = TERRAFORM_CONFIG
3435
basepython=python3.7
3536
commands =
36-
pip install --upgrade -r requirements.pip -r test-requirements.pip -e .
37+
pip install --upgrade -r requirements.txt -r test-requirements.txt -e .
3738
rm -f hcl2/lark_parser.py
3839
python bin/terraform_test {posargs}
3940

0 commit comments

Comments
 (0)