aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-04-10 20:05:20 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2018-04-10 20:12:00 -0700
commit89c8515e25385f35cde10b9aa030c9b577029b2c (patch)
treed9397b6e81dc11dbfacd25eaf9991caa6bd12ee2
parentd180a090575de2ca7f6eecf0007a5793875935b8 (diff)
downloadplatform_external_python_ipaddress-89c8515e25385f35cde10b9aa030c9b577029b2c.tar.gz
platform_external_python_ipaddress-89c8515e25385f35cde10b9aa030c9b577029b2c.tar.bz2
platform_external_python_ipaddress-89c8515e25385f35cde10b9aa030c9b577029b2c.zip
Distribute package as a universal wheel
Wheels are the standard of Python distribution. Advantages of wheels includes: - Faster installation - Avoids arbitrary code execution during installation by avoiding setup.py - Allows better caching for testing and continuous integration - Creates .pyc files as part of installation to ensure they match the Python interpreter used - More consistent installs across platforms and machines When you'd normally run `python setup.py sdist upload`, run instead `python setup.py sdist bdist_wheel upload`. For additional information on wheels, see: https://pythonwheels.com/ Notice ipaddress is listed as one of the top sites without a wheel. For full details on wheel, see PEP-427: https://www.python.org/dev/peps/pep-0427/ The wheel includes the license file by using the [metadata] section in the setup.cfg file. For additional information on this feature, see: https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file
-rw-r--r--setup.cfg5
1 files changed, 5 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..ed8a958
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,5 @@
+[bdist_wheel]
+universal = 1
+
+[metadata]
+license_file = LICENSE