Skip to content

Commit e70e8c0

Browse files
author
Hugo Osvaldo Barrera
committed
Merge branch 'origin/master' into meta_description
2 parents 50cb2de + 46a49e3 commit e70e8c0

File tree

113 files changed

+3394
-3330
lines changed

Some content is hidden

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

113 files changed

+3394
-3330
lines changed

.builds/archlinux.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Run tests using the packaged dependencies on ArchLinux.
2+
3+
image: archlinux
4+
packages:
5+
- docker
6+
- docker-compose
7+
# Build dependencies:
8+
- python-pip
9+
- python-wheel
10+
# Runtime dependencies:
11+
- python-atomicwrites
12+
- python-click
13+
- python-click-log
14+
- python-click-threading
15+
- python-requests
16+
- python-requests-toolbelt
17+
# Test dependencies:
18+
- python-hypothesis
19+
- python-pytest-cov
20+
- python-pytest-localserver
21+
sources:
22+
- https://github.com/pimutils/vdirsyncer
23+
environment:
24+
BUILD: test
25+
CI: true
26+
CODECOV_TOKEN: b834a3c5-28fa-4808-9bdb-182210069c79
27+
DAV_SERVER: radicale xandikos
28+
REQUIREMENTS: release
29+
# TODO: ETESYNC_TESTS
30+
tasks:
31+
- setup: |
32+
sudo systemctl start docker
33+
cd vdirsyncer
34+
python setup.py build
35+
sudo pip install --no-index .
36+
- test: |
37+
cd vdirsyncer
38+
make -e ci-test
39+
make -e ci-test-storage

.builds/tests-minimal.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Run tests using oldest available dependency versions.
2+
#
3+
# TODO: It might make more sense to test with an older Ubuntu or Fedora version
4+
# here, and consider that our "oldest suppported environment".
5+
6+
image: archlinux
7+
packages:
8+
- docker
9+
- docker-compose
10+
- python-pip
11+
sources:
12+
- https://github.com/pimutils/vdirsyncer
13+
environment:
14+
BUILD: test
15+
CI: true
16+
CODECOV_TOKEN: b834a3c5-28fa-4808-9bdb-182210069c79
17+
DAV_SERVER: radicale xandikos
18+
REQUIREMENTS: minimal
19+
# TODO: ETESYNC_TESTS
20+
tasks:
21+
- setup: |
22+
sudo systemctl start docker
23+
cd vdirsyncer
24+
make -e install-dev
25+
- test: |
26+
cd vdirsyncer
27+
# Non-system python is used for packages:
28+
export PATH=$PATH:~/.local/bin/
29+
make -e ci-test
30+
make -e ci-test-storage

.builds/tests-release.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Run tests using latest dependencies from PyPI
2+
3+
image: archlinux
4+
packages:
5+
- docker
6+
- docker-compose
7+
- python-pip
8+
sources:
9+
- https://github.com/pimutils/vdirsyncer
10+
environment:
11+
BUILD: test
12+
CI: true
13+
CODECOV_TOKEN: b834a3c5-28fa-4808-9bdb-182210069c79
14+
DAV_SERVER: baikal radicale xandikos
15+
REQUIREMENTS: release
16+
# TODO: ETESYNC_TESTS
17+
tasks:
18+
- setup: |
19+
sudo systemctl start docker
20+
cd vdirsyncer
21+
make -e install-dev -e install-docs
22+
- test: |
23+
cd vdirsyncer
24+
# Non-system python is used for packages:
25+
export PATH=$PATH:~/.local/bin/
26+
make -e ci-test
27+
make -e ci-test-storage
28+
- style: |
29+
cd vdirsyncer
30+
# Non-system python is used for packages:
31+
export PATH=$PATH:~/.local/bin/
32+
make -e style

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ dist
1414
docs/_build/
1515
vdirsyncer/version.py
1616
.hypothesis
17+
coverage.xml

.gitmodules

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

.pre-commit-config.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.4.0
3+
rev: v4.0.1
44
hooks:
55
- id: trailing-whitespace
66
args: [--markdown-linebreak-ext=md]
77
- id: end-of-file-fixer
8-
exclude: '.travis.yml'
98
- id: check-toml
109
- id: check-added-large-files
1110
- id: debug-statements
1211
- repo: https://gitlab.com/pycqa/flake8
13-
rev: "master" # pick a git hash / tag to point to
12+
rev: "3.9.2"
1413
hooks:
1514
- id: flake8
1615
additional_dependencies: [flake8-import-order, flake8-bugbear]
16+
- repo: https://github.com/psf/black
17+
rev: "21.6b0"
18+
hooks:
19+
- id: black
1720
- repo: https://github.com/asottile/reorder_python_imports
18-
rev: v2.3.0
21+
rev: v2.5.0
1922
hooks:
2023
- id: reorder-python-imports
21-
- repo: local
22-
hooks:
23-
- id: update-travis
24-
name: Update travis job definition
25-
description: Ensures that travis job definition are up to date.
26-
entry: scripts/make_travisconf.py
27-
files: '.*travis.*'
28-
stages: [commit]
29-
language: script

.travis.yml

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

