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

Give ownership of the wheel files to the current user instead of root on Linux #66

Merged
merged 2 commits into from
May 6, 2018

Conversation

mayeut
Copy link
Member

@mayeut mayeut commented May 2, 2018

Give ownership of the wheel files to the current user instead of root on Linux, this also allows to cleanup the .travis.yml file a bit.

@YannickJadoul
Copy link
Member

Nevermind bitrise (only @joerick has access there, but maybe it would be nice to temporarily disable?), but I've restarted the failed Travis build

@YannickJadoul
Copy link
Member

Furthermore:

Python 3.3.x has reached end-of-life. This is its final release. It is a security-fix source-only release.

Python 3.3.0 was released on 2012-09-29 and has been in security-fix-only mode since 2014-03-08. Per Python Development policy, all support for the 3.3 series of releases ended on 2017-09-29, five years after the initial release. This release, Python 3.3.7, was the final release for the 3.3 series.

(cfr. https://www.python.org/downloads/release/python-337/)

So should we maybe just drop 3.3 support overall?

@mayeut
Copy link
Member Author

mayeut commented May 3, 2018

Dropping 3.3 support overall is to be considered yes. However, this PR only aims at dropping support on linux because builds are failing right now. Windows Python 3.3 builds are not broken (yet).

@YannickJadoul
Copy link
Member

Wait, because these are actually three PRs in one, if I see that correctly: Python 3.3 for manylinux, the wheel ownership, and simplifying the configuration for Travis?

I'm quite happy with the content, but is there a part that's urgent to merge? If not, I'll take out those changes. Otherwise, we can just wait for @joerick to review things as well.

.travis.yml Outdated
@@ -5,21 +5,20 @@ matrix:
# Linux Python 2
- sudo: required
language: python
python: "2.7"
Copy link
Member

Choose a reason for hiding this comment

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

"2.7" -> 2.7?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well,
I copy/pasted this from travis-ci doc https://docs.travis-ci.com/user/languages/python/#Specifying-Python-versions
If it has no impact I'm happy to change it

.travis.yml Outdated

# Linux Python 3
- sudo: required
language: python
python: "3.4"
Copy link
Member

Choose a reason for hiding this comment

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

Why 3.4, and not the latest version? Or just 3, then? (All in all, the different minor versions of Python will be tested inside the cibuildwheel tests anyway)

Copy link
Member Author

Choose a reason for hiding this comment

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

According to travis-ci docs, https://docs.travis-ci.com/user/languages/python/#Specifying-Python-versions, a major.minor shall be provided
This is the python version running cibuildwheel driver, not the python used to build wheels (so, cibuildwheel itself is not tested with every minor python versions). If support is dropped for 3.3 for building wheels, I found somewhat logical not to use it either to run cibuildwheel and thus, use the next supported version which is python 3.4

.travis.yml Outdated
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y python3-pip
- "PYTHON=python"
Copy link
Member

Choose a reason for hiding this comment

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

If distinction between python2 and python3 is not needed, we can just get rid of this environment variable

Copy link
Member Author

Choose a reason for hiding this comment

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

This is still needed for macOS which uses python2 and python3 (might not show in the diff)

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, should've looked better!

@mayeut mayeut force-pushed the drop-linux-python3.3 branch 2 times, most recently from 069ec14 to bd233cc Compare May 3, 2018 20:23
@mayeut mayeut changed the title Drop linux python3.3 Give ownership of the wheel files to the current user instead of root on Linux May 3, 2018
@YannickJadoul
Copy link
Member

Thanks a lot! #67 is merged, so you could rebase this PR, if you prefer (and drop e6fa70a, I suppose)

@mayeut
Copy link
Member Author

mayeut commented May 4, 2018

@YannickJadoul, PR rebased.

@@ -95,6 +95,7 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be

# we're all done here; move it to output
mv "$delocated_wheel" /output
chown {uid}:{gid} /output/$(basename $delocated_wheel)
Copy link
Member

Choose a reason for hiding this comment

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

Since all variable expansions before are also quoted, can we still change this to "/output/$(basename "$delocated_wheel")" ?

@YannickJadoul
Copy link
Member

OK, given that #71 depends on this, and that this is a small change anyway, I'm happy to merge this (after that one change, if you agree, @mayeut).

@mayeut
Copy link
Member Author

mayeut commented May 6, 2018

@YannickJadoul, change requested has been committed

@YannickJadoul YannickJadoul merged commit 57a2259 into pypa:master May 6, 2018
@mayeut mayeut deleted the drop-linux-python3.3 branch May 6, 2018 15:12
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.

2 participants