Split the test-server framework out into its own distribution?
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
- 领域
- backend, build-system
调研方向
Read the test-server framework under caldav.testing, caldav/config.py, and docs/design/TODO.md, then inspect how distributions and package data are built. Decide whether the testing feature can be split cleanly while staying in lockstep with caldav; the issue lists version skew, the config integration, and release upkeep as open design questions. Done means a settled distribution boundary and release plan.
由索引模型根据 Issue 内容生成。
描述
Human-written issue text:
There is a legitimate need for testing other packages (like plann, calendar-cli, calendaring, calendaring-sync) towards a wide range of test servers. I'm currently working on exporting the test server registry logic out as a public part of the caldav package. Arguably it would better belong in a separate package. As for now the costs of spawning Yet Another Package have been considered bigger than the costs of adding some few kilobytes of pure-python-logic that ordinary users of the caldav package do not need, but I still think it's That's the Way.
Text below the line was generated by Claude Opus 5.5.
The fix for https://github.com/python-caldav/caldav/issues/817 moves the test-server framework into the installed package as caldav.testing. That covers the registry, the config loader, the session locks and the embedded, Docker and external server classes. Ordinary users of caldav never need any of it, so it could live in a dev-only distribution instead, say caldav-test-servers.
For a split:
- The wheel carries only what library users need.
- A separate wheel could ship
tests/docker-test-servers/as package data. That would remove theCALDAV_DOCKER_TEST_SERVERS_DIRworkaround. It would also stop an installed caldav from looking for a checkout'stests/directory insidesite-packages(seedocs/design/TODO.md).
Against, or at least things to settle first:
- The split is not clean.
get_davclient()withPYTHON_CALDAV_USE_TEST_SERVER=1lives incaldav/config.py, and it uses the registry and the embedded servers. One option is to move that feature out too. The other is an optional import of the new package from caldav.config.pyalready has a TODO that calls this test tooling, not config. - Version skew.
caldav/testing/docker.pyimportscaldav.compatibility_hints, and the server classes carry feature hints that change with most releases. A test-server package released on its own schedule would drift out of step, which is the breakage #817 was about. - The cost of keeping it is small. It is pure Python and imported lazily:
import caldavdoes not loadcaldav.testing, andrequests/yamlare only imported when it is used. - Upkeep. It means another PyPI project, another CI job and another release step.
- An existing home.
caldav-server-testeris already a separate, dev-only caldav package. It is a different tool, but it is a candidate home.
Suggested shape, if done: build a second distribution from this repository, released in lockstep with caldav (caldav-test-servers==X requiring caldav==X). It would hold today's caldav.testing plus the compose files as package data. caldav.testing would remain as a thin import shim with a deprecation warning, for one release cycle.
No rush: the in-package version works, and this can wait until there is a reason to touch it.
- 主要语言
- Python
- 星标
- 412
- 派生
- 113
- 平均合并
- 8 小时 43 分钟
- 30 天内合并 PR
- 74
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
python-caldav/caldav 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 68/100
python-caldav/caldav#844 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
python-caldav/caldav#792 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
python-caldav/caldav#788 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
python-caldav/caldav#687 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 56/100
python-caldav/caldav#842 ·
维护者通常 1 天内回复
查看 python-caldav/caldav 的全部 Issue
相似的 Issue
-
Paraxial.trace returns NaN for an object at infinity when the entrance pupil is at the first surface未关闭
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
enhancement ios launcher
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
Substrait consumer doesn't recognise `shift_left` / `shift_right` from functions_arithmetic.yaml未关闭bug
难度 2/5 1-3 小时 新手友好度 76/100
apache/datafusion#27059 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
loteran/Arctis-Sound-Manager#368 ·
维护者通常 1 天内回复
-
feed submission
难度 2/5 1-3 小时 新手友好度 65/100
MobilityData/mobility-database-catalogs#1787 ·
维护者通常 2 天内回复