mbox-extractor 0.1.7__tar.gz → 0.1.20__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.
- mbox_extractor-0.1.20/.github/workflows/release.yml +55 -0
- mbox_extractor-0.1.20/.pre-commit-config.yaml +5 -0
- {mbox_extractor-0.1.7 → mbox_extractor-0.1.20}/PKG-INFO +2 -1
- {mbox_extractor-0.1.7 → mbox_extractor-0.1.20}/README.md +1 -0
- {mbox_extractor-0.1.7 → mbox_extractor-0.1.20}/pyproject.toml +1 -1
- mbox_extractor-0.1.7/.github/workflows/release.yml +0 -55
- {mbox_extractor-0.1.7 → mbox_extractor-0.1.20}/.github/dependabot.yml +0 -0
- {mbox_extractor-0.1.7 → mbox_extractor-0.1.20}/.gitignore +0 -0
- {mbox_extractor-0.1.7 → mbox_extractor-0.1.20}/CLAUDE.md +0 -0
- {mbox_extractor-0.1.7 → mbox_extractor-0.1.20}/LICENSE +0 -0
- {mbox_extractor-0.1.7 → mbox_extractor-0.1.20}/logo.png +0 -0
- {mbox_extractor-0.1.7 → mbox_extractor-0.1.20}/main.py +0 -0
- {mbox_extractor-0.1.7 → mbox_extractor-0.1.20}/uv.lock +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
paths: [pyproject.toml]
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
id-token: write
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: release
|
|
14
|
+
cancel-in-progress: false
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
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]
|
|
30
|
+
runs-on: ubuntu-latest
|
|
31
|
+
timeout-minutes: 15
|
|
32
|
+
environment: pypi
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@v4
|
|
35
|
+
with:
|
|
36
|
+
fetch-depth: 0
|
|
37
|
+
- name: Check version
|
|
38
|
+
id: check-version
|
|
39
|
+
uses: tsilva/.github/.github/actions/check-version@main
|
|
40
|
+
- name: Setup uv
|
|
41
|
+
if: steps.check-version.outputs.tag_exists == 'false'
|
|
42
|
+
uses: astral-sh/setup-uv@v4
|
|
43
|
+
with:
|
|
44
|
+
cache: true
|
|
45
|
+
- name: Build package
|
|
46
|
+
if: steps.check-version.outputs.tag_exists == 'false'
|
|
47
|
+
run: uv build
|
|
48
|
+
- name: Create release
|
|
49
|
+
if: steps.check-version.outputs.tag_exists == 'false'
|
|
50
|
+
run: gh release create "${{ steps.check-version.outputs.tag }}" --title "${{ steps.check-version.outputs.tag }}" --generate-notes dist/*
|
|
51
|
+
env:
|
|
52
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
53
|
+
- name: Publish to PyPI
|
|
54
|
+
if: steps.check-version.outputs.tag_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.
|
|
3
|
+
Version: 0.1.20
|
|
4
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
|
|
@@ -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
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "mbox-extractor"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.20"
|
|
8
8
|
description = "📬 Recursively extract all attachments from .mbox email archives with a single command"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
name: Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [main]
|
|
6
|
-
paths: [pyproject.toml]
|
|
7
|
-
|
|
8
|
-
concurrency:
|
|
9
|
-
group: release
|
|
10
|
-
cancel-in-progress: false
|
|
11
|
-
|
|
12
|
-
permissions:
|
|
13
|
-
contents: write
|
|
14
|
-
id-token: write
|
|
15
|
-
|
|
16
|
-
jobs:
|
|
17
|
-
release:
|
|
18
|
-
runs-on: ubuntu-latest
|
|
19
|
-
environment: pypi
|
|
20
|
-
steps:
|
|
21
|
-
- uses: actions/checkout@v4
|
|
22
|
-
- name: Get version
|
|
23
|
-
id: version
|
|
24
|
-
run: |
|
|
25
|
-
VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
|
|
26
|
-
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
|
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 }}
|
|
34
|
-
- name: Check if tag exists
|
|
35
|
-
id: check
|
|
36
|
-
run: |
|
|
37
|
-
if git tag -l "${{ steps.version.outputs.tag }}" | grep -q .; then
|
|
38
|
-
echo "exists=true" >> "$GITHUB_OUTPUT"
|
|
39
|
-
else
|
|
40
|
-
echo "exists=false" >> "$GITHUB_OUTPUT"
|
|
41
|
-
fi
|
|
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
|
|
48
|
-
- name: Create release
|
|
49
|
-
if: steps.check.outputs.exists == 'false'
|
|
50
|
-
run: gh release create "${{ steps.version.outputs.tag }}" --title "${{ steps.version.outputs.tag }}" --generate-notes dist/*
|
|
51
|
-
env:
|
|
52
|
-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
53
|
-
- name: Publish to PyPI
|
|
54
|
-
if: steps.check.outputs.exists == 'false'
|
|
55
|
-
uses: pypa/gh-action-pypi-publish@release/v1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|