-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reconsider tag name scheme for RTD #2462
Comments
To add more context, the link I gave above actual says they expect the tag to be PEP 440 compliant. We can check for said compliance via the Essentially the only extra pieces outside of So the only real place to sneak in the package name is in the To see some valid and invalid (according to PEP 440) version (hence tag) names: >>> import json
>>> from packaging.version import Version
>>> v = Version('0.20.1')
>>> print(json.dumps(v._version.__dict__, indent=2, sort_keys=True))
{
"dev": null,
"epoch": 0,
"local": null,
"post": null,
"pre": null,
"release": [
0,
20,
1
]
}
>>> v = Version('0.20.1+datastore')
>>> print(json.dumps(v._version.__dict__, indent=2, sort_keys=True))
{
"dev": null,
"epoch": 0,
"local": [
"datastore"
],
"post": null,
"pre": null,
"release": [
0,
20,
1
]
}
>>> Version('0.20.1-datastore')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/dhermes/Desktop/venv/local/lib/python2.7/site-packages/packaging/version.py", line 202, in __init__
raise InvalidVersion("Invalid version: '{0}'".format(version))
packaging.version.InvalidVersion: Invalid version: '0.20.1-datastore' |
What about |
Yeah that's also valid. But the reason for tags is to do releases of each subpackage with a tag. Check out https://github.com/GoogleCloudPlatform/google-cloud-node/releases to see what I'm talking about. Hence we want a PEP 440 valid tag (so RTD is happy) but we also want to put info in the tag that tells us which version to release. |
Per @tseaver, we'd like the tags to start with |
So this might be the wrong question but what if the subpackages had their own docs and the umbrella package just linked to the other subpackages docs? Then versions/tags can be treated normally for each subpackage right? |
That would mean entirely different source trees / GitHub projects, which has been disallowed? |
@daspecster That would be ideal in a sense, but it would almost require separate repositories for each API. |
Looks like it might be possible? readthedocs/readthedocs.org#1554 |
I'm somewhat 👎 on this as well. Essentially, the same reason we want a single place for filing issues, we want a single place for documentation (I realize the inherent contradiction since we have |
ISTM that having separate RTD projects for each API might be the Right Thing(TM): each PyPI page would point there, for instance. The "master" docs would then include only the overview stuff, with intersphinx links to the separate projects. |
I think I'd be OK with that. I don't think that gets us around the |
This is made moot by #2810, since we'll be disabled the |
Using
umbrella-0.20.0
did not kick off astable
docs build on RTD. From their documentation, astable
build is only done when a semver-valid tag is pushed:I tried to force it to rebuild but it stuck with the last valid tag at 4d66524.
The text was updated successfully, but these errors were encountered: