pycodify 0.1.0__tar.gz → 0.1.2__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 (26) hide show
  1. {pycodify-0.1.0 → pycodify-0.1.2}/PKG-INFO +1 -1
  2. {pycodify-0.1.0 → pycodify-0.1.2}/pyproject.toml +3 -3
  3. {pycodify-0.1.0 → pycodify-0.1.2}/scripts/update_version.py +11 -1
  4. {pycodify-0.1.0 → pycodify-0.1.2}/src/pycodify/__init__.py +1 -1
  5. {pycodify-0.1.0 → pycodify-0.1.2}/.github/workflows/ci.yml +0 -0
  6. {pycodify-0.1.0 → pycodify-0.1.2}/.github/workflows/publish.yml +0 -0
  7. {pycodify-0.1.0 → pycodify-0.1.2}/.gitignore +0 -0
  8. {pycodify-0.1.0 → pycodify-0.1.2}/CONTRIBUTING.md +0 -0
  9. {pycodify-0.1.0 → pycodify-0.1.2}/LICENSE +0 -0
  10. {pycodify-0.1.0 → pycodify-0.1.2}/README.md +0 -0
  11. {pycodify-0.1.0 → pycodify-0.1.2}/docs/Makefile +0 -0
  12. {pycodify-0.1.0 → pycodify-0.1.2}/docs/api.rst +0 -0
  13. {pycodify-0.1.0 → pycodify-0.1.2}/docs/architecture.rst +0 -0
  14. {pycodify-0.1.0 → pycodify-0.1.2}/docs/conf.py +0 -0
  15. {pycodify-0.1.0 → pycodify-0.1.2}/docs/index.rst +0 -0
  16. {pycodify-0.1.0 → pycodify-0.1.2}/docs/usage.rst +0 -0
  17. {pycodify-0.1.0 → pycodify-0.1.2}/paper.bib +0 -0
  18. {pycodify-0.1.0 → pycodify-0.1.2}/paper.md +0 -0
  19. {pycodify-0.1.0 → pycodify-0.1.2}/scripts/release.py +0 -0
  20. {pycodify-0.1.0 → pycodify-0.1.2}/scripts/update_and_release.py +0 -0
  21. {pycodify-0.1.0 → pycodify-0.1.2}/scripts/verify_release_ready.py +0 -0
  22. {pycodify-0.1.0 → pycodify-0.1.2}/src/pycodify/core.py +0 -0
  23. {pycodify-0.1.0 → pycodify-0.1.2}/src/pycodify/formatters.py +0 -0
  24. {pycodify-0.1.0 → pycodify-0.1.2}/src/pycodify/imports.py +0 -0
  25. {pycodify-0.1.0 → pycodify-0.1.2}/tests/__init__.py +0 -0
  26. {pycodify-0.1.0 → pycodify-0.1.2}/tests/test_core.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pycodify
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Python source code as a serialization format with automatic import resolution
5
5
  Project-URL: Homepage, https://github.com/OpenHCSDev/pycodify
6
6
  Project-URL: Documentation, https://pycodify.readthedocs.io
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pycodify"
7
- version = "0.1.0"
7
+ version = "0.1.2"
8
8
  description = "Python source code as a serialization format with automatic import resolution"
9
9
  authors = [{name = "Tristan Simas", email = "tristan.simas@mail.mcgill.ca"}]
10
10
  license = {text = "MIT"}
@@ -62,11 +62,11 @@ target-version = ["py310", "py311", "py312", "py313"]
62
62
 
63
63
  [tool.ruff]
64
64
  line-length = 100
65
- target-version = "py310"
65
+ target-version = "0.1.2"
66
66
  select = ["E", "F", "I", "N", "W", "UP"]
67
67
 
68
68
  [tool.mypy]
69
- python_version = "3.10"
69
+ python_version = "0.1.2"
70
70
  warn_return_any = true
71
71
  warn_unused_configs = true
72
72
  disallow_untyped_defs = true
@@ -74,8 +74,18 @@ def update_version(new_version=None):
74
74
  )
75
75
  init_file.write_text(new_content)
76
76
 
77
+ # Update version in pyproject.toml
78
+ pyproject_file = Path("pyproject.toml")
79
+ content = pyproject_file.read_text()
80
+ new_content = re.sub(
81
+ r'(version\s*=\s*[\'"])[^\'"]+([\'"])',
82
+ rf'\g<1>{new_version}\2',
83
+ content
84
+ )
85
+ pyproject_file.write_text(new_content)
86
+
77
87
  # Commit and push changes
78
- subprocess.run(['git', 'add', 'src/pycodify/__init__.py'], check=True)
88
+ subprocess.run(['git', 'add', 'src/pycodify/__init__.py', 'pyproject.toml'], check=True)
79
89
  subprocess.run(['git', 'commit', '-m', f'bump version to {new_version}'], check=True)
80
90
  subprocess.run(['git', 'push', 'origin', 'main'], check=True)
81
91
 
@@ -14,7 +14,7 @@ from .imports import resolve_imports
14
14
  # Register default formatters
15
15
  from . import formatters as _formatters # noqa: F401
16
16
 
17
- __version__ = "0.1.1"
17
+ __version__ = "0.1.2"
18
18
 
19
19
  __all__ = [
20
20
  "Assignment",
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