Hi Toree folks,
While checking on the Incubator Clutch report
(https://incubator.apache.org/clutch/#other), I noticed Toree is
flagged with "Has a distribution filename missing the word
incubating/incubator."
The cause is the pip packages in your dist area. The main source and
binary tarballs are named correctly, but the pip sdists aren't:
0.5.0-incubating/toree/toree-0.5.0-incubating-src.tar.gz (fine)
0.5.0-incubating/toree-pip/toree-0.5.0.tar.gz (missing
"incubating")
0.5.0-incubating/apache-toree-pip/apache-toree-0.5.0.tar.gz (missing
"incubating")
0.4.0-incubating/toree-pip/toree-0.4.0.tar.gz (missing
"incubating")
Those pip directories also contain loose *.egg-info/ folders
(PKG-INFO, SOURCES.txt, etc.). Those are build metadata rather than
release artifacts, and shouldn't be in dist at all.
Incubator policy asks that everything a podling puts in dist carry
"incubating" in the filename. The pip sdists can't be renamed to
include it, because pip reads the version from the filename and
"incubating" isn't a valid Python version string. So the usual fix is
to publish pip packages only to PyPI, and keep just the source release
(which is the official ASF release) and the convenience binary in
dist.
To fix it:
1. Confirm the pip packages are on PyPI.
2. Remove the pip directories from dist. Any PPMC member can do this
with a single command. No checkout is needed; it commits directly:
svn rm -m "Remove pip packages and egg-info from dist; published on PyPI" \
https://dist.apache.org/repos/dist/release/incubator/toree/0.4.0-incubating/toree-pip
\
https://dist.apache.org/repos/dist/release/incubator/toree/0.5.0-incubating/toree-pip
\
https://dist.apache.org/repos/dist/release/incubator/toree/0.5.0-incubating/apache-toree-pip
3. Update your release process (scripts or release docs) so future
releases upload pip packages to PyPI only, not to dist.
4. If any download page links to the pip directories on dist, point
those links to PyPI instead.
The Clutch note should clear on its next run after the svn rm.
A related note: only the latest release needs to stay in dist (older
ones remain on archive.apache.org), so you may also want to remove
0.4.0-incubating entirely, rather than just its pip directory:
svn rm -m "Remove superseded 0.4.0 release; available on archive.apache.org" \
https://dist.apache.org/repos/dist/release/incubator/toree/0.4.0-incubating
If you'd prefer to keep the pip packages in dist, that's worth raising
on [email protected] to get an explicit OK; the Clutch note
will stay until then.
If you have questions, please reply directly to me, as I'm not
subscribed.
Thanks,
Rich