itw-python-builder 0.1.20__tar.gz → 0.1.22__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 (16) hide show
  1. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/PKG-INFO +1 -1
  2. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/itw_python_builder/tasks.py +6 -5
  3. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/itw_python_builder.egg-info/PKG-INFO +1 -1
  4. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/pyproject.toml +1 -1
  5. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/LICENSE +0 -0
  6. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/README.md +0 -0
  7. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/itw_python_builder/.pylintrc +0 -0
  8. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/itw_python_builder/__init__.py +0 -0
  9. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/itw_python_builder/cli.py +0 -0
  10. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/itw_python_builder/version.py +0 -0
  11. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/itw_python_builder.egg-info/SOURCES.txt +0 -0
  12. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/itw_python_builder.egg-info/dependency_links.txt +0 -0
  13. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/itw_python_builder.egg-info/entry_points.txt +0 -0
  14. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/itw_python_builder.egg-info/requires.txt +0 -0
  15. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/itw_python_builder.egg-info/top_level.txt +0 -0
  16. {itw_python_builder-0.1.20 → itw_python_builder-0.1.22}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itw_python_builder
3
- Version: 0.1.20
3
+ Version: 0.1.22
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
@@ -207,7 +207,7 @@ def release(ctx: Context, skip_pipeline=False) -> None:
207
207
  def test(ctx: Context, settings='backend.test_settings'):
208
208
  """Run Django tests with coverage"""
209
209
  detect_and_activate_venv()
210
- ctx.run(f'python -m coverage run manage.py test --settings={settings} --noinput -v 2', pty=True)
210
+ ctx.run(f'python -m coverage run manage.py test --settings={settings} --noinput -v 2')
211
211
  ctx.run('python -m coverage report -m')
212
212
  ctx.run('python -m coverage xml -o coverage.xml')
213
213
 
@@ -276,7 +276,7 @@ def buildlocal(ctx: Context):
276
276
  def testlocal(ctx: Context, settings='backend.test_settings'):
277
277
  """Run tests locally (not in Docker)"""
278
278
  detect_and_activate_venv()
279
- ctx.run(f'python -m coverage run manage.py test --settings={settings} --noinput -v 2', pty=True)
279
+ ctx.run(f'python -m coverage run manage.py test --settings={settings} --noinput -v 2')
280
280
  ctx.run('python -m coverage report -m')
281
281
  ctx.run('python -m coverage xml -o coverage.xml')
282
282
  print("✓ Tests completed")
@@ -334,11 +334,12 @@ def pipelinelocal(ctx: Context, settings='backend.test_settings', pylintrc=None)
334
334
  def changelog(ctx: Context, version: Version = None):
335
335
  """Generate changelog from commits with Changelog trailer"""
336
336
 
337
- try:
338
- last_tag_result = ctx.run('git describe --tags --abbrev=0', hide=True)
337
+ exclude = f'--exclude={version}' if version else ''
338
+ last_tag_result = ctx.run(f'git describe --tags --abbrev=0 {exclude}', hide=True, warn=True)
339
+ if last_tag_result.ok and last_tag_result.stdout.strip():
339
340
  last_tag = last_tag_result.stdout.strip()
340
341
  cmd = f'git log {last_tag}..HEAD --pretty=format:"%s|||%h|||%b|||END"'
341
- except:
342
+ else:
342
343
  cmd = 'git log --pretty=format:"%s|||%h|||%b|||END"'
343
344
 
344
345
  result = ctx.run(cmd, hide=True, warn=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itw_python_builder
3
- Version: 0.1.20
3
+ Version: 0.1.22
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.1.20"
7
+ version = "0.1.22"
8
8
  description = "Standardized Django deployment pipeline with Docker, testing, and SonarQube integration"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"