CHANGELOG.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ 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.18.0
13+
==============
14+
15+
Note: Version 0.17 has some alpha releases but ultimately was never finalised.
16+
0.18 actually continues where 0.16 left off.
17+
18+
- Support for Python 3.5 and 3.6 has been dropped. This release mostly focuses
19+
on keeping vdirsyncer compatible with newer environments.
20+
- click 8 and click-threading 0.5.0 are now required.
21+
- For those using ``pipsi``, we now recommend using ``pipx``, it's successor.
22+
- Python 3.9 is now supported.
23+
- Our Debian/Ubuntu build scripts have been updated. New versions should be
24+
pushed to those repositories soon.
1225
- Add "description" and "order" as metadata. These fetch the CalDAV:
1326
calendar-description, CardDAV:addressbook-description and apple-ns:calendar-order
1427
properties.

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# setuptools-scm includes everything tracked by git
2-
prune contrib
2+
prune docker
33
prune scripts
44
prune tests/storage/servers
55
prune tests/storage/etesync

Makefile

Lines changed: 14 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export DETERMINISTIC_TESTS := false
1515
# Run the etesync testsuite.
1616
export ETESYNC_TESTS := false
1717

18-
# Assume to run in Travis. Don't use this outside of a virtual machine. It will
18+
# Assume to run in CI. Don't use this outside of a virtual machine. It will
1919
# heavily "pollute" your system, such as attempting to install a new Python
2020
# systemwide.
2121
export CI := false
@@ -36,55 +36,29 @@ ifeq ($(ETESYNC_TESTS), true)
3636
endif
3737

3838
PYTEST = py.test $(PYTEST_ARGS)
39-
40-
export TESTSERVER_BASE := ./tests/storage/servers/
4139
CODECOV_PATH = /tmp/codecov.sh
4240

43-
ifeq ($(CI), true)
44-
test-storage:
45-
curl -s https://codecov.io/bash > $(CODECOV_PATH)
46-
$(PYTEST) tests/storage/
47-
bash $(CODECOV_PATH) -c -F storage
48-
test:
41+
all:
42+
$(error Take a look at https://vdirsyncer.pimutils.org/en/stable/tutorial.html#installation)
43+
44+
ci-test:
4945
curl -s https://codecov.io/bash > $(CODECOV_PATH)
5046
$(PYTEST) tests/unit/
5147
bash $(CODECOV_PATH) -c -F unit
5248
$(PYTEST) tests/system/
5349
bash $(CODECOV_PATH) -c -F system
5450
[ "$(ETESYNC_TESTS)" = "false" ] || make test-storage
55-
else
56-
test:
57-
$(PYTEST)
58-
endif
59-
60-
all:
61-
$(error Take a look at https://vdirsyncer.pimutils.org/en/stable/tutorial.html#installation)
6251

63-
install-servers:
52+
ci-test-storage:
53+
curl -s https://codecov.io/bash > $(CODECOV_PATH)
6454
set -ex; \
6555
for server in $(DAV_SERVER); do \
66-
if [ ! "$$(ls $(TESTSERVER_BASE)$$server/)" ]; then \
67-
git submodule update --init -- "$(TESTSERVER_BASE)$$server"; \
68-
fi; \
69-
(cd $(TESTSERVER_BASE)$$server && sh install.sh); \
56+
DAV_SERVER=$$server $(PYTEST) --cov-append tests/storage; \
7057
done
58+
bash $(CODECOV_PATH) -c -F storage
7159

72-
install-test: install-servers install-dev
73-
pip install -Ur test-requirements.txt
74-
set -xe && if [ "$$REQUIREMENTS" = "devel" ]; then \
75-
pip install -U --force-reinstall \
76-
git+https://github.com/DRMacIver/hypothesis \
77-
git+https://github.com/kennethreitz/requests \
78-
git+https://github.com/pytest-dev/pytest; \
79-
fi
80-
[ -z "$(TEST_EXTRA_PACKAGES)" ] || pip install $(TEST_EXTRA_PACKAGES)
81-
82-
install-test-storage: install-test
83-
# This is just an alias
84-
true
85-
86-
install-style: install-docs install-dev
87-
pip install pre-commit
60+
test:
61+
$(PYTEST)
8862

8963
style:
9064
pre-commit run --all
@@ -97,8 +71,6 @@ install-docs:
9771

9872
docs:
9973
cd docs && make html
100-
101-
linkcheck:
10274
sphinx-build -W -b linkcheck ./docs/ ./docs/_build/linkcheck/
10375

10476
release-deb:
@@ -111,21 +83,11 @@ release-deb:
11183
install-dev:
11284
pip install -U pip setuptools wheel
11385
pip install -e .
86+
pip install -Ur test-requirements.txt $(TEST_EXTRA_PACKAGES)
87+
pip install pre-commit
11488
[ "$(ETESYNC_TESTS)" = "false" ] || pip install -Ue .[etesync]
115-
set -xe && if [ "$(REQUIREMENTS)" = "devel" ]; then \
116-
pip install -U --force-reinstall \
117-
git+https://github.com/mitsuhiko/click \
118-
git+https://github.com/kennethreitz/requests; \
119-
elif [ "$(REQUIREMENTS)" = "minimal" ]; then \
89+
set -xe && if [ "$(REQUIREMENTS)" = "minimal" ]; then \
12090
pip install -U --force-reinstall $$(python setup.py --quiet minimal_requirements); \
12191
fi
12292

123-
ssh-submodule-urls:
124-
git submodule foreach "\
125-
echo -n 'Old: '; \
126-
git remote get-url origin; \
127-
git remote set-url origin \$$(git remote get-url origin | sed -e 's/https:\/\/github\.com\//[email protected]:/g'); \
128-
echo -n 'New URL: '; \
129-
git remote get-url origin"
130-
13193
.PHONY: docs

0 commit comments

Comments
 (0)