| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
to correct test directory
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use Black, the uncompromising Python code formatter, to format the
project and simplify contributions. Contributors no longer need to think
or care about the project's preferred style, just let the tools handle
it instead.
Black is becoming more and more popular across Python projects and has
recently became a project under the Python Software Foundation.
This is especially important with the adoption of mypy as type
annotations create another obstacle or consideration in code formatting,
but Black handles this just fine.
Many projects use both Black and isort. Using Black internally also
helps ensure continued compatibility between the two popular projects.
For more details on Black, see:
https://github.com/psf/black
> Black is the uncompromising Python code formatter. By using it, you
> agree to cede control over minutiae of hand-formatting. In return,
> Black gives you speed, determinism, and freedom from pycodestyle
> nagging about formatting. You will save time and mental energy for
> more important matters.
|
| |
|
|
|
|
|
| |
Warns when a function that normally returns a value doesn't. Fixed all
cases discovered by the tool.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Starting with wheel 0.32.0 (2018-09-29), the "license_file" option is
deprecated.
https://wheel.readthedocs.io/en/stable/news.html
The wheel will continue to include LICENSE, it is now included
automatically:
https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file
|
|
|
|
|
|
|
|
|
| |
Discovered a typing bug where a Path object was passed to
os.path.relpath(), but Path support was not added until Python 3.6.
https://docs.python.org/3/library/os.path.html#os.path.relpath
> Changed in version 3.6: Accepts a path-like object.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
- add coverage factor to tox
- report coverage to codecov.io
- configure testpaths for pytest, instead of passing it through tox
command
|
| |
|
|\ |
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As isort is primarily used as a command-line tool, it is in a good
position to move to Python 3 only. Other command-line-only tools have
begun moving to Python 3. For example: black, mypy, pylint, and Sphinx.
It will continue to support formatting Python 2 code, so users can still
format their Python 2 projects.
Allows for many code cleanups. By removing these workarounds, the
project will be easier to maintain and reduce testing resources.
Python 2 is scheduled to be EOL on January 1, 2020. The Python community
is moving on.
https://www.python.org/dev/peps/pep-0373/
For reasons to drop Python 2 support, see:
https://python3statement.org/
For an overview of projects that have dropped Python 2 support entirely,
see:
https://hugovk.github.io/drop-python/2.7/
Fixes #808
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The "futures" package need only be installed on Python 2. To specify a
conditional dependency, setuptools, pip, and wheel support "environment
markers". Use this mechanism instead of adding install time logic to the
setup.py file.
Allows restoring universal wheel support, allowing a single wheel for
all version of Python.
For additional details on wheel support for environment markers, see the
documentation at:
https://wheel.readthedocs.io/en/stable/index.html#defining-conditional-dependencies
> Defining conditional dependencies
>
> In wheel, the only way to have conditional dependencies (that might
> only be needed on certain platforms) is to use environment markers as
> defined by PEP 426.
>
> ...
>
> As of setuptools 36.2.1, you can pass extras as part of
> install_requires. The above requirements could thus be written like
> this:
>
> install_requires=[
> 'argparse; python_version=="2.6"',
> 'keyring; extra=="signatures"',
> 'pyxdg; extra=="signatures" and sys_platform!="win32"',
> 'ed25519ll; extra=="faster-signatures"'
> ]
|
| |
|
|
|
|
|
|
|
|
| |
The wheel package format supports including the license file. This is
done 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
|
|
|
|
|
|
|
|
|
| |
Enables more of flake8's default rules and makes CI check all files,
not just a subset. Also pins the version of flake8 to avoid CI
non-determinism when newer versions add/adjust the default rules.
The `# noqa: F401` entries in `pie_slice.py` are required due to:
https://github.com/PyCQA/pyflakes/issues/276
|
|
|
|
| |
[wheel] is legacy, [bdist_wheel] is the future. See https://bitbucket.org/pypa/wheel/src/4da780b849affbff98a0defb21ad1f30a94d6f57/wheel/bdist_wheel.py?at=default&fileviewer=file-view-default#bdist_wheel.py-119
|
| |
|
|
|