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

Start building universal wheels #397

Merged
merged 1 commit into from
Feb 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright (c) 2010-2011 Stripe (http://stripe.com)
Copyright (c) 2010-2018 Stripe (http://stripe.com)
Copy link
Contributor Author

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 ;)

Copy link
Contributor

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 ...


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[bdist_wheel]
universal = 1
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.

11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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']},
Expand Down