summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Travis CI: Start testing on Python 3.6, 3.7, and nightly. (#275)cclauss2019-01-281-3/+5
| | | | Also, [remove the __sudo__ tag per recommendation of Travis](https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration).
* minor formatting fix to ensure_str documentation (#273)Lee Ball2019-01-191-1/+1
| | | | Small update to the `ensure_str` function's documentation formatting to match `ensure_binary` and `ensure_text`'s formatting.
* Document that binary_type is only necessary for Python 2.5 compat (#270)Jon Dufresne2019-01-011-1/+3
| | | | | | | | | | | | As documented in the Python 2.6 release notes: https://docs.python.org/2/whatsnew/2.6.html#pep-3112-byte-literals > For future compatibility, Python 2.6 adds bytes as a synonym for the > str type ... To encourage more forward compatible code bases, inform users of this builtin alias. This addition is similar in spirit to the note for the b() function.
* Remove distutils fallback and outdated comment (#269)Jon Dufresne2018-12-281-7/+1
| | | | | | | setuptools includes a vendored version of six (and other dependencies). They are not installed through traditional tools. Therefore, distutils is not required as a fallback to facilitate setuptools. https://github.com/pypa/setuptools/blob/v40.6.3/setuptools/_vendor/six.py
* six 1.12.01.12.0Benjamin Peterson2018-12-092-3/+3
|
* Add alts to all badges.Benjamin Peterson2018-12-031-0/+3
|
* Make indentation consistent.Benjamin Peterson2018-12-031-3/+3
|
* Add RtD badge.Benjamin Peterson2018-12-031-0/+4
|
* docs: reload() is in importlib in current Python 3. (#266)cclauss2018-11-261-1/+1
| | | The docs say that the Python 2 builtin __reload()__ was moved into the __imp__ module (which _used_ to be true) but in all currently supported versions of CPython, __reload()__ is found in the __importlib__ module: https://docs.python.org/3/library/importlib.html#importlib.reload
* Add changelog for a611f60dc73d9df64fd8ebcec1daf9f7827e29db.Benjamin Peterson2018-10-031-0/+3
|
* Make add_metaclass copy __qualname__ from the original class. (#260)E. M. Bray2018-10-032-0/+22
| | | | Fixes #259.
* Fix wording.Benjamin Peterson2018-10-031-1/+1
|
* Prefer https:// URLs where available. (#256)Jon Dufresne2018-09-171-3/+3
|
* Remove deprecated indexserver from tox.ini (GH-257)Jon Dufresne2018-09-171-4/+0
| | | | | | | https://tox.readthedocs.io/en/latest/config.html#confval-indexserver > DEPRECATED, will be removed in a future version Unnecessary anyway as all deps come from PyPI through pip.
* Be more precise about what six.class_types is. (#254)Jon Dufresne2018-09-111-2/+3
| | | Avoids the need for users to look this up by experimentation or code inspection.
* Update all pypi.python.org URLs to pypi.org (#238)Jon Dufresne2018-07-143-3/+3
| | | | | For details on the new PyPI, see the blog post: https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
* use old setuptools on 3.3, tooBenjamin Peterson2018-07-141-1/+1
|
* make the homepage GH (fixes #247)Benjamin Peterson2018-07-071-1/+1
|
* fix typo (#228)Jakub Wilk2018-02-261-1/+1
|
* use -m for invoking py.test (#226)Stanislav Levin2018-02-071-1/+1
| | | | | | | | Linux distributions provides py.test script on their own way for support python2 and python3 both together. For example py.test with python2 shebang or py.test with python3 one. Or scripts with another names, e.g. py.test - python2 shebang, py.test3 - python3 shebang. Therefore it is better to import module instead.
* documentation tweaksBenjamin Peterson2018-01-252-9/+9
|
* changelog updates for #204Benjamin Peterson2018-01-252-1/+8
|
* add ensure_binary/str/text helper functions (#204)Jingxin Zhu2018-01-253-0/+135
|
* bump copyright yearBenjamin Peterson2018-01-215-5/+5
|
* Pass python_requires argument to setuptools (#224)Jon Dufresne2018-01-211-1/+2
| | | | | | | | | | | | | | | | | | Helps pip decide what version of the library to install. https://packaging.python.org/tutorials/distributing-packages/#python-requires > If your project only runs on certain Python versions, setting the > python_requires argument to the appropriate PEP 440 version specifier > string will prevent pip from installing the project on other Python > versions. https://setuptools.readthedocs.io/en/latest/setuptools.html#new-and-changed-setup-keywords > python_requires > > A string corresponding to a version specifier (as defined in PEP 440) > for the Python version, used to specify the Requires-Python defined in > PEP 345.
* Document six as stable and ready for use in production (#223)Jon Dufresne2018-01-061-0/+1
|
* PyPi -> PyPI (#220)Mariatta2017-12-051-1/+1
|
* Ignore the build directory in gitignore (#215)Jon Dufresne2017-10-161-0/+1
| | | Generated by setup.py when building packages.
* Include license file in the generated wheel packages (#214)Jon Dufresne2017-10-151-0/+3
| | | | The wheel package format supports including the license file. This is done using the [metadata] section in the setup.cfg file.
* six 1.11.01.11.0Benjamin Peterson2017-09-172-3/+3
|
* add pypi secretBenjamin Peterson2017-09-171-1/+1
|
* also distribute sdistBenjamin Peterson2017-09-171-1/+1
|
* point to read the docsBenjamin Peterson2017-09-171-1/+1
|
* changelog for pr #178Benjamin Peterson2017-09-171-0/+3
|
* changelog for pr #191Benjamin Peterson2017-09-171-0/+3
|
* add test for metaclass subclassesBenjamin Peterson2017-09-171-0/+8
|
* Define __prepare__() in with_metaclass() (#178)Jordan Moldow2017-09-173-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | Define `__prepare__()` in `with_metaclass()`'s temporary metaclass, and make sure that it passes the correct bases to the real metaclass's `__prepare__()`. The temporary metaclass previously didn't extend the `__prepare__()` method, which meant that if the real metaclass had a `__prepare__()`, it wouldn't get called correctly. This could lead to bugs in Python 3 code. The temporary metaclass's `__prepare__()` gets called with ```bases=(temporary_class,)```. Since there was no proxy in the middle, that was getting passed directly to the real metaclass's `__prepare__()`. But then, if the real class's `__prepare__()` method depended on the bases, the logic would be incorrect. This was a problem in projects that use `enum` / `enum34` and try to use `with_metaclass(EnumMeta)`. `enum34.EnumMeta` doesn't define `__prepare__()`, since it is a Python 2 backport. Python 3's `enum.EnumMeta` does define `__prepare__()`, but originally didn't depend at all on the bases. But starting in Python 3.6, `enum.EnumMeta.__prepare__()` will raise `TypeError` if the bases aren't valid for an enum subclass. Thus, a codebase that was successfully using `enum` / `enum34` and `with_metaclass(EnumMeta)` could break on Python 3.6.
* Temporary metaclass should not inherit from "meta" (#191)jdemeyer2017-09-171-1/+1
|
* Add parse_http_list and parse_keqv_list to moved urllib.request (#203)Jason R. Coombs2017-09-163-0/+7
|
* remove moves.getstatusoutputBenjamin Peterson2017-08-274-11/+1
| | | | | Compatibility of Python getstatusoutput was broken in 3.3.4, so a simple renaming indirection doesn't suffice. See #207.
* Improve Travis CI config (#205)Sviatoslav Sydorenko2017-08-262-9/+49
| | | | | | | | | | | | | | * Improve Travis CI config - Add deployment of a package to PYPI for tagged commits running after all tests - Introduce testing against PYPY - Add pip packages caching - Print list of installed packages in case of failure * Switch to new officially supported PyPy install * Test against unstable Python versions
* Fix typo: intepreter -> interpreter (#206)delirious-lettuce2017-08-021-1/+1
|
* just use builtin next()Benjamin Peterson2017-06-281-1/+3
|
* add badges to readme (#200)Dmitry Tokarev2017-06-191-0/+9
|
* Rename [wheel] section to [bdist_wheel] as the former is legacy (#197)Jon Dufresne2017-05-201-2/+1
| | | | | | | See: https://bitbucket.org/pypa/wheel/src/54ddbcc9cec25e1f4d111a142b8bfaa163130a61/wheel/bdist_wheel.py?fileviewer=file-view-default#bdist_wheel.py-119:125 http://pythonwheels.com/
* Correct from "an" to "a". (#196)Shlomi Fish2017-05-041-1/+1
|
* Avoid dependency cycle by using distutils when setuptools isn't available (#184)Todd Gamblin2017-03-081-1/+7
| | | | | | * Use distutils instead of setuptools to avoid dependency cycle. * Change distutils requirement to fallback.
* document #172Benjamin Peterson2017-03-011-0/+2
|
* pytest -> tool:pytest in setup.cfgBenjamin Peterson2017-03-011-1/+1
|
* Add unquote_to_bytes to moved urllib.parse. Fixes #171. (#172)Jason R. Coombs2017-03-012-1/+2
|