Skip to content

Commit 6453f12

Browse files
authored
Deploy on git tag pushing (#635)
* Deploy on git tag pushing * Fix CI * Fix
1 parent 2a4b852 commit 6453f12

File tree

4 files changed

+60
-61
lines changed

4 files changed

+60
-61
lines changed

.github/workflows/ci.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: CI
22

33
on: [pull_request, push]
44

@@ -33,3 +33,29 @@ jobs:
3333
with:
3434
file: ./coverage.xml
3535
flags: unit
36+
37+
deploy:
38+
name: Deploy
39+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
40+
needs: [test]
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Checkout
44+
uses: actions/[email protected]
45+
- name: Update pip, wheel, setuptools, build, twine
46+
run: |
47+
python -m pip install -U pip wheel setuptools build twine
48+
- name: Build dists
49+
run: |
50+
python -m build
51+
- name: Make Release
52+
uses: aio-libs/[email protected]
53+
with:
54+
changes_file: CHANGES.txt
55+
name: aiohttp-session
56+
version_file: aiohttp_session/__init__.py
57+
github_token: ${{ secrets.GITHUB_TOKEN }}
58+
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
59+
dist_dir: dist
60+
fix_issue_regex: "`#(\\d+) <https://github.com/aio-libs/aiohttp-session/issues/\\1>`"
61+
fix_issue_repl: "(#\\1)"

.github/workflows/pypi.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

CHANGES.txt

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,113 @@
1-
Changes
2-
=======
1+
.. towncrier release notes start
2+
3+
2.10.0a0 (2021-11-04)
4+
=====================
5+
6+
* test
37

48
2.9.0 (2019-11-04)
5-
------------------
9+
==================
610

711
* Fix memcached expiring time (#398)
812

913
2.8.0 (2019-09-17)
10-
------------------
14+
==================
1115

1216
* Make this compatible with Python 3.7+. Import from collections.abc, instead
1317
of from collections. (#373)
1418

1519

1620
2.7.0 (2018-10-13)
17-
------------------
21+
==================
1822

1923
* Reset a session if the session age > max_age (#331)
2024

2125
* Reset a session on TTL expiration for EncryptedCookieStorage (#326)
2226

2327
2.6.0 (2018-09-12)
24-
------------------
28+
==================
2529

2630
* Create a new session if `NaClCookieStorage` cannot decode a
2731
corrupted cookie (#317)
2832

2933
2.5.0 (2018-05-12)
30-
------------------
34+
==================
3135

3236
* Add an API for requesting new session explicitly (#281)
3337

3438
2.4.0 (2018-05-04)
35-
------------------
39+
==================
3640

3741
* Fix a bug for session fixation (#272)
3842

3943
2.3.0 (2018-02-13)
40-
------------------
44+
==================
4145

4246
- Support custom encoder and decoder by all storages (#252)
4347
- Bump to aiohttp 3.0
4448

4549
2.2.0 (2018-01-31)
46-
------------------
50+
==================
4751

4852
- Fixed the formatting of an error handling bad middleware return types. (#249)
4953

5054
2.1.0 (2017-11-24)
51-
------------------
55+
==================
5256

5357
- Add `session.set_new_identity()` method for changing identity for a
5458
new session (#236)
5559

5660
2.0.1 (2017-11-22)
57-
------------------
61+
==================
5862

5963
- Replace assertions in aioredis installation checks by `RuntimeError` (#235)
6064

6165
2.0.0 (2017-11-21)
62-
------------------
66+
==================
6367

6468
- Update to aioredis 1.0+. The aiohttp-session 2.0 is not compatible
6569
with aioredis 0.X (#234)
6670

6771
1.2.1 (2017-11-20)
68-
------------------
72+
==================
6973

7074
- Pin aioredis<1.0 (#231)
7175

7276
1.2.0 (2017-11-06)
73-
------------------
77+
==================
7478

7579
- Add MemcachedStorage (#224)
7680

7781
1.1.0 (2017-11-03)
78-
------------------
82+
==================
7983

8084
- Upgrade middleware to new style from aiohttp 2.3+
8185

8286

8387
1.0.1 (2017-09-13)
84-
------------------
88+
==================
8589

8690
- Add key_factory attribute for redis_storage (#205)
8791

8892
1.0.0 (2017-07-27)
89-
------------------
93+
==================
9094

9195
- Catch decoder exception in RedisStorage on data load (#175)
9296

9397
- Specify domain and path on cookie deletion (#171)
9498

9599
0.8.0 (2016-12-04)
96-
------------------
100+
==================
97101

98102
- Use `time.time()` instead of `time.monotonic()` for absolute times (#81)
99103

100104
0.7.0 (2016-09-24)
101-
------------------
105+
==================
102106

103107
- Fix tests to be compatible with aiohttp upstream API for client cookies
104108

105109
0.6.0 (2016-09-08)
106-
------------------
110+
==================
107111

108112
- Add expires field automatically to support older browsers (#43)
109113

@@ -112,13 +116,13 @@ Changes
112116
- Always pass default max_age from storage into session (#45)
113117

114118
0.5.0 (2016-02-21)
115-
------------------
119+
==================
116120

117121
- Handle cryptography.fernet.InvalidToken exception by providing an
118122
empty session (#29)
119123

120124
0.4.0 (2016-01-06)
121-
------------------
125+
==================
122126

123127
- Add optional NaCl encrypted storage (#20)
124128

@@ -130,31 +134,31 @@ Changes
130134
- Save the session even on exception in the middleware chain
131135

132136
0.3.0 (2015-11-20)
133-
------------------
137+
==================
134138

135139
- Reflect aiohttp changes: minimum required Python version is 3.4.1
136140

137141
- Use explicit 'aiohttp_session' package
138142

139143
0.2.0 (2015-09-07)
140-
------------------
144+
==================
141145

142146
- Add session.created property (#14)
143147

144148
- Replaced PyCrypto with crypthography library (#16)
145149

146150
0.1.2 (2015-08-07)
147-
------------------
151+
==================
148152

149153
- Add manifest file (#15)
150154

151155
0.1.1 (2015-04-20)
152-
------------------
156+
==================
153157

154158
- Fix #7: stop cookie name growing each time session is saved
155159

156160

157161
0.1.0 (2015-04-13)
158-
------------------
162+
==================
159163

160164
- First public release

aiohttp_session/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""User sessions for aiohttp.web."""
22

3-
__version__ = "2.9.0"
3+
__version__ = "2.10.0a1"
44

55
import abc
66
import json

0 commit comments

Comments
 (0)