Commit 7087055 1 parent 87a5711 commit 7087055 Copy full SHA for 7087055
File tree 6 files changed +51
-27
lines changed
6 files changed +51
-27
lines changed Original file line number Diff line number Diff line change 1
- # This workflows will upload a Python Package using Twine when a release is created
2
- # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3
-
4
1
name : Upload Python Package
5
-
6
2
on :
7
3
push :
8
4
tags :
9
- - ' [0-9].[0-9].[0-9]'
10
- - ' [0-9].[0-9].[0-9]-rc. [0-9]'
5
+ - ' [0-9]+\ .[0-9]+\ .[0-9]+ '
6
+ - ' [0-9]+\ .[0-9]+\ .[0-9]+-?rc\.? [0-9]+ '
11
7
12
8
jobs :
13
- deploy :
9
+ pypi :
14
10
runs-on : ubuntu-latest
15
11
steps :
16
- - uses : actions/checkout@v2
17
- - name : Set up Python
18
- uses : actions/setup-python@v2
19
- with :
20
- python-version : ' 3.x'
21
- - name : Install dependencies
22
- run : |
23
- pip install setuptools wheel twine
24
- - name : Build and publish
25
- env :
26
- TWINE_USERNAME : __token__
27
- TWINE_PASSWORD : ${{ secrets.PYPI_GITHUB_ENVELOPE }}
28
- run : |
29
- python setup.py sdist bdist_wheel
30
- twine upload dist/*
12
+ - name : Checkout
13
+ uses : actions/checkout@v3
14
+ with :
15
+ fetch-depth : 0
16
+ - name : Replace media paths in README.md
17
+ run : sed -E 's#(\]\((asset/[a-zA-Z0-9._-]+))#](https://github.com/CZ-NIC/envelope/blob/main/\2?raw=True#g' README.md | less > README.md.tmp && mv README.md.tmp README.md
18
+ - name : Build the package
19
+ run : python3 -m pip install --upgrade build && python3 -m build
20
+ - name : Publish package
21
+ uses : pypa/gh-action-pypi-publish@release/v1
22
+ with :
23
+ password : ${{ secrets.PYPI_GITHUB_ENVELOPE }}
Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
3
+ ## 2.1.0 (2025-01-17)
4
+ - reworked s/mime cryptography
5
+
3
6
## 2.0.4 (2024-07-18)
4
7
- resilience against missing libmagic (useful on a contained environment)
5
8
- better SMTP retries #35
Original file line number Diff line number Diff line change
1
+ export TAG := ` grep version pyproject.toml | pz --search ' "(\d+\.\d+\.\d+(?:rc\d+)?)?"' `
2
+
3
+ release :
4
+ git tag $(TAG )
5
+ git push origin $(TAG )
6
+ # mkdocs gh-deploy
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [" poetry-core>=1.0.0" ]
3
+ build-backend = " poetry.core.masonry.api"
4
+
5
+ [tool .poetry ]
6
+ name = " envelope"
7
+ version = " 2.1.0-pre1"
8
+ description = " Insert a message and attachments and send e-mail / sign / encrypt contents by a single line."
9
+ authors = [
" Edvard Rejthar <[email protected] >" ]
10
+ license = " GNU GPLv3"
11
+ homepage = " https://github.com/CZ-NIC/envelope"
12
+ readme = " README.md"
13
+ classifiers = [" Programming Language :: Python :: 3" ]
14
+
15
+ [tool .poetry .dependencies ]
16
+ python = " >=3.10"
17
+ jsonpickle = " *"
18
+ python-magic = " *"
19
+ python-gnupg = " >=0.5"
20
+ py3-validate-email = " *"
21
+
22
+ [tool .poetry .extras ]
23
+ smime = [" cryptography>=43" ]
24
+
25
+ [tool .poetry .scripts ]
26
+ envelope = " envelope.__main__:main"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 21
21
22
22
setup (
23
23
name = 'envelope' ,
24
- version = '2.0.6 ' ,
24
+ version = '2.1.0-rc1 ' ,
25
25
packages = ['envelope' ],
26
26
author = 'Edvard Rejthar' ,
27
27
You can’t perform that action at this time.
0 commit comments