Skip to content

Commit d854bd6

Browse files
author
Hugo Barrera
authored
Merge pull request #825 from pimutils/next
Support Python 3.7 and 3.8
2 parents 82375f2 + f6e6b0b commit d854bd6

File tree

6 files changed

+86
-14
lines changed

6 files changed

+86
-14
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,12 @@ repos:
1414
hooks:
1515
- id: flake8
1616
additional_dependencies: [flake8-import-order, flake8-bugbear]
17+
- repo: local
18+
hooks:
19+
- id: update-travis
20+
name: Update travis job definition
21+
description: Ensures that travis job definition are up to date.
22+
entry: scripts/make_travisconf.py
23+
files: '.*travis.*'
24+
stages: [commit]
25+
language: script

.travis.yml

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
]
66
},
77
"cache": "pip",
8-
"dist": "trusty",
8+
"dist": "bionic",
99
"git": {
1010
"submodules": false
1111
},
@@ -26,10 +26,12 @@
2626
"python": "3.5"
2727
},
2828
{
29+
"dist": "trusty",
2930
"env": "BUILD=test-storage DAV_SERVER=radicale REQUIREMENTS=release ",
3031
"python": "3.5"
3132
},
3233
{
34+
"dist": "trusty",
3335
"env": "BUILD=test-storage DAV_SERVER=xandikos REQUIREMENTS=release ",
3436
"python": "3.5"
3537
},
@@ -38,10 +40,12 @@
3840
"python": "3.5"
3941
},
4042
{
43+
"dist": "trusty",
4144
"env": "BUILD=test-storage DAV_SERVER=radicale REQUIREMENTS=minimal ",
4245
"python": "3.5"
4346
},
4447
{
48+
"dist": "trusty",
4549
"env": "BUILD=test-storage DAV_SERVER=xandikos REQUIREMENTS=minimal ",
4650
"python": "3.5"
4751
},
@@ -74,6 +78,54 @@
7478
"env": "BUILD=test-storage DAV_SERVER=xandikos REQUIREMENTS=minimal ",
7579
"python": "3.6"
7680
},
81+
{
82+
"env": "BUILD=test REQUIREMENTS=release",
83+
"python": "3.7"
84+
},
85+
{
86+
"env": "BUILD=test-storage DAV_SERVER=radicale REQUIREMENTS=release ",
87+
"python": "3.7"
88+
},
89+
{
90+
"env": "BUILD=test-storage DAV_SERVER=xandikos REQUIREMENTS=release ",
91+
"python": "3.7"
92+
},
93+
{
94+
"env": "BUILD=test REQUIREMENTS=minimal",
95+
"python": "3.7"
96+
},
97+
{
98+
"env": "BUILD=test-storage DAV_SERVER=radicale REQUIREMENTS=minimal ",
99+
"python": "3.7"
100+
},
101+
{
102+
"env": "BUILD=test-storage DAV_SERVER=xandikos REQUIREMENTS=minimal ",
103+
"python": "3.7"
104+
},
105+
{
106+
"env": "BUILD=test REQUIREMENTS=release",
107+
"python": "3.8"
108+
},
109+
{
110+
"env": "BUILD=test-storage DAV_SERVER=radicale REQUIREMENTS=release ",
111+
"python": "3.8"
112+
},
113+
{
114+
"env": "BUILD=test-storage DAV_SERVER=xandikos REQUIREMENTS=release ",
115+
"python": "3.8"
116+
},
117+
{
118+
"env": "BUILD=test REQUIREMENTS=minimal",
119+
"python": "3.8"
120+
},
121+
{
122+
"env": "BUILD=test-storage DAV_SERVER=radicale REQUIREMENTS=minimal ",
123+
"python": "3.8"
124+
},
125+
{
126+
"env": "BUILD=test-storage DAV_SERVER=xandikos REQUIREMENTS=minimal ",
127+
"python": "3.8"
128+
},
77129
{
78130
"env": "BUILD=test ETESYNC_TESTS=true REQUIREMENTS=latest",
79131
"python": "3.6"

CHANGELOG.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,21 @@ Package maintainers and users who have to manually update their installation
99
may want to subscribe to `GitHub's tag feed
1010
<https://github.com/pimutils/vdirsyncer/tags.atom>`_.
1111

12+
Version 0.16.8
13+
==============
14+
15+
*released 09 June 2020*
16+
17+
- Support Python 3.7 and 3.8.
18+
19+
This release is functionally identical to 0.16.7.
20+
It's been tested with recent Python versions, and has been marked as supporting
21+
them. It will also be the final release supporting Python 3.5 and 3.6.
22+
1223
Version 0.16.7
1324
==============
1425

15-
*released on July 19*
26+
*released on 19 July 2018*
1627

1728
- Fixes for Python 3.7
1829

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ style:
9696
! git grep -i syncroniz */*
9797
! git grep -i 'text/icalendar' */*
9898
sphinx-build -W -b html ./docs/ ./docs/_build/html/
99-
python3 scripts/make_travisconf.py | diff -b .travis.yml -
100-
101-
travis-conf:
102-
python3 scripts/make_travisconf.py > .travis.yml
10399

104100
install-docs:
105101
pip install -Ur docs-requirements.txt

scripts/make_travisconf.py

100644100755
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1+
#!/usr/bin/env python
2+
13
import itertools
24
import json
3-
import sys
45

5-
python_versions = ("3.5", "3.6")
6+
python_versions = ("3.5", "3.6", "3.7", "3.8")
67
latest_python = "3.6"
78

89
cfg = {}
910

1011
cfg['sudo'] = True
11-
cfg['dist'] = 'trusty'
12+
cfg['dist'] = 'bionic'
1213
cfg['language'] = 'python'
1314
cfg['cache'] = 'pip'
1415

@@ -57,11 +58,11 @@
5758
job = {
5859
'python': python,
5960
'env': ("BUILD=test-storage "
60-
"DAV_SERVER={dav_server} "
61-
"REQUIREMENTS={requirements} "
62-
.format(dav_server=dav_server,
63-
requirements=requirements))
61+
f"DAV_SERVER={dav_server} "
62+
f"REQUIREMENTS={requirements} ")
6463
}
64+
if python == '3.5':
65+
job['dist'] = 'trusty'
6566

6667
build_prs = dav_server not in ("fastmail", "davical", "icloud")
6768
if not build_prs:
@@ -82,4 +83,5 @@
8283
# 'env': 'BUILD=test'
8384
# })
8485

85-
json.dump(cfg, sys.stdout, sort_keys=True, indent=2)
86+
with open('.travis.yml', 'w') as output:
87+
json.dump(cfg, output, sort_keys=True, indent=2)

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ def run(self):
8989
'Programming Language :: Python :: 3',
9090
'Programming Language :: Python :: 3.5',
9191
'Programming Language :: Python :: 3.6',
92+
'Programming Language :: Python :: 3.7',
93+
'Programming Language :: Python :: 3.8',
9294
'Topic :: Internet',
9395
'Topic :: Utilities',
9496
],

0 commit comments

Comments
 (0)