Skip to content

Commit

Permalink
Merge pull request pimutils#825 from pimutils/next
Browse files Browse the repository at this point in the history
Support Python 3.7 and 3.8
  • Loading branch information
Hugo Barrera authored Jun 9, 2020
2 parents 82375f2 + f6e6b0b commit d854bd6
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 14 deletions.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,12 @@ repos:
hooks:
- id: flake8
additional_dependencies: [flake8-import-order, flake8-bugbear]
- repo: local
hooks:
- id: update-travis
name: Update travis job definition
description: Ensures that travis job definition are up to date.
entry: scripts/make_travisconf.py
files: '.*travis.*'
stages: [commit]
language: script
54 changes: 53 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
]
},
"cache": "pip",
"dist": "trusty",
"dist": "bionic",
"git": {
"submodules": false
},
Expand All @@ -26,10 +26,12 @@
"python": "3.5"
},
{
"dist": "trusty",
"env": "BUILD=test-storage DAV_SERVER=radicale REQUIREMENTS=release ",
"python": "3.5"
},
{
"dist": "trusty",
"env": "BUILD=test-storage DAV_SERVER=xandikos REQUIREMENTS=release ",
"python": "3.5"
},
Expand All @@ -38,10 +40,12 @@
"python": "3.5"
},
{
"dist": "trusty",
"env": "BUILD=test-storage DAV_SERVER=radicale REQUIREMENTS=minimal ",
"python": "3.5"
},
{
"dist": "trusty",
"env": "BUILD=test-storage DAV_SERVER=xandikos REQUIREMENTS=minimal ",
"python": "3.5"
},
Expand Down Expand Up @@ -74,6 +78,54 @@
"env": "BUILD=test-storage DAV_SERVER=xandikos REQUIREMENTS=minimal ",
"python": "3.6"
},
{
"env": "BUILD=test REQUIREMENTS=release",
"python": "3.7"
},
{
"env": "BUILD=test-storage DAV_SERVER=radicale REQUIREMENTS=release ",
"python": "3.7"
},
{
"env": "BUILD=test-storage DAV_SERVER=xandikos REQUIREMENTS=release ",
"python": "3.7"
},
{
"env": "BUILD=test REQUIREMENTS=minimal",
"python": "3.7"
},
{
"env": "BUILD=test-storage DAV_SERVER=radicale REQUIREMENTS=minimal ",
"python": "3.7"
},
{
"env": "BUILD=test-storage DAV_SERVER=xandikos REQUIREMENTS=minimal ",
"python": "3.7"
},
{
"env": "BUILD=test REQUIREMENTS=release",
"python": "3.8"
},
{
"env": "BUILD=test-storage DAV_SERVER=radicale REQUIREMENTS=release ",
"python": "3.8"
},
{
"env": "BUILD=test-storage DAV_SERVER=xandikos REQUIREMENTS=release ",
"python": "3.8"
},
{
"env": "BUILD=test REQUIREMENTS=minimal",
"python": "3.8"
},
{
"env": "BUILD=test-storage DAV_SERVER=radicale REQUIREMENTS=minimal ",
"python": "3.8"
},
{
"env": "BUILD=test-storage DAV_SERVER=xandikos REQUIREMENTS=minimal ",
"python": "3.8"
},
{
"env": "BUILD=test ETESYNC_TESTS=true REQUIREMENTS=latest",
"python": "3.6"
Expand Down
13 changes: 12 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,21 @@ Package maintainers and users who have to manually update their installation
may want to subscribe to `GitHub's tag feed
<https://github.com/pimutils/vdirsyncer/tags.atom>`_.

Version 0.16.8
==============

*released 09 June 2020*

- Support Python 3.7 and 3.8.

This release is functionally identical to 0.16.7.
It's been tested with recent Python versions, and has been marked as supporting
them. It will also be the final release supporting Python 3.5 and 3.6.

Version 0.16.7
==============

*released on July 19*
*released on 19 July 2018*

- Fixes for Python 3.7

Expand Down
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ style:
! git grep -i syncroniz */*
! git grep -i 'text/icalendar' */*
sphinx-build -W -b html ./docs/ ./docs/_build/html/
python3 scripts/make_travisconf.py | diff -b .travis.yml -

travis-conf:
python3 scripts/make_travisconf.py > .travis.yml

install-docs:
pip install -Ur docs-requirements.txt
Expand Down
18 changes: 10 additions & 8 deletions scripts/make_travisconf.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/usr/bin/env python

import itertools
import json
import sys

python_versions = ("3.5", "3.6")
python_versions = ("3.5", "3.6", "3.7", "3.8")
latest_python = "3.6"

cfg = {}

cfg['sudo'] = True
cfg['dist'] = 'trusty'
cfg['dist'] = 'bionic'
cfg['language'] = 'python'
cfg['cache'] = 'pip'

Expand Down Expand Up @@ -57,11 +58,11 @@
job = {
'python': python,
'env': ("BUILD=test-storage "
"DAV_SERVER={dav_server} "
"REQUIREMENTS={requirements} "
.format(dav_server=dav_server,
requirements=requirements))
f"DAV_SERVER={dav_server} "
f"REQUIREMENTS={requirements} ")
}
if python == '3.5':
job['dist'] = 'trusty'

build_prs = dav_server not in ("fastmail", "davical", "icloud")
if not build_prs:
Expand All @@ -82,4 +83,5 @@
# 'env': 'BUILD=test'
# })

json.dump(cfg, sys.stdout, sort_keys=True, indent=2)
with open('.travis.yml', 'w') as output:
json.dump(cfg, output, sort_keys=True, indent=2)
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def run(self):
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Internet',
'Topic :: Utilities',
],
Expand Down

0 comments on commit d854bd6

Please sign in to comment.