mbox-extractor 0.1.6__tar.gz → 0.1.19__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.
@@ -5,51 +5,62 @@ on:
5
5
  branches: [main]
6
6
  paths: [pyproject.toml]
7
7
 
8
- concurrency:
9
- group: release
10
- cancel-in-progress: false
11
-
12
8
  permissions:
13
9
  contents: write
14
10
  id-token: write
15
11
 
12
+ concurrency:
13
+ group: release
14
+ cancel-in-progress: false
15
+
16
16
  jobs:
17
- release:
17
+ test:
18
+ uses: tsilva/.github/.github/workflows/test.yml@main
19
+
20
+ pii-scan:
21
+ uses: tsilva/.github/.github/workflows/pii-scan.yml@main
22
+
23
+ sync-description:
24
+ needs: [test, pii-scan]
25
+ uses: tsilva/.github/.github/workflows/sync-repo-description.yml@main
26
+ secrets: inherit
27
+
28
+ publish-pypi:
29
+ needs: [test, pii-scan]
18
30
  runs-on: ubuntu-latest
31
+ timeout-minutes: 15
19
32
  environment: pypi
20
33
  steps:
21
34
  - uses: actions/checkout@v4
35
+ with:
36
+ fetch-depth: 0
22
37
  - name: Get version
23
38
  id: version
24
39
  run: |
25
40
  VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
26
41
  echo "version=$VERSION" >> "$GITHUB_OUTPUT"
27
42
  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 }}
34
43
  - name: Check if tag exists
35
- id: check
44
+ id: check-tag
36
45
  run: |
37
- if git tag -l "${{ steps.version.outputs.tag }}" | grep -q .; then
46
+ if git rev-parse "refs/tags/${{ steps.version.outputs.tag }}" >/dev/null 2>&1; then
38
47
  echo "exists=true" >> "$GITHUB_OUTPUT"
39
48
  else
40
49
  echo "exists=false" >> "$GITHUB_OUTPUT"
41
50
  fi
42
51
  - name: Setup uv
43
- if: steps.check.outputs.exists == 'false'
52
+ if: steps.check-tag.outputs.exists == 'false'
44
53
  uses: astral-sh/setup-uv@v4
54
+ with:
55
+ cache: true
45
56
  - name: Build package
46
- if: steps.check.outputs.exists == 'false'
57
+ if: steps.check-tag.outputs.exists == 'false'
47
58
  run: uv build
48
59
  - name: Create release
49
- if: steps.check.outputs.exists == 'false'
60
+ if: steps.check-tag.outputs.exists == 'false'
50
61
  run: gh release create "${{ steps.version.outputs.tag }}" --title "${{ steps.version.outputs.tag }}" --generate-notes dist/*
51
62
  env:
52
63
  GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53
64
  - name: Publish to PyPI
54
- if: steps.check.outputs.exists == 'false'
65
+ if: steps.check-tag.outputs.exists == 'false'
55
66
  uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,5 @@
1
+ repos:
2
+ - repo: https://github.com/tsilva/.github
3
+ rev: 26209cdf5a8a702cdb800f8a55fc49fbf67088cc
4
+ hooks:
5
+ - id: gitleaks
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mbox-extractor
3
- Version: 0.1.6
4
- Summary: Recursively extract attachments from .mbox files
3
+ Version: 0.1.19
4
+ Summary: 📬 Recursively extract all attachments from .mbox email archives with a single command
5
5
  Project-URL: Homepage, https://github.com/tsilva/mbox-extractor
6
6
  Project-URL: Repository, https://github.com/tsilva/mbox-extractor
7
7
  Author-email: Tiago Silva <eng.tiago.silva@gmail.com>
@@ -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 test123**
26
+ **📬 Recursively extract all attachments from .mbox email archives with a single command**
27
27
 
28
28
  </div>
29
29
 
@@ -64,6 +64,7 @@ pip install mbox-extractor
64
64
  git clone https://github.com/tsilva/mbox-extractor.git
65
65
  cd mbox-extractor
66
66
  uv tool install .
67
+ pre-commit install
67
68
  ```
68
69
 
69
70
  ## Usage
@@ -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 test123**
9
+ **📬 Recursively extract all attachments from .mbox email archives with a single command**
10
10
 
11
11
  </div>
12
12
 
@@ -47,6 +47,7 @@ pip install mbox-extractor
47
47
  git clone https://github.com/tsilva/mbox-extractor.git
48
48
  cd mbox-extractor
49
49
  uv tool install .
50
+ pre-commit install
50
51
  ```
51
52
 
52
53
  ## Usage
@@ -4,8 +4,8 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "mbox-extractor"
7
- version = "0.1.6"
8
- description = "Recursively extract attachments from .mbox files"
7
+ version = "0.1.19"
8
+ description = "📬 Recursively extract all attachments from .mbox email archives with a single command"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
11
11
  authors = [
File without changes
File without changes
File without changes
File without changes