pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-isort py-isort: updated to 4.3.6



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b9b56676b27c
branches:  trunk
changeset: 319985:b9b56676b27c
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Feb 25 09:00:35 2019 +0000

description:
py-isort: updated to 4.3.6

4.3.6:
- Fixes a fatal error that occurs if a single finder throws an exception. Important as we add more finders that utilize third party libraries.

4.3.5:
This is the final Python 2.x release of isort, and includes the following major changes:

Potentially Interface Breaking:
- The -r option for removing imports has been renamed -rm to avoid accidental deletions and confusion with the -rc recursive option.
- __init__.py has been removed from the default ignore list. The default ignore list is now empty - with all items needing to be explicitly ignored.
- Isort will now by default ignore .tox / venv folders in an effort to be "safe". You can disable this behaviour by setting the "--unsafe" flag, this is separate from any skip or not skip rules you 
may have in place.
- Isort now allows for files missing closing newlines in whitespace check
- distutils support has been removed to simplify setup.py

New:
- Official Python 3.7 Compatibility.
- Support for using requirements files to auto determine third-paty section if pipreqs & requirementslib are installed.
- Added support for using pyproject.toml if toml is installed.
- Added support for XDG_HOME if appdirs is installed.
- An option has been added to enable ignoring trailing comments ('ignore_comments') defaulting to False.
- Added support to enable line length sorting for only specific sections
- Added a correctly_sorted property on the SortsImport to enable more intuitive programmatic checking.

Fixes:
- Improved black compatibility.
- Isort will no detect files in the CWD as first-party.
- Fixed several cases where '-ns' or 'not_skip' was being incorrectly ignored.
- Fixed sorting of relative path imports ('.', '..', '...', etc).
- Fixed bugs caused by a failure to maintain order when loading iterables from config files.
- Correctly handle CPython compiled imports and others that need EXT_SUFFIX to correctly identify.
- Fixed handling of Symbolic Links to follow them when walking the path.
- Fixed handling of relative known_paths.
- Fixed lack of access to all wrap modes from the CLI.
- Fixed handling of FIFO files.
- Fixed a bug that could result in multiple imports being inserted on the same line.

diffstat:

 devel/py-isort/ALTERNATIVES           |   2 +-
 devel/py-isort/Makefile               |  10 +++++++---
 devel/py-isort/PLIST                  |  10 ++++++++--
 devel/py-isort/distinfo               |  11 +++++------
 devel/py-isort/patches/patch-setup.py |  15 ---------------
 5 files changed, 21 insertions(+), 27 deletions(-)

diffs (98 lines):

diff -r 6e07fb1e32b5 -r b9b56676b27c devel/py-isort/ALTERNATIVES
--- a/devel/py-isort/ALTERNATIVES       Mon Feb 25 08:49:48 2019 +0000
+++ b/devel/py-isort/ALTERNATIVES       Mon Feb 25 09:00:35 2019 +0000
@@ -1,1 +1,1 @@
-bin/isort @PREFIX@/bin/isort@PYVERSSUFFIX@
+bin/isort @PREFIX@/bin/isort-@PYVERSSUFFIX@
diff -r 6e07fb1e32b5 -r b9b56676b27c devel/py-isort/Makefile
--- a/devel/py-isort/Makefile   Mon Feb 25 08:49:48 2019 +0000
+++ b/devel/py-isort/Makefile   Mon Feb 25 09:00:35 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2018/02/14 09:26:17 adam Exp $
+# $NetBSD: Makefile,v 1.6 2019/02/25 09:00:35 adam Exp $
 
-DISTNAME=      isort-4.3.4
+DISTNAME=      isort-4.3.6
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=i/isort/}
@@ -12,11 +12,15 @@
 
 .include "../../lang/python/pyversion.mk"
 
