Skip to content

Commit

Permalink
Newer versions of xandikos and dulwich does not work with old python …
Browse files Browse the repository at this point in the history
…versions.

We apply a conditional version lock on xandikos and dulwich.

Alternatively we could just have a static version lock.  The
conditional version lock This is sort of a drawback for the python
caldav library isolated, as changes to xandikos and dulwich will
still be prone to break tests.  For the ecosystem as such, it's
probably nice that we catch problems with newer releases of xandikos
early.
  • Loading branch information
tobixen committed Nov 2, 2023
1 parent ce4004d commit 1abfac5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,21 @@
except:
extra_test_packages = ["mock"]

## TODO: consider if automated testing with radicale in addition to
## xandikos would yield any benefits.
test_packages = [
"pytest",
"pytest-coverage",
"coverage",
"xandikos",
"sphinx",
]

if sys.version_info.major == 3 and sys.version_info.minor < 9:
test_packages.append("xandikos==0.2.8")
test_packages.append("dulwich==0.20.50")
else:
test_packages.append("xandikos")

setup(
name="caldav",
version=version,
Expand Down

0 comments on commit 1abfac5

Please sign in to comment.