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

No longer release a Python 2 wheel or PEX #7888

Merged
merged 13 commits into from Jun 21, 2019

Conversation

Eric-Arellano
Copy link
Contributor

@Eric-Arellano Eric-Arellano commented Jun 17, 2019

We will now require Python 3 to run Pants for new releases (1.18.x or greater), per https://groups.google.com/forum/#!topic/pants-devel/-bMRstFtMZU.

Here, we remove Python 2 from all release related code, including:

  • Remove Python 2 wheel building shards.
  • Remove Python 2 UCS 4 Docker image.
  • Remove -2 and --py2 logic from release.sh and packages.py.
  • Remove documentation claiming support for running with Python 2.7.

@Eric-Arellano
Copy link
Contributor Author

Not to merge until Twitter has landed their Python 3 patch, which will hopefully be today or tomorrow.

Otherwise all ready for review :)

For some reason, `check_pants_pex_abi.py` cannot find `./pants.pex`. Maybe, just maybe, this is related..?
* Missing urllib imports
* Not redirecting stdout to stderr
Copy link
Contributor

@ity ity left a comment

Choose a reason for hiding this comment

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

nice!

There's no more need to parametrize docker_image_name. Removing that flexibility makes the code more explicit and easier to understand.
# Delete this line to force a full CI run for documentation-only changes.
SKIP_FULL_CI  # Documentation-only change.
Copy link
Contributor

@ity ity left a comment

Choose a reason for hiding this comment

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

still lgtm!

@Eric-Arellano Eric-Arellano merged commit 4830e7b into pantsbuild:master Jun 21, 2019
@Eric-Arellano Eric-Arellano deleted the remove-py2-release branch June 21, 2019 18:05
stuhood added a commit that referenced this pull request Jun 22, 2019
### Problem

#7888 fixed most of the locations that were expecting particular whl counts, but missed one.

### Solution

Fix the last whl count check.

### Result

Confirmed that `build-support/bin/release.sh -p` works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants