Commit graph

2172 commits

Author SHA1 Message Date
pre-commit-ci[bot]
21eccfc2ef
[pre-commit.ci] pre-commit autoupdate
updates:
- https://gitlab.com/pycqa/flake8https://github.com/PyCQA/flake8
- [github.com/psf/black: 21.6b0 → 21.7b0](https://github.com/psf/black/compare/21.6b0...21.7b0)
- [github.com/pycqa/isort: 5.8.0 → 5.9.2](https://github.com/pycqa/isort/compare/5.8.0...5.9.2)
2021-07-26 17:54:50 +00:00
Hugo Osvaldo Barrera
7b493416f7
Merge pull request #920 from pimutils/meta_delete
metasync: use None as no-value and delete missing values on syncing
2021-07-26 13:07:45 +02:00
Hugo Osvaldo Barrera
5b8f00e720 Sort imports 2021-07-25 18:35:47 +02:00
Hugo Osvaldo Barrera
0556e53e0c Use isort to reorder python imports
reorder-python-imports is hard to set up correctly.

isort is a lot simpler to set to set up it locally, and is kinda
becoming the standard in the python world.

The import style remains the same, and is tweaked to minimise conflicts.
2021-07-25 18:35:04 +02:00
Hugo Osvaldo Barrera
7379a96f73 Skip test on unsupported servers 2021-07-23 20:27:34 +02:00
Дилян Палаузов
c0ccb3d1aa metasync: use None as no-value and delete missing values on syncing
- change the interface of Storage.get_meta() and .set_meta()
  to use '' as the empty value and None as missing value.

- When a property is missing (e.g calendar-color was removed)
  in the filesystem storage delete the 'color' file, and
  in the WebDAV storage issue propertyupdate/remove call.

- remove the property from [status]/[pair]/[collection].metadata

I have adjusted, but not run the test suite.  On the other side
I tested on real system: source is CalDAV - destination is filesystem;
and source is CalDAV, destination is CalDAV (another account)
2021-07-23 19:07:02 +02:00
Hugo Osvaldo Barrera
98fcd12fa7 Only measure coverage of vdirsyncer/
i.e.: Ignore non-application code like  contrib/
2021-07-10 17:35:50 +02:00
Hugo Osvaldo Barrera
f2a1afe6d3
Merge pull request #915 from pimutils/formatting
Make command bit more readable
2021-07-10 17:33:34 +02:00
Hugo Osvaldo Barrera
e16f83c1c2 Make this bit more readable 2021-07-07 18:46:13 +02:00
Hugo Osvaldo Barrera
55c563ff8c
Merge pull request #893 from Intevation/conflict-resolution-interactive
Add contrib script to resolve conflicts
2021-07-07 18:41:54 +02:00
Hugo Osvaldo Barrera
a5731b269e
Merge pull request #913 from pimutils/async-collections
Sync pairs asynchronously
2021-07-07 18:21:06 +02:00
Hugo Osvaldo Barrera
459efbf7af
Merge pull request #914 from pimutils/simpler-coverage
Simplify coverage submission
2021-07-07 15:10:10 +02:00
Hugo Osvaldo Barrera
58aa0a3a31 Simplify coverage submission
We submit separate coverage reports for each group of tests, but codecov
doesn't give us proper tooling to analyse each one separately. When
there's a percentage drop in one, there's no way to pinpoint where -- at
least not without running locally and inspecting results separately.

Treat all coverage as one. Analysis of coverage for each group of tests
can be done offline and manually, but there's little value in keeping it
in codecov.

Should also help us transition a more simplified CI design (e.g.:
running all tests together rather than in groups).
2021-07-06 23:45:35 +02:00
Hugo Osvaldo Barrera
177748d3d1 Sync pairs asynchronously 2021-07-06 23:13:13 +02:00
Bernhard Reiter
61edfc090e
Adjust codestyle
running flake8, black and reorder-python-imports.
2021-06-28 16:01:21 +02:00
Bernhard Reiter
b3bee77c17
Change license from Apache-2.0 to BSD-3-Clause
to match the license of vdirsyncer
2021-06-28 15:22:56 +02:00
Hugo Osvaldo Barrera
21db2547cb
Merge pull request #911 from pimutils/optimise-test-servers
Minor optimisations to tests
2021-06-27 18:31:11 +02:00
Hugo Osvaldo Barrera
be131a0063
Merge pull request #910 from pimutils/orage
Update link for orage
2021-06-27 13:17:06 +02:00
Hugo Osvaldo Barrera
71879045e4 Tidy up test collection creation
- No need to empty collections, they're generated with a UUID and should
  always be empty (the code to empty them does not actually run in CI
  right now).
- Move deletion code to _after_ the yield, since that's the order in
  which things happen.
- Delete all collections asynchronously.
2021-06-27 13:16:31 +02:00
Hugo Osvaldo Barrera
54e0c114fa Update link for orage
The previous one is 404, and that domain redirects to some random
website.
2021-06-27 12:37:33 +02:00
Hugo Osvaldo Barrera
17f422c1b7 Auto-delete test containers 2021-06-26 19:59:56 +02:00
Hugo Osvaldo Barrera
a9f1a5195a Tweak output when running tests 2021-06-26 19:59:56 +02:00
Hugo Osvaldo Barrera
8dab258ef0
Merge pull request #909 from pimutils/fastmail
Run Fastmail on CI again
2021-06-26 18:40:50 +02:00
Hugo Osvaldo Barrera
f09d060580 Run Fastmail tests on CI 2021-06-26 18:25:35 +02:00
Hugo Osvaldo Barrera
ef2419efa9 Avoid running bogus tests with Fastmail
The fix that disabled VTODO tests accidentally ran all other tests twice
for this storage.

This wasn't picked up earlier since Fastmail is not currently running on
CI.
2021-06-26 18:12:54 +02:00
Hugo Osvaldo Barrera
2eff8e08e1 Fix breakage in Fastmail tests
Some code that wasn't updated with the switch to asyncio.
2021-06-26 18:12:22 +02:00
Hugo Osvaldo Barrera
152ebb05dd
Merge pull request #906 from pimutils/async
Initial asyncio support
2021-06-26 15:56:23 +02:00
Hugo Osvaldo Barrera
5a9fc2cc7e Add changelog entries for asyncio support 2021-06-26 13:40:38 +02:00
Hugo Osvaldo Barrera
dfed9794cb Port google storage to use asyncio 2021-06-26 13:40:38 +02:00
Hugo Osvaldo Barrera
8d69b73c9e Fetch displaynames asynchronously 2021-06-26 13:40:38 +02:00
Hugo Osvaldo Barrera
1a1f6f0788 Initial async support
Add asyncio to the storage backends and most of the codebase. A lot of
it merely uses asyncio APIs, but still doesn't actually run several
things concurrently internally. Further improvements will be added on
top of these changes

Thanks to  Thomas Grainger (@graingert) for a few useful pointers
related to asyncio.
2021-06-26 13:40:35 +02:00
Hugo Osvaldo Barrera
7c9170c677 Remove unecessary indirection 2021-06-26 13:02:41 +02:00
Hugo Osvaldo Barrera
623c0537e1 Update test 2021-06-26 13:02:41 +02:00
Hugo Osvaldo Barrera
4930b5f389 Drop multithreading support
This is mainly in preparation to moving to an async architecture.
2021-06-26 13:02:41 +02:00
Hugo Osvaldo Barrera
25435ce11d
Merge pull request #903 from pimutils/fix-old-ssl-tests
Fix SSL tests failing due to old weak MDs
2021-06-26 13:01:17 +02:00
Hugo Osvaldo Barrera
1f6cc6f8be Fix SSL tests failing due to old weak MDs
Had to drop pytest-localserver, since it's broken and upstream is gone.
2021-06-20 18:49:02 +02:00
Hugo Osvaldo Barrera
59b6e24795
Merge pull request #905 from pimutils/showconfig
Add a command to print the current config
2021-06-19 13:38:15 +02:00
Hugo Osvaldo Barrera
722dace828
Merge pull request #904 from pimutils/improve-error-msg
Fix double-use of a generator
2021-06-19 13:11:24 +02:00
Hugo Osvaldo Barrera
6cebba0853 Add a changelog entry 2021-06-17 08:42:45 +02:00
Hugo Osvaldo Barrera
29528123a3 Add a command to print the current config
This is intended to be used by external tools and integrations (such as
daemons which trigger `vdirsyncer` when there's a change in a
collection).
2021-06-16 19:03:50 +02:00
Hugo Osvaldo Barrera
72618e374d Fix double-use of a generation
The first use exhausted it, so the second iteration was empty.
2021-06-14 22:50:22 +02:00
Witcher01
c254b4ad1d fixed password.fetch option not using environment
the '_strategy_command' in 'fetchparams.cli' did not expand the path of
every argument, but only the first one (being the command to be
executed).
i fixed the '_strategy_command' function to apply the 'expand_path'
function to every member of the commands list.
2021-06-13 16:14:46 +02:00
Hugo Osvaldo Barrera
cfd5af832a Fix mixup in the changelog 2021-06-13 16:12:52 +02:00
Hugo Osvaldo Barrera
342cb863cd Merge remote-tracking branch 'dilyanpalauzov/meta_description' 2021-06-13 16:12:09 +02:00
Hugo Osvaldo Barrera
e1c979751d Remove legacy GitHub Action workflows
Conflicts with our newer pipeline when a tag is pushed.
2021-06-13 16:11:13 +02:00
Hugo Osvaldo Barrera
3191886658
Merge pull request #901 from pimutils/publish
Publish tags to PyPI
2021-06-13 15:49:37 +02:00
Hugo Osvaldo Barrera
3260afb495 Publish tags to PyPI 2021-06-13 14:20:28 +02:00
Hugo Osvaldo Barrera
0231f3999e order is probably less important than the others 2021-06-13 00:52:39 +02:00
Hugo Osvaldo Barrera
d1b148c919 Improve docs for new meta properties 2021-06-13 00:49:27 +02:00
Hugo Osvaldo Barrera
e70e8c03e8 Merge branch 'origin/master' into meta_description 2021-06-13 00:46:05 +02:00