pdfly 0.3.1__tar.gz → 0.3.3__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 (60) hide show
  1. pdfly-0.3.3/.github/workflows/create-github-release.yaml +41 -0
  2. pdfly-0.3.3/.github/workflows/publish-to-pypi.yaml +39 -0
  3. {pdfly-0.3.1 → pdfly-0.3.3}/.github/workflows/release.yaml +1 -40
  4. {pdfly-0.3.1 → pdfly-0.3.3}/CHANGELOG.md +15 -0
  5. {pdfly-0.3.1 → pdfly-0.3.3}/PKG-INFO +1 -1
  6. pdfly-0.3.3/pdfly/_version.py +1 -0
  7. pdfly-0.3.1/pdfly/_version.py +0 -1
  8. {pdfly-0.3.1 → pdfly-0.3.3}/.github/dependabot.yml +0 -0
  9. {pdfly-0.3.1 → pdfly-0.3.3}/.github/workflows/github-ci.yaml +0 -0
  10. {pdfly-0.3.1 → pdfly-0.3.3}/.gitignore +0 -0
  11. {pdfly-0.3.1 → pdfly-0.3.3}/.gitmodules +0 -0
  12. {pdfly-0.3.1 → pdfly-0.3.3}/.isort.cfg +0 -0
  13. {pdfly-0.3.1 → pdfly-0.3.3}/.pre-commit-config.yaml +0 -0
  14. {pdfly-0.3.1 → pdfly-0.3.3}/.readthedocs.yaml +0 -0
  15. {pdfly-0.3.1 → pdfly-0.3.3}/CONTRIBUTORS.md +0 -0
  16. {pdfly-0.3.1 → pdfly-0.3.3}/LICENSE +0 -0
  17. {pdfly-0.3.1 → pdfly-0.3.3}/Makefile +0 -0
  18. {pdfly-0.3.1 → pdfly-0.3.3}/README.md +0 -0
  19. {pdfly-0.3.1 → pdfly-0.3.3}/docs/Makefile +0 -0
  20. {pdfly-0.3.1 → pdfly-0.3.3}/docs/conf.py +0 -0
  21. {pdfly-0.3.1 → pdfly-0.3.3}/docs/index.rst +0 -0
  22. {pdfly-0.3.1 → pdfly-0.3.3}/docs/make.bat +0 -0
  23. {pdfly-0.3.1 → pdfly-0.3.3}/docs/meta/project-governance.md +0 -0
  24. {pdfly-0.3.1 → pdfly-0.3.3}/docs/user/installation.md +0 -0
  25. {pdfly-0.3.1 → pdfly-0.3.3}/docs/user/subcommand-cat.md +0 -0
  26. {pdfly-0.3.1 → pdfly-0.3.3}/docs/user/subcommand-meta.md +0 -0
  27. {pdfly-0.3.1 → pdfly-0.3.3}/docs/user/subcommand-x2pdf.md +0 -0
  28. {pdfly-0.3.1 → pdfly-0.3.3}/make_release.py +0 -0
  29. {pdfly-0.3.1 → pdfly-0.3.3}/mypy.ini +0 -0
  30. {pdfly-0.3.1 → pdfly-0.3.3}/pdfly/__init__.py +0 -0
  31. {pdfly-0.3.1 → pdfly-0.3.3}/pdfly/__main__.py +0 -0
  32. {pdfly-0.3.1 → pdfly-0.3.3}/pdfly/_utils.py +0 -0
  33. {pdfly-0.3.1 → pdfly-0.3.3}/pdfly/cat.py +0 -0
  34. {pdfly-0.3.1 → pdfly-0.3.3}/pdfly/cli.py +0 -0
  35. {pdfly-0.3.1 → pdfly-0.3.3}/pdfly/compress.py +0 -0
  36. {pdfly-0.3.1 → pdfly-0.3.3}/pdfly/extract_images.py +0 -0
  37. {pdfly-0.3.1 → pdfly-0.3.3}/pdfly/metadata.py +0 -0
  38. {pdfly-0.3.1 → pdfly-0.3.3}/pdfly/pagemeta.py +0 -0
  39. {pdfly-0.3.1 → pdfly-0.3.3}/pdfly/up2.py +0 -0
  40. {pdfly-0.3.1 → pdfly-0.3.3}/pdfly/x2pdf.py +0 -0
  41. {pdfly-0.3.1 → pdfly-0.3.3}/pyproject.toml +0 -0
  42. {pdfly-0.3.1 → pdfly-0.3.3}/requirements/ci.in +0 -0
  43. {pdfly-0.3.1 → pdfly-0.3.3}/requirements/ci.txt +0 -0
  44. {pdfly-0.3.1 → pdfly-0.3.3}/requirements/dev.in +0 -0
  45. {pdfly-0.3.1 → pdfly-0.3.3}/requirements/dev.txt +0 -0
  46. {pdfly-0.3.1 → pdfly-0.3.3}/requirements/docs.in +0 -0
  47. {pdfly-0.3.1 → pdfly-0.3.3}/requirements/docs.txt +0 -0
  48. {pdfly-0.3.1 → pdfly-0.3.3}/resources/GeoBase_NHNC1_Data_Model_UML_EN.pdf +0 -0
  49. {pdfly-0.3.1 → pdfly-0.3.3}/resources/baleines.jpg +0 -0
  50. {pdfly-0.3.1 → pdfly-0.3.3}/resources/box.pdf +0 -0
  51. {pdfly-0.3.1 → pdfly-0.3.3}/resources/jpeg.pdf +0 -0
  52. {pdfly-0.3.1 → pdfly-0.3.3}/resources/pythonknight.png +0 -0
  53. {pdfly-0.3.1 → pdfly-0.3.3}/setup.cfg +0 -0
  54. {pdfly-0.3.1 → pdfly-0.3.3}/setup.py +0 -0
  55. {pdfly-0.3.1 → pdfly-0.3.3}/tests/__init__.py +0 -0
  56. {pdfly-0.3.1 → pdfly-0.3.3}/tests/conftest.py +0 -0
  57. {pdfly-0.3.1 → pdfly-0.3.3}/tests/test_cat.py +0 -0
  58. {pdfly-0.3.1 → pdfly-0.3.3}/tests/test_cli.py +0 -0
  59. {pdfly-0.3.1 → pdfly-0.3.3}/tests/test_extract_images.py +0 -0
  60. {pdfly-0.3.1 → pdfly-0.3.3}/tests/test_x2pdf.py +0 -0
