python-hcl2 7.3.0__tar.gz → 7.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. python_hcl2-7.3.1/.github/workflows/dependencies_check.yml +27 -0
  2. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/CHANGELOG.md +6 -0
  3. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/PKG-INFO +3 -2
  4. python_hcl2-7.3.1/bin/check_deps.py +54 -0
  5. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/hcl2/version.py +2 -2
  6. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/pyproject.toml +5 -1
  7. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/python_hcl2.egg-info/PKG-INFO +3 -2
  8. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/python_hcl2.egg-info/SOURCES.txt +2 -0
  9. python_hcl2-7.3.1/python_hcl2.egg-info/requires.txt +2 -0
  10. python_hcl2-7.3.0/python_hcl2.egg-info/requires.txt +0 -1
  11. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/.codacy.yml +0 -0
  12. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/.coveragerc +0 -0
  13. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/.github/CODEOWNERS +0 -0
  14. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/.github/ISSUE_TEMPLATE/hcl2-parsing-error.md +0 -0
  15. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/.github/workflows/codeql-analysis.yml +0 -0
  16. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/.github/workflows/pr_check.yml +0 -0
  17. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/.github/workflows/publish.yml +0 -0
  18. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/.gitignore +0 -0
  19. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/.pre-commit-config.yaml +0 -0
  20. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/.yamllint.yml +0 -0
  21. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/LICENSE +0 -0
  22. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/MANIFEST.in +0 -0
  23. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/README.md +0 -0
  24. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/bin/terraform_test +0 -0
  25. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/hcl2/__init__.py +0 -0
  26. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/hcl2/__main__.py +0 -0
  27. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/hcl2/api.py +0 -0
  28. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/hcl2/builder.py +0 -0
  29. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/hcl2/const.py +0 -0
  30. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/hcl2/hcl2.lark +0 -0
  31. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/hcl2/parser.py +0 -0
  32. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/hcl2/py.typed +0 -0
  33. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/hcl2/reconstructor.py +0 -0
  34. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/hcl2/transformer.py +0 -0
  35. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/mypy.ini +0 -0
  36. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/pylintrc +0 -0
  37. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/python_hcl2.egg-info/dependency_links.txt +0 -0
  38. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/python_hcl2.egg-info/entry_points.txt +0 -0
  39. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/python_hcl2.egg-info/not-zip-safe +0 -0
  40. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/python_hcl2.egg-info/top_level.txt +0 -0
  41. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/reports/.gitignore +0 -0
  42. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/requirements.txt +0 -0
  43. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/setup.cfg +0 -0
  44. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/test-requirements.txt +0 -0
  45. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/tox.ini +0 -0
  46. {python_hcl2-7.3.0 → python_hcl2-7.3.1}/tree-to-hcl2-reconstruction.md +0 -0
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: Dependencies Check
3
+ on:
4
+ pull_request:
5
+ types:
6
+ - opened
7
+ - reopened
8
+ - synchronize
9
+ paths:
10
+ - pyproject.toml
11
+ - requirements.txt
12
+ - scripts/check_deps.py
13
+
14
+ jobs:
15
+ test:
16
+ name: Check dependencies sync between pyproject.toml and requirements.txt
17
+ runs-on: ubuntu-22.04
18
+ steps:
19
+ - uses: actions/checkout@master
20
+ - name: Set up Python 3.13
21
+ uses: actions/setup-python@v4
22
+ with:
23
+ python-version: 3.13
24
+ - name: Install dependencies
25
+ run: python -m pip install --upgrade tomli
26
+ - name: Run script
27
+ run: python3 bin/check_deps.py
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
9
9
 
10
10
  - Nothing yet.
11
11
 
