0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-22 11:07:57 +01:00
Commit Graph

5 Commits

Author SHA1 Message Date
Tim Heap
a0af3d6685 Ensure absolute_import, unicode_literals imported in all files
Drone will now check that

    from __future__ absolute_import, unicode_literals

is part of every Python source file, to ensure a consistent experience
across all versions of Python.

See #2392 for an instance where missing `unicode_literals` was causing
problems.

Add missing absolute_import, unicode_literals to all files

Explicitly ensure strings are of the correct types

Now that unicode_literals is in every file, some things that used to
be py2 `str`s were now `unicode` instead. This caused issues with
generated class / function names, which must be `str` in all versions of
Python. This means bytes in py2, and unicode in py3. A test also checked
for the incorrect type of SafeString. HTML content should always be
unicode, so this has been fixed.
2016-04-03 13:11:48 +03:00
Tim Heap
31972dfd9e Check imports with isort on drone 2016-03-11 10:47:59 +00:00
Karl Hobley
7a0b51c2d6 Use universal wheel files 2015-06-03 10:08:21 +01:00
Karl Hobley
7bbde20c95 Don't make universal wheel files
The wheel file for Python 2 and Python 3 need to be slightly different as unicodecsv cannot be a dependency when using Python 3 (issue #1295)
2015-05-20 10:56:56 +01:00
Karl Hobley
486565332e Add setup.cfg for python wheels
See http://pythonwheels.com/

We support both Python 2 and Python 3 so setting universal to 1 tells wheel to make one file for both
2015-05-20 10:44:47 +01:00