mbox-extractor 0.1.4__tar.gz → 0.1.6__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.
@@ -3,6 +3,11 @@ name: Release
3
3
  on:
4
4
  push:
5
5
  branches: [main]
6
+ paths: [pyproject.toml]
7
+
8
+ concurrency:
9
+ group: release
10
+ cancel-in-progress: false
6
11
 
7
12
  permissions:
8
13
  contents: write
@@ -11,8 +16,7 @@ permissions:
11
16
  jobs:
12
17
  release:
13
18
  runs-on: ubuntu-latest
14
- outputs:
15
- created: ${{ steps.check.outputs.exists == 'false' }}
19
+ environment: pypi
16
20
  steps:
17
21
  - uses: actions/checkout@v4
18
22
  - name: Get version
@@ -21,29 +25,31 @@ jobs:
21
25
  VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
22
26
  echo "version=$VERSION" >> "$GITHUB_OUTPUT"
23
27
  echo "tag=v$VERSION" >> "$GITHUB_OUTPUT"
28
+ - name: Update repo description
29
+ run: |
30
+ DESC=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['description'])")
31
+ gh repo edit --description "$DESC"
32
+ env:
33
+ GH_TOKEN: ${{ secrets.PAT_TOKEN }}
24
34
  - name: Check if tag exists
25
35
  id: check
26
36
  run: |
27
- if gh release view "${{ steps.version.outputs.tag }}" &>/dev/null; then
37
+ if git tag -l "${{ steps.version.outputs.tag }}" | grep -q .; then
28
38
  echo "exists=true" >> "$GITHUB_OUTPUT"
29
39
  else
30
40
  echo "exists=false" >> "$GITHUB_OUTPUT"
31
41
  fi
32
- env:
33
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42
+ - name: Setup uv
43
+ if: steps.check.outputs.exists == 'false'
44
+ uses: astral-sh/setup-uv@v4
45
+ - name: Build package
46
+ if: steps.check.outputs.exists == 'false'
47
+ run: uv build
34
48
  - name: Create release
35
49
  if: steps.check.outputs.exists == 'false'
36
- run: gh release create "${{ steps.version.outputs.tag }}" --title "${{ steps.version.outputs.tag }}" --generate-notes
50
+ run: gh release create "${{ steps.version.outputs.tag }}" --title "${{ steps.version.outputs.tag }}" --generate-notes dist/*
37
51
  env:
38
52
  GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39
-
40
- publish:
41
- needs: release
42
- if: needs.release.outputs.created == 'true'
43
- runs-on: ubuntu-latest
44
- environment: pypi
45
- steps:
46
- - uses: actions/checkout@v4
47
- - uses: astral-sh/setup-uv@v4
48
- - run: uv build
49
- - uses: pypa/gh-action-pypi-publish@release/v1
53
+ - name: Publish to PyPI
54
+ if: steps.check.outputs.exists == 'false'
55
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mbox-extractor
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: Recursively extract attachments from .mbox files
5
5
  Project-URL: Homepage, https://github.com/tsilva/mbox-extractor
6
6
  Project-URL: Repository, https://github.com/tsilva/mbox-extractor
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
23
23
  [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
24
24
  [![Python](https://img.shields.io/badge/python-3.7+-blue.svg)](https://python.org)
25
25
 
26
- **📬 Recursively extract all attachments from .mbox email archives with a single command**
26
+ **📬 Recursively extract all attachments from .mbox email archives with a single command test123**
27
27
 
28
28
  </div>
29
29
 
@@ -6,7 +6,7 @@
6
6
  [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
7
7
  [![Python](https://img.shields.io/badge/python-3.7+-blue.svg)](https://python.org)
8
8
 
9
- **📬 Recursively extract all attachments from .mbox email archives with a single command**
9
+ **📬 Recursively extract all attachments from .mbox email archives with a single command test123**
10
10
 
11
11
  </div>
12
12
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "mbox-extractor"
7
- version = "0.1.4"
7
+ version = "0.1.6"
8
8
  description = "Recursively extract attachments from .mbox files"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
File without changes
File without changes
File without changes
File without changes
File without changes