itw-python-builder 0.2.6__tar.gz → 0.2.7__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 (25) hide show
  1. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/PKG-INFO +1 -1
  2. itw_python_builder-0.2.7/itw_python_builder/cli.py +35 -0
  3. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder.egg-info/PKG-INFO +1 -1
  4. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/pyproject.toml +1 -1
  5. itw_python_builder-0.2.6/itw_python_builder/cli.py +0 -9
  6. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/LICENSE +0 -0
  7. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/README.md +0 -0
  8. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder/.pylintrc +0 -0
  9. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder/__init__.py +0 -0
  10. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder/_pyruntime/sitecustomize.py +0 -0
  11. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder/notify.py +0 -0
  12. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder/ssr_tasks.py +0 -0
  13. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder/task_utils.py +0 -0
  14. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder/tasks.py +0 -0
  15. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder/templates/new_version_email.html +0 -0
  16. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder/templates/server.sitemap.snippet.ts +0 -0
  17. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder/templates/sitemap.routes.ts +0 -0
  18. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder/utils.py +0 -0
  19. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder/version.py +0 -0
  20. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder.egg-info/SOURCES.txt +0 -0
  21. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder.egg-info/dependency_links.txt +0 -0
  22. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder.egg-info/entry_points.txt +0 -0
  23. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder.egg-info/requires.txt +0 -0
  24. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/itw_python_builder.egg-info/top_level.txt +0 -0
  25. {itw_python_builder-0.2.6 → itw_python_builder-0.2.7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itw_python_builder
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: Standardized Django deployment pipeline with Docker, testing, and SonarQube integration
5
5
  Author-email: IT-Works <contact@it-works.io>
6
6
  License: MIT
@@ -0,0 +1,35 @@
1
+ from importlib.metadata import PackageNotFoundError, version as _pkg_version
2
+
3
+ from invoke import Argument, Collection, Program
4
+
5
+ from itw_python_builder import tasks
6
+
7
+
8
+ def _get_version() -> str:
9
+ try:
10
+ return _pkg_version('itw_python_builder')
11
+ except PackageNotFoundError:
12
+ return 'unknown'
13
+
14
+
15
+ class ItwProgram(Program):
16
+ def core_args(self):
17
+ args = super().core_args()
18
+ result = []
19
+ for arg in args:
20
+ if 'version' in arg.names:
21
+ result.append(Argument(
22
+ names=('version', 'v'),
23
+ kind=bool,
24
+ default=False,
25
+ help='Show version and exit.',
26
+ ))
27
+ else:
28
+ result.append(arg)
29
+ return result
30
+
31
+
32
+ def main():
33
+ namespace = Collection.from_module(tasks)
34
+ program = ItwProgram(namespace=namespace, name='itw', version=_get_version())
35
+ program.run()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itw_python_builder
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: Standardized Django deployment pipeline with Docker, testing, and SonarQube integration
5
5
  Author-email: IT-Works <contact@it-works.io>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "itw_python_builder"
7
- version = "0.2.6"
7
+ version = "0.2.7"
8
8
  description = "Standardized Django deployment pipeline with Docker, testing, and SonarQube integration"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,9 +0,0 @@
1
- from invoke import Program, Collection
2
-
3
- from itw_python_builder import tasks
4
-
5
-
6
- def main():
7
- namespace = Collection.from_module(tasks)
8
- program = Program(namespace=namespace, name='itw')
9
- program.run()