Skip to content
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

Updates to the release process #971

Merged
merged 6 commits into from Nov 3, 2019
Merged

Conversation

pganssle
Copy link
Member

@pganssle pganssle commented Nov 2, 2019

Summary of changes

The RELEASING document had gotten quite out of sync with the actual release procedure, so I have updated it.

I have also added new tox environments to handle the creation of virtual environments for some of the tasks around building and releasing.

Pull Request Checklist

tox.ini Outdated
commands = python release.py
commands =
python release.py build
python release.py sign
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably we should make this conditional on gpg being installed with a default key set or something, because I just realized that this probably will (or at least should) fail on Travis.

pganssle added a commit to pganssle/dateutil that referenced this pull request Nov 2, 2019
@pganssle pganssle force-pushed the update_releasing branch 2 times, most recently from 4ec3d1f to 4326667 Compare November 2, 2019 20:04
@pganssle pganssle closed this Nov 2, 2019
@pganssle pganssle reopened this Nov 2, 2019
@pganssle pganssle closed this Nov 2, 2019
@pganssle pganssle reopened this Nov 2, 2019
@pganssle pganssle closed this Nov 2, 2019
@pganssle pganssle mentioned this pull request Nov 2, 2019
@pganssle pganssle reopened this Nov 2, 2019
pganssle added a commit to pganssle/dateutil that referenced this pull request Nov 2, 2019
pganssle added a commit to pganssle/dateutil that referenced this pull request Nov 2, 2019
pganssle added a commit to pganssle/dateutil that referenced this pull request Nov 2, 2019
@pganssle pganssle added this to the 2.8.1 milestone Nov 2, 2019
pganssle added a commit to pganssle/dateutil that referenced this pull request Nov 2, 2019
@pganssle pganssle mentioned this pull request Nov 2, 2019
2 tasks
@pganssle pganssle added the build label Nov 2, 2019
pganssle added a commit to pganssle/dateutil that referenced this pull request Nov 3, 2019
pganssle added a commit to pganssle/dateutil that referenced this pull request Nov 3, 2019
pganssle added a commit to pganssle/dateutil that referenced this pull request Nov 3, 2019
pganssle added a commit to pganssle/dateutil that referenced this pull request Nov 3, 2019
The build environment was originally broken, and no release environment
existed. This allows for the Python dependencies for `release.py` to be
satisfied automatically as part of invoking the tox command.
The orignal test was using `[ ! -e "dist/*.whl" ]` to try and detect
that a wheel was created (and an analogous command for the tarball), but it
turns out that this would succeed even if the build command completely fails!
The reason is that the shellw as expanding "dist/*.whl" to an empty
list, which the conditional took to mean that it didn't need to check
for the existence of *any* files.

This was replaced by a more robust command that checks that exactly one
of each file was created by the build.
Moving to a model where dependencies are provided by `tox` as needed
where possible.
Many of these miscellaneous items would actually be interesting to
downstream consumers, even though they are not "bugfixes" (e.g. changes
to the test suite or package metadata). Rather than ask contributors to
decide whether their contribution meets this standard, we'll instead
manually curate which PRs are "hidden" in the changelog.
@pganssle pganssle merged commit 5fdbdbb into dateutil:master Nov 3, 2019
@pganssle pganssle mentioned this pull request Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant