Skip to content

Commit 60e2e96

Browse files
author
Hugo Osvaldo Barrera
committed
Merge branch 'next'
2 parents aafafaa + b1214cd commit 60e2e96

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+354
-425
lines changed

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.4.0
4+
hooks:
5+
- id: trailing-whitespace
6+
args: [--markdown-linebreak-ext=md]
7+
- id: end-of-file-fixer
8+
- id: check-toml
9+
- id: check-added-large-files
10+
- id: debug-statements
11+
- repo: https://gitlab.com/pycqa/flake8
12+
rev: "master" # pick a git hash / tag to point to
13+
hooks:
14+
- id: flake8
15+
additional_dependencies: [flake8-import-order, flake8-bugbear]

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"branches": {
33
"only": [
44
"auto",
5+
"next",
56
"master",
67
"/^.*-maintenance$/"
78
]
@@ -13,9 +14,6 @@
1314
},
1415
"install": [
1516
". scripts/travis-install.sh",
16-
"pip install -U pip setuptools",
17-
"pip install wheel",
18-
"make -e install-dev",
1917
"make -e install-$BUILD"
2018
],
2119
"language": "python",

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ install-servers:
7171
(cd $(TESTSERVER_BASE)$$server && sh install.sh); \
7272
done
7373

74-
install-test: install-servers
74+
install-test: install-servers install-dev
7575
pip install -Ur test-requirements.txt
7676
set -xe && if [ "$$REQUIREMENTS" = "devel" ]; then \
7777
pip install -U --force-reinstall \
@@ -81,9 +81,9 @@ install-test: install-servers
8181
fi
8282
[ -z "$(TEST_EXTRA_PACKAGES)" ] || pip install $(TEST_EXTRA_PACKAGES)
8383

