-
Notifications
You must be signed in to change notification settings - Fork 436
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
Start building universal wheels #397
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[bdist_wheel] | ||
universal = 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This enables the build of universal wheels by default. Cf. https://packaging.python.org/tutorials/distributing-packages/#universal-wheels |
||
|
||
[metadata] | ||
license_file = LICENSE | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is to ensure the license file is included in the wheel files. Cf. https://wheel.readthedocs.io/en/stable/#including-the-license-in-the-generated-wheel-file. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,9 +28,9 @@ | |
with open('LONG_DESCRIPTION.rst') as f: | ||
long_description = f.read() | ||
|
||
# Don't import stripe module here, since deps may not be installed | ||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'stripe')) | ||
from version import VERSION | ||
version_contents = {} | ||
with open(os.path.join('stripe', 'version.py')) as f: | ||
exec(f.read(), version_contents) | ||
|
||
# Get simplejson if we don't already have json | ||
if sys.version_info < (3, 0): | ||
|
@@ -42,12 +42,13 @@ | |
|
||
setup( | ||
name='stripe', | ||
version=VERSION, | ||
description='Stripe python bindings', | ||
version=version_contents['VERSION'], | ||
description='Python bindings for the Stripe API', | ||
long_description=long_description, | ||
author='Stripe', | ||
author_email='[email protected]', | ||
url='https://github.com/stripe/stripe-python', | ||
license='MIT', | ||
packages=['stripe', 'stripe.api_resources', | ||
'stripe.api_resources.abstract'], | ||
package_data={'stripe': ['data/ca-certificates.crt']}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one hadn't been updated in a while ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol. Maybe another seven years until the next time too ...