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

Fix package distribution #368

Merged
7 commits merged into from Jul 12, 2017
Merged

Fix package distribution #368

7 commits merged into from Jul 12, 2017

Conversation

ilanbiala
Copy link
Contributor

@ilanbiala ilanbiala commented Jul 11, 2017

This PR fixes package distribution, so twilio-python installs the correct dependencies based on the Python version it will be running on.

@ilanbiala ilanbiala requested review from dougblack, jingming, a user and codejudas July 11, 2017 23:42
@ilanbiala
Copy link
Contributor Author

Fixes #356
Fixes #357

@ilanbiala ilanbiala changed the title Test install Fix package distribution Jul 12, 2017
setup.py Outdated
"requests[security] >= 2.0.0",
],
':python_version>="3.3"': [
"requests >= 2.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't requests a required package for any version of python?

Also we seem to have lost the cryptography package on < 3.0, idna package on < 3.0, pyOpenSSL on < 3.0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Those come with requests[security]. That's why I split it up, because Python 2.7 needs the extra installation of requests, but Python >= 3.3 doesn't.

Copy link
Contributor

Choose a reason for hiding this comment

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

does requests[security] also install the core requests package?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also can we make this python_version<3 instead of ==2.7 so that someone on a unsupported version can at least try to install it :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto for python_version>=3.3 => 3.0

@ghost ghost merged commit 94b5ff9 into master Jul 12, 2017
@ilanbiala ilanbiala deleted the test-install branch July 12, 2017 20:34
@ghost ghost restored the test-install branch July 12, 2017 20:44
@ghost ghost deleted the test-install branch July 12, 2017 21:43
@ilanbiala ilanbiala mentioned this pull request Jul 12, 2017
This pull request was closed.
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

2 participants