@@ -0,0 +1,41 @@
1
+ name: Create a GitHub release page
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - '*.*.*'
7
+ workflow_dispatch:
8
+ workflow_run:
9
+ workflows: ["Create git tag"]
10
+ types:
11
+ - completed
12
+
13
+ permissions:
14
+ contents: write
15
+
16
+ jobs:
17
+ build_and_publish:
18
+ name: Create a GitHub release page
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - name: Checkout Repository
22
+ uses: actions/checkout@v4
23
+ - name: Prepare variables
24
+ id: prepare_variables
25
+ run: |
26
+ git fetch --tags --force
27
+ latest_tag=$(git describe --tags --abbrev=0)
28
+ echo "latest_tag=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV"
29
+ echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_ENV"
30
+ EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
31
+ echo "tag_body<<$EOF" >> "$GITHUB_ENV"
32
+ git --no-pager tag -l "${latest_tag}" --format='%(contents:body)' >> "$GITHUB_ENV"
33
+ echo "$EOF" >> "$GITHUB_ENV"
34
+ - name: Create GitHub Release 🚀
35
+ uses: softprops/action-gh-release@v1
36
+ with:
37
+ tag_name: ${{ env.latest_tag }}
38
+ name: Version ${{ env.latest_tag }}, ${{ env.date }}
39
+ draft: false
40
+ prerelease: false
41
+ body: ${{ env.tag_body }}
@@ -0,0 +1,39 @@
1
+ name: Publish Python Package to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - '*.*.*'
7
+ workflow_dispatch:
8
+ workflow_run:
9
+ workflows: ["Create git tag"]
10
+ types:
11
+ - completed
12
+
13
+ permissions:
14
+ contents: write
15
+
16
+ jobs:
17
+ build_and_publish:
18
+ name: Publish a new version
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - name: Set up Python
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: 3.x
25
+
26
+ - name: Install Flit
27
+ run: |
28
+ python -m pip install --upgrade pip
29
+ pip install flit
30
+
31
+ - name: Checkout Repository
32
+ uses: actions/checkout@v4
33
+
34
+ - name: Publish Package to PyPI🚀
35
+ env:
36
+ FLIT_USERNAME: '__token__'
37
+ FLIT_PASSWORD: ${{ secrets.FLIT_PASSWORD }}
38
+ run: |
39
+ flit publish
@@ -3,7 +3,7 @@
3
3
  # and it's decided what should be in the release.