-.if "${PYPKGPREFIX}" == "py27"
+.if ${_PYTHON_VERSION} == 27
 DEPENDS+=      ${PYPKGPREFIX}-futures-[0-9]*:../../devel/py-futures
 .endif
 
 USE_LANGUAGES= # none
 
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} isort isort-${PYVERSSUFFIX} || ${TRUE}
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 6e07fb1e32b5 -r b9b56676b27c devel/py-isort/PLIST
--- a/devel/py-isort/PLIST      Mon Feb 25 08:49:48 2019 +0000
+++ b/devel/py-isort/PLIST      Mon Feb 25 09:00:35 2019 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.3 2018/02/02 11:51:07 adam Exp $
-bin/isort${PYVERSSUFFIX}
+@comment $NetBSD: PLIST,v 1.4 2019/02/25 09:00:35 adam Exp $
+bin/isort-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -12,6 +12,9 @@
 ${PYSITELIB}/isort/__main__.py
 ${PYSITELIB}/isort/__main__.pyc
 ${PYSITELIB}/isort/__main__.pyo
+${PYSITELIB}/isort/finders.py
+${PYSITELIB}/isort/finders.pyc
+${PYSITELIB}/isort/finders.pyo
 ${PYSITELIB}/isort/hooks.py
 ${PYSITELIB}/isort/hooks.pyc
 ${PYSITELIB}/isort/hooks.pyo
@@ -33,3 +36,6 @@
 ${PYSITELIB}/isort/settings.py
 ${PYSITELIB}/isort/settings.pyc
 ${PYSITELIB}/isort/settings.pyo
+${PYSITELIB}/isort/utils.py
+${PYSITELIB}/isort/utils.pyc
+${PYSITELIB}/isort/utils.pyo
diff -r 6e07fb1e32b5 -r b9b56676b27c devel/py-isort/distinfo
--- a/devel/py-isort/distinfo   Mon Feb 25 08:49:48 2019 +0000
+++ b/devel/py-isort/distinfo   Mon Feb 25 09:00:35 2019 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.5 2018/02/14 09:26:17 adam Exp $
+$NetBSD: distinfo,v 1.6 2019/02/25 09:00:35 adam Exp $
 
-SHA1 (isort-4.3.4.tar.gz) = 1964e216b60df1bc71db170089ed565011dcd133
-RMD160 (isort-4.3.4.tar.gz) = 48e3caab73e2830bd3ac2c6ebe139e5527018057
-SHA512 (isort-4.3.4.tar.gz) = ffe679b96223f5f41d14c61051a875233857f7ccab33211c195ed62b85cc1e9bef0af67f9960e94322fff216c1bfaaa583fbd2ef20e258f90a184a25d011213a
-Size (isort-4.3.4.tar.gz) = 56070 bytes
-SHA1 (patch-setup.py) = 2d658729d243ecf5c6e5af13f14f7fda009e322a
+SHA1 (isort-4.3.6.tar.gz) = 861a8edda6cae5604873811f8f51e08eb30efcbd
+RMD160 (isort-4.3.6.tar.gz) = 30b06806328669c6643475aafd50f49d2de09311
+SHA512 (isort-4.3.6.tar.gz) = 364f1781d247c81fe2ea4be998ccd9c26a6fcc8c70714b06878df8404e1c2a4493a7d156281148de2ff528c9dce793874b3ef518587eebb1e8fe617f0c711742
+Size (isort-4.3.6.tar.gz) = 61820 bytes
diff -r 6e07fb1e32b5 -r b9b56676b27c devel/py-isort/patches/patch-setup.py
--- a/devel/py-isort/patches/patch-setup.py     Mon Feb 25 08:49:48 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-setup.py,v 1.1 2017/02/28 20:54:09 fhajny Exp $
-
-Use PYVERSSUFFIX with scripts.
-
---- setup.py.orig      2016-03-30 11:08:25.000000000 +0000
-+++ setup.py
-@@ -49,7 +49,7 @@ setup(name='isort',
-       license="MIT",
-       entry_points={
-         'console_scripts': [
--            'isort = isort.main:main',
-+            'isort' + sys.version[0:3] + ' = isort.main:main',
-         ],
-         'distutils.commands': ['isort = isort.main:ISortCommand'],
-         'pylama.linter': ['isort = isort.pylama_isort:Linter'],



Home | Main Index | Thread Index | Old Index