84-
install-style: install-docs
85-
pip install -U flake8==3.5.0 flake8-import-order 'flake8-bugbear>=17.3.0' autopep8
86-
84+
install-style: install-docs install-dev
85+
pip install -U flake8 flake8-import-order flake8-bugbear autopep8
86+
8787
style:
8888
flake8
8989
! git grep -i syncroniz */*
@@ -114,6 +114,7 @@ release-deb:
114114
sh scripts/release-deb.sh ubuntu zesty
115115

116116
install-dev:
117+
pip install -U pip setuptools wheel
117118
pip install -e .
118119
[ "$(ETESYNC_TESTS)" = "false" ] || pip install -Ue .[etesync]
119120
set -xe && if [ "$(REQUIREMENTS)" = "devel" ]; then \

README.rst

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
22
vdirsyncer
33
==========
44

5+
.. image:: https://travis-ci.org/pimutils/vdirsyncer.svg?branch=master
6+
:target: https://travis-ci.org/pimutils/vdirsyncer
7+
:alt: CI status
8+
9+
.. image:: https://codecov.io/github/pimutils/vdirsyncer/coverage.svg?branch=master
10+
:target: https://codecov.io/github/pimutils/vdirsyncer?branch=master
11+
:alt: Codecov coverage report
12+
13+
.. image:: https://readthedocs.org/projects/vdirsyncer/badge/
14+
:target: https://vdirsyncer.rtfd.org/
15+
:alt: documentation
16+
17+
.. image:: https://img.shields.io/pypi/v/vdirsyncer.svg
18+
:target: https://pypi.python.org/pypi/vdirsyncer
19+
:alt: version on pypi
20+
21+
.. image:: https://img.shields.io/pypi/l/vdirsyncer.svg
22+
:target: https://github.com/pimutils/vdirsyncer/blob/master/LICENCE
23+
:alt: licence: BSD
24+
525
- `Documentation <https://vdirsyncer.pimutils.org/en/stable/>`_
626
- `Source code <https://github.com/pimutils/vdirsyncer>`_
727

@@ -20,15 +40,6 @@ It aims to be for calendars and contacts what `OfflineIMAP
2040

2141
.. _programs: https://vdirsyncer.pimutils.org/en/latest/tutorials/
2242

23-
.. image:: https://travis-ci.org/pimutils/vdirsyncer.svg?branch=master
24-
:target: https://travis-ci.org/pimutils/vdirsyncer
25-
26-
.. image:: https://codecov.io/github/pimutils/vdirsyncer/coverage.svg?branch=master
27-
:target: https://codecov.io/github/pimutils/vdirsyncer?branch=master
28-
29-
.. image:: https://badge.waffle.io/pimutils/vdirsyncer.svg?label=ready&title=Ready
30-
:target: https://waffle.io/pimutils/vdirsyncer
31-
3243
Links of interest
3344
=================
3445

docs/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.. include:: ../CHANGELOG.rst
1+
.. include:: ../CHANGELOG.rst

docs/conf.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
# -*- coding: utf-8 -*-
2-
31
import datetime
42
import os
53

6-
import setuptools_scm
4+
from pkg_resources import get_distribution
75

86
extensions = ['sphinx.ext.autodoc']
97

@@ -12,11 +10,11 @@
1210
source_suffix = '.rst'
1311
master_doc = 'index'
1412

15-
project = u'vdirsyncer'
16-
copyright = (u'2014-{}, Markus Unterwaditzer & contributors'
13+
project = 'vdirsyncer'
14+
copyright = ('2014-{}, Markus Unterwaditzer & contributors'
1715
.format(datetime.date.today().strftime('%Y')))
1816

19-
release = setuptools_scm.get_version(root='..', relative_to=__file__)
17+
release = get_distribution('vdirsyncer').version
2018
version = '.'.join(release.split('.')[:2]) # The short X.Y version.
2119

2220
rst_epilog = '.. |vdirsyncer_version| replace:: %s' % release
@@ -44,18 +42,18 @@
4442

4543
latex_elements = {}
4644
latex_documents = [
47-
('index', 'vdirsyncer.tex', u'vdirsyncer Documentation',
48-
u'Markus Unterwaditzer', 'manual'),
45+
('index', 'vdirsyncer.tex', 'vdirsyncer Documentation',
46+
'Markus Unterwaditzer', 'manual'),
4947
]
5048

5149
man_pages = [
52-
('index', 'vdirsyncer', u'vdirsyncer Documentation',
53-
[u'Markus Unterwaditzer'], 1)
50+
('index', 'vdirsyncer', 'vdirsyncer Documentation',
51+
['Markus Unterwaditzer'], 1)
5452
]
5553

5654
texinfo_documents = [
57-
('index', 'vdirsyncer', u'vdirsyncer Documentation',
58-
u'Markus Unterwaditzer', 'vdirsyncer',
55+
('index', 'vdirsyncer', 'vdirsyncer Documentation',
56+
'Markus Unterwaditzer', 'vdirsyncer',
5957
'Synchronize calendars and contacts.', 'Miscellaneous'),
6058
]
6159

docs/config.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ Service to hardcode those into opensource software [googleterms]_:
286286

287287
3. In the sidebar, select "Credentials" and create a new "OAuth Client ID". The
288288
application type is "Other".
289-
289+
290290
You'll be prompted to create a OAuth consent screen first. Fill out that
291291
form however you like.
292292

@@ -368,7 +368,7 @@ password. Neither are stored.
368368
secrets_dir = ...
369369
#server_path = ...
370370
#db_path = ...
371-
371+
372372
:param email: The email address of your account.
373373
:param secrets_dir: A directory where vdirsyncer can store the encryption
374374
key and authentication token.
@@ -386,7 +386,7 @@ password. Neither are stored.
386386
secrets_dir = ...
387387
#server_path = ...
388388
#db_path = ...
389-
389+
390390
:param email: The email address of your account.
391391
:param secrets_dir: A directory where vdirsyncer can store the encryption
392392
key and authentication token.

docs/keyring.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ passwords from the OS's password store. Installation::
6060
Basic usage::
6161

6262
password.fetch = ["command", "keyring", "get", "example.com", "foouser"]
63-
63+
6464
.. _keyring: https://github.com/jaraco/keyring/
6565

6666
Password Prompt

docs/tutorials/baikal.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Vdirsyncer is continuously tested against the latest version of Baikal_.
77
- Baikal up to ``0.2.7`` also uses an old version of SabreDAV, with the same
88
issue as ownCloud, see :gh:`160`. This issue is fixed in later versions.
99

10-
.. _Baikal: http://baikal-server.com/
10+
.. _Baikal: http://sabre.io/baikal/

docs/tutorials/claws-mail.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ Now we discover and sync our contacts::
6969
Claws Mail
7070
----------
7171

72-
Open Claws-Mail. Got to **Tools** => **Addressbook**.
72+
Open Claws-Mail. Go to **Tools** => **Addressbook**.
7373

7474
Click on **Addressbook** => **New vCard**. Choose a name for the book.
7575

7676
Then search for the for the vCard in the folder **~/.contacts/**. Click
7777
ok, and you we will see your contacts.
7878

7979
.. note::
80-
80+
8181
Claws-Mail shows only contacts that have a mail address.
8282

8383
Crontab

0 commit comments

Comments
 (0)