Commit graph

2145 commits

Author SHA1 Message Date
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
Hugo Osvaldo Barrera
46a49e3481
Merge pull request #900 from pimutils/more-git-optimizations
Optimize another very slow test
2021-06-13 00:28:12 +02:00
Hugo Osvaldo Barrera
5e36ca1334 Optimize another very slow test 2021-06-12 23:49:23 +02:00
Hugo Osvaldo Barrera
910317d4bb
Merge pull request #899 from pimutils/faster-tests
Faster tests
2021-06-12 23:41:29 +02:00
Hugo Osvaldo Barrera
29c2b6bb4b git-ignore coverage file 2021-06-12 18:39:28 +02:00
Hugo Osvaldo Barrera
2e4fc7c65a Drop unecessary hypothesis usage
This adds A LOT of time to test execution, for little benefit. While
having random data is good, in reality, most of it was just numbers, and
we rarely got very diverse data.

These hand-picked samples are as good to catch any regressions or issues
with servers.
2021-06-12 18:32:05 +02:00
Hugo Osvaldo Barrera
87f3a594c6
Merge pull request #897 from pimutils/optimise-test-servers
Run test servers as fixtures
2021-06-12 17:13:31 +02:00
Hugo Osvaldo Barrera
d95a8264f4 Merge style dependencies into dev dependencies 2021-06-12 16:28:27 +02:00
Hugo Osvaldo Barrera
77d64ddc2c Always check link as part of building docs 2021-06-12 16:28:27 +02:00
Hugo Osvaldo Barrera
808e01f9c8 DAVDroid is now called DAVx⁵ 2021-06-12 16:28:27 +02:00
Hugo Osvaldo Barrera
86535a9db3 Merge test dependencies into dev dependencies 2021-06-12 16:28:27 +02:00
Hugo Osvaldo Barrera
57d662cba1 Drop make target for development packages
We no longer track compat with unreleased packages. Too many variations
and too much complexity.

`vdirsyncer` only works with released packages.
2021-06-12 16:28:27 +02:00
Hugo Osvaldo Barrera
8d62ac4279 Pin the maximum version of click
We're likely won't be compatible with 9.0.
2021-06-12 16:28:27 +02:00
Hugo Osvaldo Barrera
3bf4bd079d Tidy up CI build definitions 2021-06-12 16:28:27 +02:00
Hugo Osvaldo Barrera
39ccc168b2 Show a useful help message by default 2021-06-12 16:28:27 +02:00
Hugo Osvaldo Barrera
7b0d6671da Delete unused variable 2021-06-12 16:28:27 +02:00
Hugo Osvaldo Barrera
8e8c1d5719 Update docs on test DAV servers 2021-06-12 16:28:27 +02:00
Hugo Osvaldo Barrera
299c699cb9 Manage test DAV servers as fixtures
Rather than require manually starting them before tests, manage them as
fixtures an initialise/destroy them as needed.
2021-06-12 16:28:24 +02:00
Hugo Osvaldo Barrera
8cd4a44d02 Simplify definition of DAV_SERVERs 2021-06-12 15:01:08 +02:00
Hugo Osvaldo Barrera
b0f08e051a
Merge pull request #895 from pimutils/optimise-test-servers
Run CI storage tests against Baikal again
2021-06-12 14:21:50 +02:00
Hugo Osvaldo Barrera
4450393d4f Typo
Fixes #892
2021-06-12 13:27:47 +02:00
Hugo Osvaldo Barrera
6c80293a98 Mark failing baikal tests as xfail 2021-06-12 13:26:01 +02:00
Hugo Osvaldo Barrera
a9fa61040f Tidy up some collection initializations 2021-06-12 13:23:54 +02:00
Hugo Osvaldo Barrera
ee124f5c82 Improve readability of failed tests 2021-06-12 13:23:52 +02:00
Hugo Osvaldo Barrera
5a97307a2f Remove unecessary exclusion 2021-06-12 13:08:25 +02:00
Hugo Osvaldo Barrera
e467809bb0 Update pre-commit hooks 2021-06-12 13:08:04 +02:00
Hugo Osvaldo Barrera
320ac6020b Tweak linter to ignore less issues 2021-06-12 12:58:13 +02:00