| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Also, [remove the __sudo__ tag per recommendation of Travis](https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration).
|
|
|
|
| |
Small update to the `ensure_str` function's documentation formatting to
match `ensure_binary` and `ensure_text`'s formatting.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
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
|
| |
|
|
|
|
| |
Fixes #259.
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
| |
Avoids the need for users to look this up by experimentation or code inspection.
|
|
|
|
|
| |
For details on the new PyPI, see the blog post:
https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
| |
Generated by setup.py when building packages.
|
|
|
|
| |
The wheel package format supports including the license file. This is
done using the [metadata] section in the setup.cfg file.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
Compatibility of Python getstatusoutput was broken in 3.3.4, so a simple
renaming indirection doesn't suffice. See #207.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
See:
https://bitbucket.org/pypa/wheel/src/54ddbcc9cec25e1f4d111a142b8bfaa163130a61/wheel/bdist_wheel.py?fileviewer=file-view-default#bdist_wheel.py-119:125
http://pythonwheels.com/
|
| |
|
|
|
|
|
|
| |
* Use distutils instead of setuptools to avoid dependency cycle.
* Change distutils requirement to fallback.
|
| |
|
| |
|
| |
|