4
4
  # This action only ensures the release is done with the proper contents
5
5
  # and that it's announced with a Github release.
6
- name: Publish Python Package to PyPI
6
+ name: Create git tag
7
7
  on:
8
8
  push:
9
9
  branches:
@@ -18,7 +18,6 @@ jobs:
18
18
  runs-on: ubuntu-latest
19
19
  if: "${{ startsWith(github.event.head_commit.message, 'REL: ') }}"
20
20
  steps:
21
- # Ensure it's on PyPI
22
21
  - name: Checkout Repository
23
22
  uses: actions/checkout@v4
24
23
 
@@ -46,41 +45,3 @@ jobs:
46
45
  git config user.email github-actions@github.com
47
46
  git tag "$VERSION" -m "$MESSAGE"
48
47
  git push origin $VERSION
49
-
50
- - name: Set up Python
51
- uses: actions/setup-python@v5
52
- with:
53
- python-version: 3.x
54
-
55
- - name: Install Flit
56
- run: |
57
- python -m pip install --upgrade pip
58
- pip install flit
59
-
60
- - name: Publish Package to PyPI🚀
61
- env:
62
- FLIT_USERNAME: '__token__'
63
- FLIT_PASSWORD: ${{ secrets.FLIT_PASSWORD }}
64
- run: |
65
- flit publish
66
-
67
- # Create the Github Page
68
- - name: Prepare variables
69
- id: prepare_variables
70
- run: |
71
- git fetch --tags --force
72
- latest_tag=$(git describe --tags --abbrev=0)
73
- echo "latest_tag=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV"
74
- echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_ENV"
75
- EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
76
- echo "tag_body<<$EOF" >> "$GITHUB_ENV"
77
- git --no-pager tag -l "${latest_tag}" --format='%(contents:body)' >> "$GITHUB_ENV"
78
- echo "$EOF" >> "$GITHUB_ENV"
79
- - name: Create GitHub Release 🚀
80
- uses: softprops/action-gh-release@v1
81
- with:
82
- tag_name: ${{ env.latest_tag }}
83
- name: Version ${{ env.latest_tag }}, ${{ env.date }}
84
- draft: false
85
- prerelease: false
86
- body: ${{ env.tag_body }}
@@ -1,5 +1,20 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## Version 0.3.3, 2024-04-14
4
+
5
+ ### Developer Experience (DEV)
6
+ - Chain workflows
7
+
8
+ [Full Changelog](https://github.com/py-pdf/pdfly/compare/0.3.1...0.3.2)
9
+
10
+ ## Version 0.3.2, 2024-04-14
11
+
12
+ ### Developer Experience (DEV)
13
+ - Decouple git tag / PyPI release / Github release page (#49, #50)
14
+
15
+
16
+ [Full Changelog](https://github.com/py-pdf/pdfly/compare/0.3.1...0.3.2)
17
+
3
18
  ## Version 0.3.1, 2024-03-29
4
19
 
5
20
  ### Maintenance (MAINT)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pdfly
3
- Version: 0.3.1
3
+ Version: 0.3.3
4
4
  Summary: A pure-python CLI application to manipulate PDF files
5
5
  Author-email: Martin Thoma <info@martin-thoma.de>
6
6
  Maintainer-email: Martin Thoma <info@martin-thoma.de>
@@ -0,0 +1 @@
1
+ __version__ = "0.3.3"
@@ -1 +0,0 @@
1
- __version__ = "0.3.1"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes