pytest-neon 0.2.0__tar.gz → 0.2.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.
@@ -0,0 +1,88 @@
1
+ name: Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ bump:
7
+ description: 'Version bump type'
8
+ required: true
9
+ type: choice
10
+ options:
11
+ - patch
12
+ - minor
13
+ - major
14
+
15
+ jobs:
16
+ release:
17
+ runs-on: ubuntu-latest
18
+ permissions:
19
+ contents: write
20
+
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ with:
24
+ token: ${{ secrets.GITHUB_TOKEN }}
25
+
26
+ - name: Set up Python
27
+ uses: actions/setup-python@v5
28
+ with:
29
+ python-version: '3.12'
30
+
31
+ - name: Install uv
32
+ uses: astral-sh/setup-uv@v4
33
+
34
+ - name: Bump version
35
+ id: bump
36
+ env:
37
+ BUMP_TYPE: ${{ github.event.inputs.bump }}
38
+ run: |
39
+ # Read current version from pyproject.toml
40
+ current=$(grep '^version = ' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
41
+ echo "Current version: $current"
42
+
43
+ # Parse version components
44
+ IFS='.' read -r major minor patch <<< "$current"
45
+
46
+ # Bump based on input
47
+ case "$BUMP_TYPE" in
48
+ major)
49
+ major=$((major + 1))
50
+ minor=0
51
+ patch=0
52
+ ;;
53
+ minor)
54
+ minor=$((minor + 1))
55
+ patch=0
56
+ ;;
57
+ patch)
58
+ patch=$((patch + 1))
59
+ ;;
60
+ esac
61
+
62
+ new_version="${major}.${minor}.${patch}"
63
+ echo "New version: $new_version"
64
+ echo "version=$new_version" >> $GITHUB_OUTPUT
65
+
66
+ # Update pyproject.toml
67
+ sed -i "s/^version = \".*\"/version = \"$new_version\"/" pyproject.toml
68
+
69
+ # Update __init__.py
70
+ sed -i "s/__version__ = \".*\"/__version__ = \"$new_version\"/" src/pytest_neon/__init__.py
71
+
72
+ - name: Commit version bump
73
+ env:
74
+ VERSION: ${{ steps.bump.outputs.version }}
75
+ run: |
76
+ git config user.name "github-actions[bot]"
77
+ git config user.email "github-actions[bot]@users.noreply.github.com"
78
+ git add pyproject.toml src/pytest_neon/__init__.py
79
+ git commit -m "Release v$VERSION"
80
+ git tag "v$VERSION"
81
+ git push origin main --tags
82
+
83
+ - name: Build and publish
84
+ env:
85
+ UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
86
+ run: |
87
+ uv build
88
+ uv publish
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-neon
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Pytest plugin for Neon database branch isolation in tests
5
5
  Project-URL: Homepage, https://github.com/zain/pytest-neon
6
6
  Project-URL: Repository, https://github.com/zain/pytest-neon
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pytest-neon"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "Pytest plugin for Neon database branch isolation in tests"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -9,7 +9,7 @@ from pytest_neon.plugin import (
9
9
  neon_engine,
10
10
  )
11
11
 
12
- __version__ = "0.2.0"
12
+ __version__ = "0.2.1"
13
13
  __all__ = [
14
14
  "NeonBranch",
15
15
  "neon_branch",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes