itw-python-builder 0.1.49__tar.gz → 0.1.51__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.
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/PKG-INFO +1 -1
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder/tasks.py +12 -1
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder.egg-info/PKG-INFO +1 -1
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/pyproject.toml +1 -1
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/LICENSE +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/README.md +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder/.pylintrc +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder/__init__.py +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder/cli.py +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder/notify.py +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder/ssr_tasks.py +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder/templates/new_version_email.html +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder/templates/server.sitemap.snippet.ts +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder/templates/sitemap.routes.ts +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder/utils.py +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder/version.py +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder.egg-info/SOURCES.txt +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder.egg-info/dependency_links.txt +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder.egg-info/entry_points.txt +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder.egg-info/requires.txt +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder.egg-info/top_level.txt +0 -0
- {itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/setup.cfg +0 -0
|
@@ -17,6 +17,7 @@ from itw_python_builder.utils import (
|
|
|
17
17
|
_parse_gitlab_remote,
|
|
18
18
|
install_sigint_guard,
|
|
19
19
|
step,
|
|
20
|
+
abort_if_interrupted,
|
|
20
21
|
safe_remove,
|
|
21
22
|
ensure_gitignored,
|
|
22
23
|
gitignore_touched_this_run,
|
|
@@ -253,7 +254,17 @@ def tag_build_push(ctx: Context, version: Version, skip_pipeline: bool = False,
|
|
|
253
254
|
branch = get_current_branch(ctx)
|
|
254
255
|
if ensure_gitignored('dist.tar.gz'):
|
|
255
256
|
print('[itw] Added "dist.tar.gz" to .gitignore.')
|
|
256
|
-
|
|
257
|
+
pkg_path = Path(os.getcwd()) / 'package.json'
|
|
258
|
+
original_pkg = pkg_path.read_text(encoding='utf-8')
|
|
259
|
+
save_version(version)
|
|
260
|
+
print(f'[itw] Bumped package.json to {version.bare_semver()} before build.')
|
|
261
|
+
try:
|
|
262
|
+
build_frontend(ctx, branch, ssr=ssr)
|
|
263
|
+
except BaseException:
|
|
264
|
+
pkg_path.write_text(original_pkg, encoding='utf-8')
|
|
265
|
+
print('[itw] Build failed — reverted package.json to previous version.')
|
|
266
|
+
raise
|
|
267
|
+
abort_if_interrupted('build')
|
|
257
268
|
step('package', package_dist, ctx)
|
|
258
269
|
step('upload', upload_dist, ctx, version)
|
|
259
270
|
if safe_remove('dist.tar.gz'):
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "itw_python_builder"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.51"
|
|
8
8
|
description = "Standardized Django deployment pipeline with Docker, testing, and SonarQube integration"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
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
|
{itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder.egg-info/requires.txt
RENAMED
|
File without changes
|
{itw_python_builder-0.1.49 → itw_python_builder-0.1.51}/itw_python_builder.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|