12
+ ## \[7.3.1\] - 2025-07-24
13
+
14
+ ### Fixed
15
+
16
+ - Updated pyproject.toml dependencies. Thanks, @kkorlyak ([#244](https://github.com/amplify-education/python-hcl2/pull/244))
17
+
12
18
  ## \[7.3.0\] - 2025-07-23
13
19
 
14
20
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-hcl2
3
- Version: 7.3.0
3
+ Version: 7.3.1
4
4
  Summary: A parser for HCL2
5
5
  Author-email: Amplify Education <github@amplify.com>
6
6
  License: MIT
@@ -22,7 +22,8 @@ Classifier: Programming Language :: Python :: 3.13
22
22
  Requires-Python: >=3.7.0
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: lark<2,>=1
25
+ Requires-Dist: lark<2.0,>=1.1.5
26
+ Requires-Dist: regex>=2024.4.16
26
27
  Dynamic: license-file
27
28
 
28
29
  [![Codacy Badge](https://app.codacy.com/project/badge/Grade/2e2015f9297346cbaa788c46ab957827)](https://app.codacy.com/gh/amplify-education/python-hcl2/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
@@ -0,0 +1,54 @@
1
+ """Used by dependencies_check.yml to verify if dependencies between pyproject.yml and requirements.txt are in sync"""
2
+ import sys
3
+ from typing import Set
4
+ import difflib
5
+ import tomli
6
+
7
+
8
+ def get_pyproject_deps() -> Set[str]:
9
+ with open("pyproject.toml", "rb") as f:
10
+ pyproject_data = tomli.load(f)
11
+ return set(pyproject_data.get("project", {}).get("dependencies", set()))
12
+
13
+
14
+ def get_requirements_deps() -> Set[str]:
15
+ result = set()
16
+ with open("requirements.txt", "r") as f:
17
+ for line in f:
18
+ line = line.strip()
19
+ if line and not line.startswith("#"):
20
+ result.add(line)
21
+ return result
22
+
23
+
24
+ def main():
25
+
26
+ pyproject_deps = get_pyproject_deps()
27
+ requirements_deps = get_requirements_deps()
28
+
29
+ pyproject_lines = list(sorted(pyproject_deps))
30
+
31
+ if pyproject_deps == requirements_deps:
32
+ print("All dependencies are in sync:")
33
+ for line in pyproject_lines:
34
+ print(line)
35
+ sys.exit(0)
36
+
37
+ print("Failed, dependencies mismatch:")
38
+ requirements_lines = list(sorted(requirements_deps))
39
+
40
+ diff = difflib.unified_diff(
41
+ pyproject_lines,
42
+ requirements_lines,
43
+ fromfile="pyproject.toml",
44
+ tofile="requirements.txt",
45
+ lineterm="",
46
+ )
47
+ for line in diff:
48
+ print(line)
49
+
50
+ sys.exit(1)
51
+
52
+
53
+ if __name__ == "__main__":
54
+ main()
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '7.3.0'
21
- __version_tuple__ = version_tuple = (7, 3, 0)
20
+ __version__ = version = '7.3.1'
21
+ __version_tuple__ = version_tuple = (7, 3, 1)
@@ -25,7 +25,11 @@ classifiers = [
25
25
  "Programming Language :: Python :: 3.13",
26
26
  ]
27
27
  requires-python = ">=3.7.0"
28
- dependencies = ["lark>=1,<2"]
28
+
29
+ dependencies = [
30
+ "lark>=1.1.5,<2.0",
31
+ "regex>=2024.4.16"
32
+ ]
29
33
  dynamic = ["version"]
30
34
 
31
35
  [project.readme]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-hcl2
3
- Version: 7.3.0
3
+ Version: 7.3.1
4
4
  Summary: A parser for HCL2
5
5
  Author-email: Amplify Education <github@amplify.com>
6
6
  License: MIT
@@ -22,7 +22,8 @@ Classifier: Programming Language :: Python :: 3.13
22
22
  Requires-Python: >=3.7.0
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: lark<2,>=1
25
+ Requires-Dist: lark<2.0,>=1.1.5
26
+ Requires-Dist: regex>=2024.4.16
26
27
  Dynamic: license-file
27
28
 
28
29
  [![Codacy Badge](https://app.codacy.com/project/badge/Grade/2e2015f9297346cbaa788c46ab957827)](https://app.codacy.com/gh/amplify-education/python-hcl2/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
@@ -17,8 +17,10 @@ tree-to-hcl2-reconstruction.md
17
17
  .github/CODEOWNERS
18
18
  .github/ISSUE_TEMPLATE/hcl2-parsing-error.md
19
19
  .github/workflows/codeql-analysis.yml
20
+ .github/workflows/dependencies_check.yml
20
21
  .github/workflows/pr_check.yml
21
22
  .github/workflows/publish.yml
23
+ bin/check_deps.py
22
24
  bin/terraform_test
23
25
  hcl2/__init__.py
24
26
  hcl2/__main__.py
@@ -0,0 +1,2 @@
1
+ lark<2.0,>=1.1.5
2
+ regex>=2024.4.16
@@ -1 +0,0 @@
1
- lark<2,>=1
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes