SHA256
1
0
forked from pool/python-isort

137 Commits

Author SHA256 Message Date
a6d2790d0f Accepting request 1323247 from devel:languages:python
- Update to 7.0.0:
  * Breaking Changes
    + Drop support for Python 3.9 (#2430) @DanielNoord
  * Features
    + Show absolute paths in skipped file messages (#2416) @pranlawate
  * Fixes
    + Drop use of non-standard pkg_resources API (#2405) @dvarrazzo
    + Use working isort version in pre-commit example (#2402) @iainelder
    + fix typo in _get_files_from_dir_cached test (#2392) @tiltingpenguin
    + Resolve bandit warnings (#2379) @kurtmckee
    + Some fixes for Python 3.14 (#2433) @DanielNoord
    + Test on 3.14 and fix any bugs (#2425) @DanielNoord
    + Update CHANGELOG.md + Fix Formatting and Grammar (#2419) @lukbrew25
    + Fix output of hanging indent for long lines with noqa (#2407)
- Drop patch fix-typo.patch, merged upstream.

OBS-URL: https://build.opensuse.org/request/show/1323247
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=49
2025-12-17 16:38:03 +00:00
3dced7c567 - Update to 7.0.0:
* Breaking Changes
    + Drop support for Python 3.9 (#2430) @DanielNoord
  * Features
    + Show absolute paths in skipped file messages (#2416) @pranlawate
  * Fixes
    + Drop use of non-standard pkg_resources API (#2405) @dvarrazzo
    + Use working isort version in pre-commit example (#2402) @iainelder
    + fix typo in _get_files_from_dir_cached test (#2392) @tiltingpenguin
    + Resolve bandit warnings (#2379) @kurtmckee
    + Some fixes for Python 3.14 (#2433) @DanielNoord
    + Test on 3.14 and fix any bugs (#2425) @DanielNoord
    + Update CHANGELOG.md + Fix Formatting and Grammar (#2419) @lukbrew25
    + Fix output of hanging indent for long lines with noqa (#2407)
- Drop patch fix-typo.patch, merged upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=129
2025-12-17 03:58:55 +00:00
b0155a41c8 Accepting request 1291702 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291702
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=48
2025-07-10 20:13:57 +00:00
a0705cdd0b ... and group alts
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=127
2025-07-10 13:28:12 +00:00
a5ba4d8461 fix after spec-cleaner
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=126
2025-07-10 13:26:30 +00:00
53548581e1 - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=125
2025-07-10 13:24:47 +00:00
5ab9285979 Accepting request 1273976 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1273976
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=47
2025-05-02 13:01:05 +00:00
2d2761fe58 - Raise suse_version to disable pymama tests to <= 1600
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=123
2025-05-02 09:34:05 +00:00
8e320f4883 Accepting request 1267733 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1267733
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=46
2025-04-07 16:56:01 +00:00
349ac22339 - Update to 6.0.1
- Update to 6.0.0
- drop support-pytest-8.patch, merged upstream
- change source url back to pypi, tests are now included
- update build-requirements
- add fix-typo.patch to fix tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=121
2025-04-07 16:12:39 +00:00
4f4540169d Accepting request 1218037 from devel:languages:python
- Remove not needed build dependencies

OBS-URL: https://build.opensuse.org/request/show/1218037
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=45
2024-10-24 13:45:02 +00:00
fc9d94cbe2 - Remove not needed build dependencies
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=119
2024-10-24 11:57:01 +00:00
677959a307 Accepting request 1197676 from devel:languages:python
- Add patch support-pytest-8.patch:
  * Do not use the anti-pattern of pytest.warns(None).

OBS-URL: https://build.opensuse.org/request/show/1197676
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=44
2024-08-30 11:32:42 +00:00
0a284ff1c1 Accepting request 1152081 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1152081
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=43
2024-02-27 21:48:45 +00:00
8483a72c7d Accepting request 1152080 from home:bnavigator:branches:devel:languages:python
- Disable black output test: gh#PyCQA/isort#2233

OBS-URL: https://build.opensuse.org/request/show/1152080
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=115
2024-02-27 09:15:19 +00:00
2e17a83918 Accepting request 1140773 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1140773
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=42
2024-01-23 21:56:19 +00:00
857e5d3d8d Accepting request 1140766 from home:alarrosa:branches:devel:languages:python
- Disable pylama tests in SLE since pylama adds too many
  dependencies.

OBS-URL: https://build.opensuse.org/request/show/1140766
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=113
2024-01-23 07:17:16 +00:00
6cd4788ead Accepting request 1133685 from devel:languages:python
- update to 5.13.2:
  * Apply the bracket fix from issue #471 only for
    use_parentheses=True
  * Confine pre-commit to stages
  * Fixed colors extras
  * Fixed integration tests
  * Fixed normalizing imports from more than one level of parent
    modules
  * Remove optional dependencies without extras
  * Cleanup deprecated extras
  * Fixed #1989: settings lookup when working in stream based
    mode
  * Fixed 80 line length for wemake linter
  * Add support for Python 3.12
  * Fixed assertions in test_git_hook
  * Removed check for include_trailing_comma for the Hanging
    Indent wrap mode
  * Use the standard library tomllib on sufficiently new python
  * Fixed safety sept 2023
  * chore: move configurations to pyproject.toml (#2115)
  * Fixed typo in README
  * Update version in pre-commit setup to avoid installation
    issue with poetry
  * Skip .pytype directory by default.
  * Fixed a tip block styling in the Config Files section (#2097)

  * Fixed #1556: Empty line added between imports that should be
  * Improved packaging of test files alongside source distribution
  * Fixed #1548: On rare occasions an unecessary empty line can be
  * Fixed #1542: Bug in VERTICAL_PREFIX_FROM_MODULE_IMPORT wrap

OBS-URL: https://build.opensuse.org/request/show/1133685
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=41
2023-12-17 20:33:19 +00:00
02c9ad66ff - update to 5.13.2:
* Apply the bracket fix from issue #471 only for
    use_parentheses=True
  * Confine pre-commit to stages
  * Fixed colors extras
  * Fixed integration tests
  * Fixed normalizing imports from more than one level of parent
    modules
  * Remove optional dependencies without extras
  * Cleanup deprecated extras
  * Fixed #1989: settings lookup when working in stream based
    mode
  * Fixed 80 line length for wemake linter
  * Add support for Python 3.12
  * Fixed assertions in test_git_hook
  * Removed check for include_trailing_comma for the Hanging
    Indent wrap mode
  * Use the standard library tomllib on sufficiently new python
  * Fixed safety sept 2023
  * chore: move configurations to pyproject.toml (#2115)
  * Fixed typo in README
  * Update version in pre-commit setup to avoid installation
    issue with poetry
  * Skip .pytype directory by default.
  * Fixed a tip block styling in the Config Files section (#2097)
  * Fixed #1556: Empty line added between imports that should be
  * Improved packaging of test files alongside source distribution
  * Fixed #1548: On rare occasions an unecessary empty line can be
  * Fixed #1542: Bug in VERTICAL_PREFIX_FROM_MODULE_IMPORT wrap
  * Goal Zero: (Tickets related to aspirational goal of achieving 0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=111
2023-12-17 02:11:43 +00:00
97d5232974 Accepting request 1108059 from devel:languages:python
- Skip failing test with hypothesis gh#PyCQA/isort#2171 (forwarded request 1108058 from bnavigator)

OBS-URL: https://build.opensuse.org/request/show/1108059
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=40
2023-08-31 11:45:38 +00:00
fabc13f91e Accepting request 1108058 from home:bnavigator:branches:devel:languages:python
- Skip failing test with hypothesis gh#PyCQA/isort#2171

OBS-URL: https://build.opensuse.org/request/show/1108058
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=109
2023-08-30 08:23:34 +00:00
6649c48596 Accepting request 1085634 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1085634
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=39
2023-05-09 11:09:08 +00:00
16ba63d623 Accepting request 1085600 from home:ojkastl_buildservice:Branch_devel_languages_python
add sle15_python_module_pythons

OBS-URL: https://build.opensuse.org/request/show/1085600
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=107
2023-05-09 06:41:59 +00:00
bd34a66d56 Accepting request 1083099 from devel:languages:python
- Update to 5.12.0
  * Add the ability to restrict which directories isort works
    against (#1967) @vkomarov-r7
  * updated format strings to fstrings (#2076) @marksmayo
  * Simplify typeshed integration test (#2075) @AlexWaygood
  * Fix re-export sorter (#2065) @parafoxia
  * Removal Python 3.7 (#2064) @staticdev
  * Added test case and fix for cython pure python import (#2063)
    @jtoledo1974 (forwarded request 1083098 from bnavigator)

OBS-URL: https://build.opensuse.org/request/show/1083099
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=38
2023-04-27 18:00:58 +00:00
4dc8f95f1c Accepting request 1083098 from home:bnavigator:branches:devel:languages:python
- Update to 5.12.0
  * Add the ability to restrict which directories isort works
    against (#1967) @vkomarov-r7
  * updated format strings to fstrings (#2076) @marksmayo
  * Simplify typeshed integration test (#2075) @AlexWaygood
  * Fix re-export sorter (#2065) @parafoxia
  * Removal Python 3.7 (#2064) @staticdev
  * Added test case and fix for cython pure python import (#2063)
    @jtoledo1974

OBS-URL: https://build.opensuse.org/request/show/1083098
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=105
2023-04-26 19:47:15 +00:00
ea342b79d6 Accepting request 1059601 from devel:languages:python
- Update to 5.11.4
  * No user relevant changes
- Release 5.11.3
  * Renable portray (#2043) @timothycrosley
  * Fix packaging pypoetry (#2042) @staticdev
  * Fix settings for py3.11 (#2040) @staticdev
- Release 5.11.2
  * Hotfix for --version. (#2035) @felixxm
- Release 5.11.1
  * Only call colorama.init if colorama is available (#2032)
    @tomaarsen
- Release 5.11.0
  * Add support to Python 3.11 support (#2024) @staticdev
  * Remove support to Python 3.6 (#2020) @barrelful
  * Fix Rich compatibility (#1961) @ofek
  * Add magic trailing comma option (#1876) @legau
  * Add missing space in unrecoverable exception message (#1933)
    @andersk
  * skip-gitignore: use allow list, not deny list (#1900)
    @bmalehorn
  * Infinite loop for unmatched parenthesis (#1919) @anirudnits
  * Split long cython import lines (#1931) @davidcollins001
  * Update plone profile: copy of black, plus three settings.
    (#1926) @mauritsvanrees
  * Add a command-line flag to sort all re-exports (#1862) (#1863)
    @parafoxia
  * Fix lines_before_imports appending lines after comments (#1861)
    @legau
  * Remove redundant multi_line_output = 3 from "Compatibility with
    black" (#1858) @jdufresne (forwarded request 1059600 from bnavigator)

OBS-URL: https://build.opensuse.org/request/show/1059601
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=37
2023-01-19 15:44:33 +00:00
9dbaabf48c Accepting request 1059600 from home:bnavigator:branches:devel:languages:python
- Update to 5.11.4
  * No user relevant changes
- Release 5.11.3
  * Renable portray (#2043) @timothycrosley
  * Fix packaging pypoetry (#2042) @staticdev
  * Fix settings for py3.11 (#2040) @staticdev
- Release 5.11.2
  * Hotfix for --version. (#2035) @felixxm
- Release 5.11.1
  * Only call colorama.init if colorama is available (#2032)
    @tomaarsen
- Release 5.11.0
  * Add support to Python 3.11 support (#2024) @staticdev
  * Remove support to Python 3.6 (#2020) @barrelful
  * Fix Rich compatibility (#1961) @ofek
  * Add magic trailing comma option (#1876) @legau
  * Add missing space in unrecoverable exception message (#1933)
    @andersk
  * skip-gitignore: use allow list, not deny list (#1900)
    @bmalehorn
  * Infinite loop for unmatched parenthesis (#1919) @anirudnits
  * Split long cython import lines (#1931) @davidcollins001
  * Update plone profile: copy of black, plus three settings.
    (#1926) @mauritsvanrees
  * Add a command-line flag to sort all re-exports (#1862) (#1863)
    @parafoxia
  * Fix lines_before_imports appending lines after comments (#1861)
    @legau
  * Remove redundant multi_line_output = 3 from "Compatibility with
    black" (#1858) @jdufresne

OBS-URL: https://build.opensuse.org/request/show/1059600
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=103
2023-01-19 13:41:32 +00:00
44a2fb17db Accepting request 999112 from devel:languages:python
- Revert removal of pylama tests, we drop out of Ring1 instead

OBS-URL: https://build.opensuse.org/request/show/999112
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=36
2022-08-25 13:09:19 +00:00
574e39555b OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=101 2022-08-19 09:44:57 +00:00
d618ed2adb OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=100 2022-08-19 09:43:52 +00:00
3db7aca33f Accepting request 994358 from devel:languages:python
- remove unnecessary pylama buildrequires

OBS-URL: https://build.opensuse.org/request/show/994358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=35
2022-08-12 15:46:15 +00:00
d799dc108b .
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=98
2022-08-10 15:09:31 +00:00
a6eb6f18ec remove pylama test import
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=97
2022-08-10 15:09:00 +00:00
6cb1b0e192 osc copypac from project:openSUSE:Factory package:python-isort revision:34, using keep-link, using expand
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=96
2022-08-10 14:46:26 +00:00
774f2a0c4b ignore pylaman tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=95
2022-08-10 14:45:07 +00:00
17a0d14a63 - remove unnecessary pylama buildrequires
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=94
2022-08-10 14:37:09 +00:00
7e4644a35b Accepting request 965465 from devel:languages:python
- Tests require toml explicitly. Not pulled in anymore
  automatically since many packages (setuptools_scm, pytest, ...)
  switch to tomli. (forwarded request 965464 from bnavigator)

OBS-URL: https://build.opensuse.org/request/show/965465
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=34
2022-04-02 16:20:05 +00:00
2a2855e643 Accepting request 965464 from home:bnavigator:branches:devel:languages:python
- Tests require toml explicitly. Not pulled in anymore
  automatically since many packages (setuptools_scm, pytest, ...)
  switch to tomli.

OBS-URL: https://build.opensuse.org/request/show/965464
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=92
2022-03-28 17:59:31 +00:00
21d3504b60 Accepting request 946838 from devel:languages:python
- Unpin black for example project (forwarded request 946837 from bnavigator)

OBS-URL: https://build.opensuse.org/request/show/946838
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=33
2022-01-19 23:11:55 +00:00
11ffa02d06 Accepting request 946837 from home:bnavigator:branches:devel:languages:python
- Unpin black for example project

OBS-URL: https://build.opensuse.org/request/show/946837
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=91
2022-01-16 20:00:53 +00:00
230bc418b8 Accepting request 942830 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/942830
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=32
2021-12-28 11:26:15 +00:00
7d10f9f672 Accepting request 942829 from home:bnavigator:branches:devel:languages:python
- Unpin natsort for example project

OBS-URL: https://build.opensuse.org/request/show/942829
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=90
2021-12-27 17:58:34 +00:00
7f821f2b29 Accepting request 942268 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/942268
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=31
2021-12-24 19:23:02 +00:00
700adb2394 Accepting request 942267 from home:bnavigator:branches:devel:languages:python
- Remove hypothesis-auto test requirement. It is actually not used
  anymore.

OBS-URL: https://build.opensuse.org/request/show/942267
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=89
2021-12-23 18:08:56 +00:00
84f7ded599 Accepting request 941539 from devel:languages:python
- Skip deprecated requirementslib for all flavors
- Skip the requirementslib tests on python310 too

OBS-URL: https://build.opensuse.org/request/show/941539
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=30
2021-12-22 19:17:40 +00:00
4b602977a4 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=88 2021-12-19 20:19:59 +00:00
fecedaab51 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=87 2021-12-19 20:18:00 +00:00
729fb80108 - Skip the requirementslib tests on python310 too
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=86
2021-12-19 18:10:33 +00:00
34b2b21e41 Accepting request 932831 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/932831
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=29
2021-11-23 21:10:20 +00:00
b5fef4efae - update to version 5.10.1:
- Fixed #1819: Occasional inconsistency with multiple src paths.
    - Fixed #1840: skip_file ignored when on the first docstring line
- update to version 5.10.0:
    - Implemented #1796: Switch to `tomli` for pyproject.toml configuration loader.
    - Fixed #1801: CLI bug (--exend-skip-glob, overrides instead of extending).
    - Fixed #1802: respect PATH customization in nested calls to git.
    - Fixed #1838: Append only with certain code snippets incorrectly adds imports.
    - Added official support for Python 3.10
 - Potentially breaking changes:
    - Fixed #1785: `_ast` module incorrectly excluded from stdlib definition.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=85
2021-11-14 21:10:09 +00:00
9deeb853b4 Accepting request 928403 from devel:languages:python
- Use custom hypothesis profile obs in order to suppress failing
  health checks (forwarded request 928402 from bnavigator)

OBS-URL: https://build.opensuse.org/request/show/928403
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=28
2021-11-03 16:25:17 +00:00
b338b31734 Accepting request 928402 from home:bnavigator:branches:devel:languages:python
- Use custom hypothesis profile obs in order to suppress failing
  health checks

OBS-URL: https://build.opensuse.org/request/show/928402
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=84
2021-10-31 16:51:27 +00:00
Richard Brown
77da3fc842 Accepting request 910472 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/910472
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=27
2021-08-11 09:47:05 +00:00
1da55503b3 - update to version 5.9.3:
- Improved text of skipped file message to mention gitignore feature.
    - Made all exceptions pickleable.
    - Fixed #1779: Pylama integration ignores pylama specific isort config overrides.
    - Fixed #1781: `--from-first` CLI flag shouldn't take any arguments.
    - Fixed #1792: Sorting literals sometimes ignored when placed on first few lines of file.
    - Fixed #1777: extend_skip is not honored wit a git submodule when skip_gitignore=true.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=83
2021-07-30 08:32:28 +00:00
841e2c27bb Accepting request 905345 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/905345
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=26
2021-07-13 20:36:54 +00:00
3d35bd956a Accepting request 905112 from home:bnavigator:branches:devel:languages:python
-  update to version 5.9.2
  * Improved behavior of isort --check --atomic against Cython
    files.
  * Fixed #1769: Future imports added below assignments when no
    other imports present.
  * Fixed #1772: skip-gitignore will check files not in the git
    repository.
  * Fixed #1762: in some cases when skip-gitignore is set, isort
    fails to skip any files.
  * Fixed #1767: Encoding issues surfacing when invalid characters
    set in __init__.py files during placement.
  * Fixed #1771: Improved handling of skips against named streamed
    in content.
- Skip benchmarks
- Update test requirements:
  * test expects example_isort_sorting_plugin with python-natsort
    installed
  * Python 3.9 tests fail without numpy installed because of some
    typing check.

OBS-URL: https://build.opensuse.org/request/show/905112
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=82
2021-07-09 19:51:00 +00:00
f217ee73e4 remove file, got in with pull
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=81
2021-07-04 19:19:10 +00:00
0b7bb02c6e - update to version 5.9.1:
- Fixed #1758: projects with many files and skip_ignore set can lead to a command-line overload.
- update to version 5.9.0:
    - Improved CLI startup time.
    - Implemented #1697: Provisional support for PEP 582: skip `__pypackages__` directories by default.
    - Implemented #1705: More intuitive handling of isort:skip_file comments on streams.
    - Implemented #1737: Support for using action comments to avoid adding imports to individual files.
    - Implemented #1750: Ability to customize output format lines.
    - Implemented #1732: Support for custom sort functions.
    - Implemented #1722: Improved behavior for running isort in atomic mode over Cython source files.
    - Fixed (https://github.com/PyCQA/isort/pull/1695): added imports being added to doc string in some cases.
    - Fixed (https://github.com/PyCQA/isort/pull/1714): in rare cases line continuation combined with tabs can output invalid code.
    - Fixed (https://github.com/PyCQA/isort/pull/1726): isort ignores reverse_sort when force_sort_within_sections is true.
    - Fixed #1741: comments in hanging indent modes can lead to invalid code.
    - Fixed #1744: repeat noqa comments dropped when * import and non * imports exist from the same package.
    - Fixed #1721: repeat noqa comments on separate from lines with force-single-line set, sometimes get dropped.
 - Goal Zero (Tickets related to aspirational goal of achieving 0 regressions for remaining 5.0.0 lifespan):
    - Implemented #1394: 100% branch coverage (in addition to line coverage) enforced.
    - Implemented #1751: Strict typing enforcement (turned on mypy strict mode).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=80
2021-07-04 19:18:19 +00:00
046bd0ce62 Accepting request 880607 from devel:languages:python
- Don't test requirementslib on python39. Isort calls it a
  "deprecated finder" anyway. Colorama needs to be pulled in
  seperately then. gh#sarugaku/requirementslib#288
- Update to version 5.8.0
  * Fixed #1631: as import comments can in some cases be
    duplicated.
  * Fixed #1667: extra newline added with float-to-top, after
    skip, in some cases.
  * Fixed #1594: incorrect placement of noqa comments with
    multiple from imports.
  * Fixed #1566: in some cases different length limits for dos
    based line endings.
  * Implemented #1648: Export MyPY type hints.
  * Implemented #1641: Identified import statements now return
    runnable code.
  * Implemented #1661: Added "wemake" profile.
  * Implemented #1669: Parallel (-j) now defaults to number of CPU
    cores if no value is provided.
  * Implemented #1668: Added a safeguard against accidental usage
    against /.
  * Implemented #1638 / #1644: Provide a flag --overwrite-in-place
    to ensure same file handle is used after sorting.
  * Implemented #1684: Added support for extending skips with
    --extend-skip and --extend-skip-glob.
  * Implemented #1688: Auto identification and skipping of some
    invalid import statements.
  * Implemented #1645: Ability to reverse the import sorting order.
  * Implemented #1504: Added ability to push star imports to the
    top to avoid overriding explicitly defined imports.
  * Documented #1685: Skip doesn't support plain directory names,
    but skip_glob does.

OBS-URL: https://build.opensuse.org/request/show/880607
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=25
2021-03-24 15:10:54 +00:00
266c5c74b3 Accepting request 880603 from home:bnavigator:branches:devel:languages:python
- Don't test requirementslib on python39. Isort calls it a
  "deprecated finder" anyway. Colorama needs to be pulled in
  seperately then. gh#sarugaku/requirementslib#288

OBS-URL: https://build.opensuse.org/request/show/880603
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=78
2021-03-22 21:34:44 +00:00
6c4930b348 Accepting request 880409 from home:bnavigator:branches:devel:languages:python
- Update to version 5.8.0
  * Fixed #1631: as import comments can in some cases be
    duplicated.
  * Fixed #1667: extra newline added with float-to-top, after
    skip, in some cases.
  * Fixed #1594: incorrect placement of noqa comments with
    multiple from imports.
  * Fixed #1566: in some cases different length limits for dos
    based line endings.
  * Implemented #1648: Export MyPY type hints.
  * Implemented #1641: Identified import statements now return
    runnable code.
  * Implemented #1661: Added "wemake" profile.
  * Implemented #1669: Parallel (-j) now defaults to number of CPU
    cores if no value is provided.
  * Implemented #1668: Added a safeguard against accidental usage
    against /.
  * Implemented #1638 / #1644: Provide a flag --overwrite-in-place
    to ensure same file handle is used after sorting.
  * Implemented #1684: Added support for extending skips with
    --extend-skip and --extend-skip-glob.
  * Implemented #1688: Auto identification and skipping of some
    invalid import statements.
  * Implemented #1645: Ability to reverse the import sorting order.
  * Implemented #1504: Added ability to push star imports to the
    top to avoid overriding explicitly defined imports.
  * Documented #1685: Skip doesn't support plain directory names,
    but skip_glob does.

OBS-URL: https://build.opensuse.org/request/show/880409
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=77
2021-03-21 19:44:10 +00:00
c3f5a885f0 Accepting request 867793 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/867793
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=24
2021-02-02 13:24:24 +00:00
b7f382688e Accepting request 867792 from home:bnavigator:branches:devel:languages:python
- Fix test suite: the location of the built wheel changed

OBS-URL: https://build.opensuse.org/request/show/867792
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=75
2021-01-29 20:15:50 +00:00
3363b6ab37 Accepting request 865874 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/865874
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=23
2021-01-27 17:56:58 +00:00
28eb1bd06d Accepting request 865867 from home:etamPL:branches:devel:languages:python
Don't recommend python-hypothesmith.

It's not used anywhere, beside internal tests.

Also hypothesmith pulls hypothesis, which recommends a ton of other packages. In the end if you want to install a simple pylint (which requires isort), you get recommended pandas, Django and QtPy.

OBS-URL: https://build.opensuse.org/request/show/865867
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=73
2021-01-22 09:10:35 +00:00
f448569b11 Accepting request 859773 from devel:languages:python
- Update to Version 5.7.0
  * Fixed #1612: In rare circumstances an extra comma is added
    after import and before comment.
  * Fixed #1593: isort encounters bug in Python 3.6.0.
  * Implemented #1596: Provide ways for extension formatting and
    file paths to be specified when using streaming input from CLI.
  * Implemented #1583: Ability to output and diff within a single
    API call to isort.file.
  * Implemented #1562, #1592 & #1593: Better more useful fatal
    error messages.
  * Implemented #1575: Support for automatically fixing mixed
    indentation of import sections.
  * Implemented #1582: Added a CLI option for skipping symlinks.
  * Implemented #1603: Support for disabling float_to_top from the
    command line.
  * Implemented #1604: Allow toggling section comments on and off
    for indented import sections.

OBS-URL: https://build.opensuse.org/request/show/859773
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=22
2021-01-04 18:06:23 +00:00
6dcda2c6ed Accepting request 859770 from home:bnavigator:branches:devel:languages:python
- Update to Version 5.7.0
  * Fixed #1612: In rare circumstances an extra comma is added
    after import and before comment.
  * Fixed #1593: isort encounters bug in Python 3.6.0.
  * Implemented #1596: Provide ways for extension formatting and
    file paths to be specified when using streaming input from CLI.
  * Implemented #1583: Ability to output and diff within a single
    API call to isort.file.
  * Implemented #1562, #1592 & #1593: Better more useful fatal
    error messages.
  * Implemented #1575: Support for automatically fixing mixed
    indentation of import sections.
  * Implemented #1582: Added a CLI option for skipping symlinks.
  * Implemented #1603: Support for disabling float_to_top from the
    command line.
  * Implemented #1604: Allow toggling section comments on and off
    for indented import sections.

OBS-URL: https://build.opensuse.org/request/show/859770
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=71
2021-01-02 00:22:56 +00:00
f3ce8b5c0c Accepting request 855002 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/855002
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=21
2020-12-16 09:59:04 +00:00
1395ae55ad Accepting request 855001 from home:bnavigator:branches:devel:languages:python
- Fix setup of test environment suitable for multiple
  python flavors gh#openSUSE/python-rpm-macros#66

OBS-URL: https://build.opensuse.org/request/show/855001
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=69
2020-12-11 23:42:57 +00:00
1609702f0b Accepting request 841728 from devel:languages:python
- Update to Version 5.6.4
  * Fixed #1556: Empty line added between imports that should be 
    skipped.
- Version 5.6.3
  * Improved packaging of test files alongside source distribution 
    (see: https://github.com/PyCQA/isort/pull/1555).
- Version 5.6.2
  * Fixed #1548: On rare occasions an unecessary empty line can be 
    added when an import is marked as skipped.
  * Fixed #1542: Bug in VERTICAL_PREFIX_FROM_MODULE_IMPORT wrap 
    mode.
  * Fixed #1552: Pylama test dependent on source layout.
  * Goal Zero: (Tickets related to aspirational goal of achieving 0 
    regressions for remaining 5.0.0 lifespan):
  * Zope added to integration test suite
  * Additional testing of CLI (simulate unseekable streams)
- now only requires poetry.core as PEP517 backend
  
- Fix building and installation of exampleprojects for testing
- Update to 5.6.1
  * Fixed #1546: Unstable (non-idempotent) behavior with certain 
    src trees.
- Changelog for 5.6.0
  * Implemented #1433: Provide helpful feedback in case a custom 
    config file is specified without a configuration.
  * Implemented #1494: Default to sorting imports within .pxd 
    files.
  * Implemented #1502: Improved float-to-top behavior when there 
    is an existing import section present at top-of-file.
  * Implemented #1511: Support for easily seeing all files isort 
    will be ran against using isort . --show-files.
  * Implemented #1487: Improved handling of encoding errors.
  * Improved handling of unsupported configuration option errors 
    (see #1475).  
  * Fixed #1463: Better interactive documentation for future 
    option.
  * Fixed #1461: Quiet config option not respected by file API in 
    some circumstances.
  * Fixed #1482: pylama integration is not working correctly out-
    of-the-box.
  * Fixed #1492: --check does not work with stdin source.
  * Fixed #1499: isort gets confused by single line, multi-line 
    style comments when using float-to-top.
  * Fixed #1525: Some warnings can't be disabled with --quiet.
  * Fixed #1523: in rare cases isort can ignore direct from import 
    if as import is also on same line.
  + Potentially breaking changes:
  * Implemented #1540: Officially support Python 3.9 stdlib 
    imports by default.
  * Fixed #1443: Incorrect third vs first party categorization - 
    namespace packages.
  * Fixed #1486: "Google" profile is not quite Google style.
  * Fixed "PyCharm" profile to always add 2 lines to be consistent 
    with what PyCharm "Optimize Imports" does.
  + Goal Zero:
  * Implemented #1472: Full testing of stdin CLI Options
  * Added additional branch coverage.
  * More projects added to integration test suite. 
- Changelog for 5.5.5
  * Fixed #1539: in extremely rare cases isort 5.5.4 introduces
    syntax error by removing closing paren.
- Changelog for 5.5.4
  * Fixed #1507: in rare cases isort changes the content of
    multiline strings after a yield statement.
  * Fixed #1505: Support case where known_SECTION points to a
    section not listed in sections.
- Use upstream's way of PIP with Poetry PEP517 backend to install 
  the package so we can use Github archive only
- A Poetry update required to modify the examples installation for
  testing
- Test flavor does not depend on installed base package anymore
- Update to 5.5.3
  * Fixed #1488: in rare cases isort can mangle yield from or raise
    from statements.
- Version 5.5.2 
  * Fixed #1469: --diff option is ignored when input is from stdin.

OBS-URL: https://build.opensuse.org/request/show/841728
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=20
2020-10-29 08:48:03 +00:00
6772e2c265 - Update to Version 5.6.4
* Fixed #1556: Empty line added between imports that should be 
    skipped.
- Version 5.6.3
  * Improved packaging of test files alongside source distribution 
    (see: https://github.com/PyCQA/isort/pull/1555).
- Version 5.6.2
  * Fixed #1548: On rare occasions an unecessary empty line can be 
    added when an import is marked as skipped.
  * Fixed #1542: Bug in VERTICAL_PREFIX_FROM_MODULE_IMPORT wrap 
    mode.
  * Fixed #1552: Pylama test dependent on source layout.
  * Goal Zero: (Tickets related to aspirational goal of achieving 0 
    regressions for remaining 5.0.0 lifespan):
  * Zope added to integration test suite
  * Additional testing of CLI (simulate unseekable streams)
- now only requires poetry.core as PEP517 backend

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=67
2020-10-13 18:44:02 +00:00
f3e23bd15e - Fix building and installation of exampleprojects for testing
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=66
2020-10-09 17:07:53 +00:00
59630a8909 - Fix wheel building and installation for testing exampleprojects
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=65
2020-10-09 16:52:28 +00:00
e812f0e4f5 - Update to 5.6.1
* Fixed #1546: Unstable (non-idempotent) behavior with certain 
    src trees.
- Changelog for 5.6.0
  * Implemented #1433: Provide helpful feedback in case a custom 
    config file is specified without a configuration.
  * Implemented #1494: Default to sorting imports within .pxd 
    files.
  * Implemented #1502: Improved float-to-top behavior when there 
    is an existing import section present at top-of-file.
  * Implemented #1511: Support for easily seeing all files isort 
    will be ran against using isort . --show-files.
  * Implemented #1487: Improved handling of encoding errors.
  * Improved handling of unsupported configuration option errors 
    (see #1475).  
  * Fixed #1463: Better interactive documentation for future 
    option.
  * Fixed #1461: Quiet config option not respected by file API in 
    some circumstances.
  * Fixed #1482: pylama integration is not working correctly out-
    of-the-box.
  * Fixed #1492: --check does not work with stdin source.
  * Fixed #1499: isort gets confused by single line, multi-line 
    style comments when using float-to-top.
  * Fixed #1525: Some warnings can't be disabled with --quiet.
  * Fixed #1523: in rare cases isort can ignore direct from import 
    if as import is also on same line.
  + Potentially breaking changes:
  * Implemented #1540: Officially support Python 3.9 stdlib 
    imports by default.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=64
2020-10-08 16:56:36 +00:00
7250190ab6 - Update to 5.5.3
* Fixed #1488: in rare cases isort can mangle yield from or raise
    from statements.
- Version 5.5.2 
  * Fixed #1469: --diff option is ignored when input is from stdin.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=63
2020-09-21 11:49:51 +00:00
4d4b427edc Accepting request 833014 from devel:languages:python
- skip a flaky test gh#PyCQA/isort#1466
- Update to 5.5.1
- Version 5.5.0
- Github repo moved to PyCQA/isort
- URL moved to https://pycqa.github.io/isort/

OBS-URL: https://build.opensuse.org/request/show/833014
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=19
2020-09-10 20:48:24 +00:00
846c856f95 - skip a flaky test gh#PyCQA/isort#1466
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=61
2020-09-08 14:15:58 +00:00
338f5b7682 Accepting request 832975 from home:bnavigator:branches:devel:languages:python
- Update to 5.5.1
- Version 5.5.0
- Github repo moved to PyCQA/isort
- URL moved to https://pycqa.github.io/isort/

OBS-URL: https://build.opensuse.org/request/show/832975
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=60
2020-09-08 12:27:21 +00:00
80d9d894fa Accepting request 829966 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/829966
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=18
2020-09-01 18:06:45 +00:00
57c5e37963 Accepting request 829965 from home:bnavigator:branches:devel:languages:python
- enable hypothesmith integration tests
- clarify test data source and multibuild strategy

OBS-URL: https://build.opensuse.org/request/show/829965
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=58
2020-08-27 11:17:00 +00:00
262cd4a295 Accepting request 827700 from devel:languages:python
- Update to 5.4.2:
  * Fixed #1383: Known other does not work anymore with .editorconfig.
  * Fixed: Regression in first known party path expansion.
  * Fixed #1381: --combine-as loses # noqa in different circumstances.
  * Implemented #1373: support for length sort only of direct (AKA
    straight) imports.
  * Fixed #1321: --combine-as loses # noqa.
  * Fixed #1375: --dont-order-by-type CLI broken.

OBS-URL: https://build.opensuse.org/request/show/827700
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=17
2020-08-25 10:38:08 +00:00
2cbf152fef - Update to 5.4.2:
* Fixed #1383: Known other does not work anymore with .editorconfig.
  * Fixed: Regression in first known party path expansion.
  * Fixed #1381: --combine-as loses # noqa in different circumstances.
  * Implemented #1373: support for length sort only of direct (AKA
    straight) imports.
  * Fixed #1321: --combine-as loses # noqa.
  * Fixed #1375: --dont-order-by-type CLI broken.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=56
2020-08-19 04:18:44 +00:00
ad266cb602 Accepting request 825424 from devel:languages:python
- update to version 5.3.2:

Let's see which package is missing in ringX for test flavor

OBS-URL: https://build.opensuse.org/request/show/825424
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=16
2020-08-13 08:12:49 +00:00
c0ef1cbcaa - update to version 5.3.2:
- Fixed incorrect warning code (W503->W0503).
- update to version 5.3.1:
 - Improve upgrade warnings to be less noisy and point to error codes for easy interoperability with Visual Studio Code (see: #1363).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=54
2020-08-08 12:22:26 +00:00
29259fe636 - do not test hypothesmith integration because we lack python-libcst
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=53
2020-08-06 13:54:40 +00:00
ad75e06e02 - Update to 5.3.0
* Implemented ability to treat all or select comments as code 
    (issue #1357)
  * Implemented ability to use different configs for different file
    extensions (issue #1162)
  * Implemented ability to specify the types of imports
    (issue #1181)
  * Implemented ability to dedup import headings (issue #953)
  * Added experimental support for sorting literals (issue #1358)
  * Added experimental support for sorting and deduping groupings
    of assignments.
  * Improved handling of deprecated single line variables for usage
    with Visual Studio Code (issue #1363)
  * Improved handling of mixed newline forms within same source
    file.
  * Improved error handling for known sections.
  * Improved API consistency, returning a boolean value for all
    modification API calls to indicate if changes were made.
  * Fixed #1366: spurious errors when combining skip with
    --gitignore.
  * Fixed #1359: --skip-gitignore does not honor ignored symlink
  Internal Development:
  * Initial hypothesmith powered test to help catch unexpected
    syntax parsing and output errors (thanks @Zac-HD!)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=52
2020-08-06 09:26:05 +00:00
a98607eee9 - update to version 5.2.2:
- Fixed #1356: return status when arguments are passed in without files or a content stream.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=51
2020-07-30 11:51:30 +00:00
8aae2ead79 Accepting request 823366 from home:bnavigator:branches:devel:languages:python
- update to version 5.2.1
  * Update precommit to default to filtering files that are defined in skip.
  * Improved relative path detection for skip config usage.
  * Added recursive symbolic link protection.
  * Implemented #1177: Support for color output using --color.
  * Implemented recursive symlink detection support.

OBS-URL: https://build.opensuse.org/request/show/823366
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=50
2020-07-29 10:42:13 +00:00
5fdf9d6ac0 Accepting request 823224 from home:bnavigator:branches:devel:languages:python
- use poetry to install example projects. fixes the two remaining
  test issues

needs SR 823222
and SR 823223

OBS-URL: https://build.opensuse.org/request/show/823224
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=49
2020-07-28 20:21:49 +00:00
b1a682d120 - add git as build dependency, fixes a test issue.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=48
2020-07-28 19:26:39 +00:00
03cf85a92a - update to version 5.2.0:
- Implemented #1335: Official API for diff capturing.
 - Implemented #1331: Warn when sections don't match up.
 - Implemented #1261: By popular demand, `filter_files` can now be set in the config option.
 - Implemented #960: Support for respecting git ignore via "--gitignore" or "skip_gitignore=True".
 - Implemented #727: Ability to only add imports if existing imports exist.
 - Implemented #970: Support for custom sharable isort profiles.
 - Implemented #1214: Added support for git_hook lazy option (Thanks @sztamas!)
 - Implemented #941: Added an additional `multi_line_output` mode for more compact formatting (Thanks @sztamas!)
 - Implemented #1020: Option for LOCALFOLDER.
 - Implemented #1353: Added support for output formatting plugins.
 - `# isort: split` can now be used at the end of an import line.
 - Fixed #1339: Extra indent is not preserved when isort:skip is used in nested imports.
 - Fixed #1348: `--diff` works incorrectly with files that have CRLF line endings.
 - Improved code repositories usage of pylint tags (#1350).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=47
2020-07-27 20:36:16 +00:00
84d8df981c - update to version 5.1.4:
- Fixed issue #1333: Use of wrap_length raises an exception about it not being lower or equal to line_length.
 - Fixed issue #1330: Ensure stdout can be stubbed dynamically for `show_unified_diff` function.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=46
2020-07-20 18:46:07 +00:00
d95d54a857 - update to version 5.1.3
* Fixed issue #1329: Fix comments duplicated when --fass option is set.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=45
2020-07-19 13:44:18 +00:00
38b1aa47e1 - update to version 5.1.2:
- Fixed issue #1219 / #1326: Comments not wrapped for long lines
 - Fixed issue #1156: Bug related to isort:skip usage followed by a multiline comment block
- update to version 5.1.1:
 - Fixed issue #1322: Occasionally two extra newlines before comment with `-n` & `--fss`.
 - Fixed issue #1189: `--diff` broken when reading from standard input.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=44
2020-07-18 10:17:45 +00:00
01f3c6af96 - update to version 5.1.0:
- isort now throws an exception if an invalid settings path is given (issue #1174).
 - Implemented support for automatic redundant alias removal (issue #1281).
 - Implemented experimental support for floating all imports to the top of a file (issue #1228)
 - Fixed #1178: support for semicolons in decorators.
 - Fixed #1315: Extra newline before comment with -n + --fss.
 - Fixed #1192: -k or --keep-direct-and-as-imports option has been deprecated as it is now always on.
 - Formatting changes implied:
  - Fixed #1280: rewrite of as imports changes the behavior of the imports.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=43
2020-07-15 20:23:05 +00:00
8497d09f33 Accepting request 820947 from home:bnavigator:branches:devel:languages:python
- reenable test_pipfile_finder
  needs updated requirementslib gh#timothycrosley/isort#1317
  (according to requirementslib changelog probably by fix in 1.5.4)
- upstream git tag has been updated

OBS-URL: https://build.opensuse.org/request/show/820947
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=42
2020-07-14 15:51:34 +00:00
be652da2d9 Accepting request 820730 from home:bnavigator:branches:devel:languages:python
- the tests are not packaged on PyPI. Use github sources. (Need to
  reference commit directly (gh#timothycrosley/isort#1316)
- update test requirements
- reenable most passing tests except one (gh#timothycrosley/isort#1317)
- update package description
- new version does not build/test on Python 2 (define skip for older distros)

OBS-URL: https://build.opensuse.org/request/show/820730
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=41
2020-07-13 19:54:31 +00:00
56f1a4bec7 - Update to version 5.0.9:
- Fixed #1301: Import headings in nested sections leads to check errors
- Update to version 5.0.8:
 - Fixed #1277 & #1278: New line detection issues on Windows.
 - Fixed #1294: Fix bundled git hook.
- Update to version 5.0.7:
 - Fixed #1306: unexpected --diff behavior.
 - Fixed #1279: Fixed NOQA comment regression.
- Update to version 5.0.6:
 - Fixed #1302: comments and --trailing-comma can generate invalid code.
 - Fixed #1293: extra new line in indented imports, when immediately followed by a comment.
 - Fixed #1304: isort 5 no longer recognises sre_parse as a stdlib module.
 - Fixed #1300: add_imports moves comments following import section.
 - Fixed #1276: Fix a bug that creates only one line after triple quotes.
- Update to version 5.0.5:
 - Fixed #1285: packaging issue with bundling tests via poetry.
 - Fixed #1284: Regression when sorting .pyi files from CLI using black profile.
 - Fixed #1275 & #1283: Blank line after docstring removed.
 - Fixed #1298: CLI Help out of date with isort 5.
 - Fixed #1290: Unecessary blank lines above nested imports when import comments turned on.
 - Fixed #1297: Usage of --add-imports alongside --check is broken.
 - Fixed #1289: Stream usage no longer auto picking up config file from current working directory.
 - Fixed #1296: Force_single_line setting removes immediately following comment line.
 - Fixed #1295: ensure_newline_before_comments doesnt work with force_sort_within_sections.
 - Setting not_skip will no longer immediately fail but instead give user a warning and direct to upgrade docs.
- Update to version 5.0.4:
 - Fixed #1264: a regression with comment handling and force_sort_within_sections config option
 - Added warning for deprecated CLI flags and linked to upgrade guide.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=40
2020-07-12 15:15:00 +00:00
34bd277513 - Update to version 5.0.3:
- Fixed setup.py command incorrectly passing check=True as a configuration parameter (see: https://github.com/timothycrosley/isort/issues/1258)
 - Fixed missing patch version
 - Fixed issue #1253: Atomic fails when passed in not readable output stream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=39
2020-07-05 11:37:24 +00:00
748666cc4a - update to version 5.0.2:
- Ensured black profile was complete, adding missing line_length definition.
- update to version 5.0.1:
 - Fixed a runtime error in a vendored dependency (toml).
- update to version 5.0.0:
 - Breaking changes:
  - isort now requires Python 3.6+ to run but continues to support formatting on ALL versions of python including Python 2 code.
  - isort deprecates official support for Python 3.4, removing modules only in this release from known_standard_library:
  -     user
  - Config files are no longer composed on-top of each-other. Instead the first config file found is used.
  -     Since there is no longer composition negative form settings (such as --dont-skip) are no longer required and have been removed.
  - Two-letter shortened setting names (like ac for atomic) now require two dashes to avoid ambiguity: --ac.
  - For consistency with other tools -v now is shorthand for verbose and -V is shorthand for version. See Issue: #1067.
  - length_sort_{section_name} config usage has been deprecated. Instead length_sort_sections list can be used to specify a list of sections that need to be length sorted.
  - safety_excludes and unsafe have been deprecated
  - Config now includes as default full set of safety directories defined by safety excludes.
  - --recursive option has been removed. Directories passed in are now automatically sorted recursive.
  - --apply option has been removed as it is the default behaviour.
  - isort now does nothing, beyond giving instructions and exiting status code 0, when ran with no arguments.
  -     a new --interactive flag has been added to enable the old style behaviour.
  - isort now works on contiguous sections of imports, instead of one whole file at a time.
  - isort now formats all nested "as" imports in the "from" form. import x.y as a becomes from x import y as a.
  - keep_direct_and_as_imports option now defaults to True.
  - appdirs is no longer supported. Unless manually specified, config should be project config only.
  - toml is now installed as a vendorized module, meaning pyproject.toml based config is always supported.
  - Completely new Python API, old version is removed and no longer accessible.
  - New module placement logic and module fully replaces old finders. Old approach is still available via --old-finders.
 - Internal:
  - isort now utilizes mypy and typing to filter out typing related issues before deployment.
  - isort now utilizes black internally to ensure more consistent formatting.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=38
2020-07-04 12:16:59 +00:00
9464964741 Accepting request 808784 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/808784
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=15
2020-06-05 17:58:38 +00:00
Tomáš Chvátal
b8097c954c Accepting request 808762 from home:pgajdos:python
submit

OBS-URL: https://build.opensuse.org/request/show/808762
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=36
2020-05-25 13:31:50 +00:00
9224c128bf Accepting request 784839 from devel:languages:python
Staging:I py2

OBS-URL: https://build.opensuse.org/request/show/784839
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=14
2020-03-26 23:23:51 +00:00
Tomáš Chvátal
0404c37c3b - Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=34
2020-03-14 08:32:33 +00:00
db7b051631 Accepting request 730455 from devel:languages:python
- Skip test test_pipfile_finder upstream is aware for 6 months
  and just pinned older version of tomlkit

OBS-URL: https://build.opensuse.org/request/show/730455
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=13
2019-09-17 11:34:27 +00:00
Tomáš Chvátal
0b64c0b57a - Skip test test_pipfile_finder upstream is aware for 6 months
and just pinned older version of tomlkit

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=32
2019-09-12 17:51:23 +00:00
7f2b9c76a4 Accepting request 713859 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/713859
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=12
2019-07-30 10:59:55 +00:00
fb6d9e7120 - update to version 4.3.21:
- Fixed issue #957 - Long aliases and use_parentheses generates invalid syntax

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=30
2019-06-30 13:20:01 +00:00
42b5e4478f Accepting request 705236 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/705236
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=11
2019-05-27 06:30:29 +00:00
Tomáš Chvátal
ab50ad9df0 Accepting request 705235 from home:pgajdos
- version update to 4.3.20
  - Fixed issue #948 - Pipe redirection broken on Python2.7
  - Fixed issue #942 - correctly handle pyi (Python Template Files) to match `black` output

OBS-URL: https://build.opensuse.org/request/show/705235
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=28
2019-05-24 12:21:42 +00:00
ad764f770f Accepting request 701237 from devel:languages:python
- Again tweak failing tests

- update to 4.3.18:
 - Fixed an issue with parsing files that contain unicode characters in Python 2
 - Fixed issue #924 - Pulling in pip internals causes depreciation warning
 - Fixed issue #938 - Providing a way to filter explicitly passed in files via configuration settings (`--filter-files`)
 - Improved interoperability with toml configuration files

- skip failing tests
- Update to 4.3.17:
  - Fixed issue #905 & #919: Import section headers behaving
    strangely

- Add missing recommended dependencies

- update to version 4.3.16:
 - Fixed issue #909 - skip and skip-glob are not enforced when using settings-path.
 - Fixed issue #907 - appdirs optional requirement does not correctly specify version
 - Fixed issue #902 - Too broad warning about missing toml package
 - Fixed issue #778 - remove `user` from known standard library as it's no longer in any supported Python version.

OBS-URL: https://build.opensuse.org/request/show/701237
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=10
2019-05-08 13:15:53 +00:00
Tomáš Chvátal
8c822730a4 - Again tweak failing tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=26
2019-05-07 08:06:31 +00:00
f93a23df12 - update to 4.3.18:
- Fixed an issue with parsing files that contain unicode characters in Python 2
 - Fixed issue #924 - Pulling in pip internals causes depreciation warning
 - Fixed issue #938 - Providing a way to filter explicitly passed in files via configuration settings (`--filter-files`)
 - Improved interoperability with toml configuration files

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=25
2019-05-03 18:10:29 +00:00
fb8cc2097d - skip failing tests
- Update to 4.3.17:
  - Fixed issue #905 & #919: Import section headers behaving
    strangely

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=24
2019-04-29 20:22:27 +00:00
d29c39ddb7 Accepting request 684706 from devel:languages:python
- Update to 4.3.15:
  * Fixed a regression with handling streaming input from pipes (Issue #895)
  * Fixed handling of \x0c whitespace character (Issue #811)
  * Improved CLI documentation
  * Fixed a regression with /directory/.py style patterns
  * Fixed the inability to accurately determine import section when a mix of conda and virtual environments are used.
  * Fixed some output being printed even when --quiet mode is enabled.
  * Fixed issue #890 interoperability with PyCharm by allowing case sensitive non type grouped sorting.
  * Fixed issue #889 under some circumstances isort will incorrectly add a new line at the beginning of a file.
  * Fixed issue #885 many files not being skipped according to set skip settings.
  * Fixed issue #842 streaming encoding improvements.
  * Fix error caused when a virtual environment not detected
  * Fixed issue #876: confused by symlinks pointing to virtualenv gives FIRSTPARTY not THIRDPARTY
  * Fixed issue #873: current version skips every file on travis
  * Additional caching to reduce performance regression introduced in 4.3.5
  * Improved handling of pex files and other binary Python files

OBS-URL: https://build.opensuse.org/request/show/684706
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=9
2019-03-29 19:34:31 +00:00
Tomáš Chvátal
b5de76d209 - Add missing recommended dependencies
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=22
2019-03-29 09:42:00 +00:00
85cf5fa96b - update to version 4.3.16:
- Fixed issue #909 - skip and skip-glob are not enforced when using settings-path.
 - Fixed issue #907 - appdirs optional requirement does not correctly specify version
 - Fixed issue #902 - Too broad warning about missing toml package
 - Fixed issue #778 - remove `user` from known standard library as it's no longer in any supported Python version.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=21
2019-03-24 08:37:51 +00:00
Tomáš Chvátal
c3bbee0533 - Update to 4.3.15:
* Fixed a regression with handling streaming input from pipes (Issue #895)
  * Fixed handling of \x0c whitespace character (Issue #811)
  * Improved CLI documentation
  * Fixed a regression with /directory/.py style patterns
  * Fixed the inability to accurately determine import section when a mix of conda and virtual environments are used.
  * Fixed some output being printed even when --quiet mode is enabled.
  * Fixed issue #890 interoperability with PyCharm by allowing case sensitive non type grouped sorting.
  * Fixed issue #889 under some circumstances isort will incorrectly add a new line at the beginning of a file.
  * Fixed issue #885 many files not being skipped according to set skip settings.
  * Fixed issue #842 streaming encoding improvements.
  * Fix error caused when a virtual environment not detected
  * Fixed issue #876: confused by symlinks pointing to virtualenv gives FIRSTPARTY not THIRDPARTY
  * Fixed issue #873: current version skips every file on travis
  * Additional caching to reduce performance regression introduced in 4.3.5
  * Improved handling of pex files and other binary Python files

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=20
2019-03-13 14:23:09 +00:00
f6a865b318 Accepting request 681407 from devel:languages:python
- Update to 4.3.10:
  * Fixed Windows incompatibilities (Issue #835)
  * Fixed relative import sorting bug (Issue #417)
  * Fixed "no_lines_before" to also be respected from previous empty sections.
  * Fixed slow-down introduced by finders mechanism by adding a LRU cache (issue #848)
  * Fixed issue #842 default encoding not-set in Python2
  * Restored Windows automated testing
  * Added Mac automated testing

OBS-URL: https://build.opensuse.org/request/show/681407
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=8
2019-03-08 10:59:54 +00:00
Tomáš Chvátal
77276e56b4 - Update to 4.3.10:
* Fixed Windows incompatibilities (Issue #835)
  * Fixed relative import sorting bug (Issue #417)
  * Fixed "no_lines_before" to also be respected from previous empty sections.
  * Fixed slow-down introduced by finders mechanism by adding a LRU cache (issue #848)
  * Fixed issue #842 default encoding not-set in Python2
  * Restored Windows automated testing
  * Added Mac automated testing

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=18
2019-03-04 13:28:09 +00:00
c2ce6de996 Accepting request 681298 from devel:languages:python
- Fix multibuild name

OBS-URL: https://build.opensuse.org/request/show/681298
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=7
2019-03-04 12:45:14 +00:00
Tomáš Chvátal
7e71238106 - Fix multibuild name
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=16
2019-03-04 11:05:46 +00:00
a1985dbc20 Accepting request 680525 from devel:languages:python
- Switch to multibuild to avoid cycle with pylama

- Drop add-editorconfig.patch made redundant by new sdist
- Add fdupes
- Update to v4.3.9
  * Fixed a bug that led to an incompatibility with black: #831
- from 4.3.8
  * Fixed a bug that led to the recursive option not always been available
    from the command line.
- from 4.3.7
  * Expands the finder failsafe to occur on the creation of the finder objects.
- from 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.
- from 4.3.5
  + 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.

OBS-URL: https://build.opensuse.org/request/show/680525
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=6
2019-03-04 08:11:15 +00:00
Tomáš Chvátal
8657ba1b18 - Switch to multibuild to avoid cycle with pylama
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=14
2019-03-01 14:47:56 +00:00
Tomáš Chvátal
c4c28e3a4c Accepting request 680021 from home:jayvdb:coala:python3-bears
- Drop add-editorconfig.patch made redundant by new sdist
- Add fdupes
- Update to v4.3.9, including Python 3.7 support

OBS-URL: https://build.opensuse.org/request/show/680021
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=13
2019-02-28 08:57:44 +00:00
Stephan Kulow
290eaf528f Accepting request 676254 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/676254
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=5
2019-02-17 11:19:10 +00:00
Tomáš Chvátal
84362c586f Accepting request 676235 from home:jayvdb:coala:python3-bears
- Revert to using PyPI release by adding add-editorconfig.patch, which is needed to allow the test suite to pass.
  https://github.com/timothycrosley/isort/issues/814

OBS-URL: https://build.opensuse.org/request/show/676235
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=11
2019-02-14 21:12:20 +00:00
6f0f3b8693 Accepting request 624436 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/624436
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=4
2018-07-23 15:58:23 +00:00
e2946aee1a Accepting request 624342 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/624342
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=9
2018-07-21 11:27:07 +00:00
9e326b239b Accepting request 575248 from devel:languages:python
- update to 4.3.1
 * Fixed issue #654: Trailing comma count error
 * Fixed issue #651: Add imports option is broken
 * Fixed issue #650: Wrong error message displayed
- update to 4.3.0
 * Fixed #557: force_alphabetical_sort and force_sort_within_sections can now be utilized together without extra new lines
 * Added --no-lines-before for more granular control over section output
 * Fixed #493: Unwanted conversion to Windows line endings
 * Implemented --version-number to retrieve just the version number without the isort logo
- Remove patch-shebang.patch and replace it with a sed-call

OBS-URL: https://build.opensuse.org/request/show/575248
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=3
2018-02-12 09:10:49 +00:00
4da9d1e9b5 remove file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=7
2018-02-10 17:15:22 +00:00
29f9d05da0 - update to 4.3.1
* Fixed issue #654: Trailing comma count error
 * Fixed issue #651: Add imports option is broken
 * Fixed issue #650: Wrong error message displayed
- update to 4.3.0
 * Fixed #557: force_alphabetical_sort and force_sort_within_sections can now be utilized together without extra new lines
 * Added --no-lines-before for more granular control over section output
 * Fixed #493: Unwanted conversion to Windows line endings
 * Implemented --version-number to retrieve just the version number without the isort logo
- Remove patch-shebang.patch and replace it with a sed-call

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=6
2018-02-02 20:53:14 +00:00
ae981a17bd Accepting request 505952 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/505952
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=2
2017-07-05 21:57:50 +00:00
Jan Matejek
6258cc11bf Accepting request 505500 from home:sebix:branches:devel:languages:python
- update description
- install LICENSE as %license if possible
- update to 4.2.15
 * Fixed certain one line imports not being successfully wrapped
- update to 4.2.14
 * Fixed #559 & #565: Added missing standard library imports
- update to 4.2.13
 * Fixed #553: Check only and --diff now work together again
- update to 4.2.12
 * Fixed a problem with the wheel distribution
- update to 4.2.11
 * Fixed #546: Can't select y/n/c after latest update
 * Fixed #545: Incorrectly moves future imports above encoding comments
- update to 4.2.9
 * Fixed #428: Check only modifies sorting
 * Fixed #540: Not correctly identifying stdlib modules
- update to 4.2.8
 * Added --virtual-env switch command line option
 * Added --enforce-whitespace option to go along with --check-only for more exact checks (issue #423)
 * Fixed imports with a tailing '' and no space in-between getting removed (issue #425)
 * Fixed issue #299: long lines occasionally not wrapped
 * Fixed issue #432: No longer add import inside class when class starts at top of file after encoding comment
 * Fixed issue #440: Added missing --use-parentheses option to command line tool and documentation
 * Fixed issue #496: import* imports now get successfully identified and reformatted instead of deleted
 * Fixed issue #491: Non ending parentheses withing single line comments no longer cause formatting issues
 * Fixed issue #471: Imports that wrap the maximum line length and contain comments on the last line are no longer rendered incorrectly
 * Fixed issue #436: Force sort within section no longer rearranges comments
 * Fixed issue #473: Force_to_top and force_sort_within_sections now work together
 * Fixed issue #484 & #472: Consistent output with imports of same spelling but different case
 * Fixed issue #433: No longer incorrectly add an extra new-line when comment between imports and function definition

OBS-URL: https://build.opensuse.org/request/show/505500
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=4
2017-06-23 17:12:16 +00:00
585cc9370f Accepting request 482552 from devel:languages:python
update for singlespec

OBS-URL: https://build.opensuse.org/request/show/482552
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=1
2017-04-07 11:54:03 +00:00
Jan Matejek
c0d07caeb9 - install LICENSE file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=2
2017-03-24 17:02:57 +00:00
Jan Matejek
3432916667 Accepting request 479717 from devel:languages:python:singlespec
singlespec initial submission

OBS-URL: https://build.opensuse.org/request/show/479717
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=1
2017-03-15 15:17:36 +00:00
5 changed files with 107 additions and 87 deletions

Binary file not shown.

3
isort-7.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5513527951aadb3ac4292a41a16cbc50dd1642432f5e8c20057d414bdafb4187
size 805049

View File

@@ -1,3 +1,85 @@
-------------------------------------------------------------------
Wed Dec 17 03:58:06 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 7.0.0:
* Breaking Changes
+ Drop support for Python 3.9 (#2430) @DanielNoord
* Features
+ Show absolute paths in skipped file messages (#2416) @pranlawate
* Fixes
+ Drop use of non-standard pkg_resources API (#2405) @dvarrazzo
+ Use working isort version in pre-commit example (#2402) @iainelder
+ fix typo in _get_files_from_dir_cached test (#2392) @tiltingpenguin
+ Resolve bandit warnings (#2379) @kurtmckee
+ Some fixes for Python 3.14 (#2433) @DanielNoord
+ Test on 3.14 and fix any bugs (#2425) @DanielNoord
+ Update CHANGELOG.md + Fix Formatting and Grammar (#2419) @lukbrew25
+ Fix output of hanging indent for long lines with noqa (#2407)
- Drop patch fix-typo.patch, merged upstream.
-------------------------------------------------------------------
Thu Jul 10 13:23:44 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Fri May 2 08:59:30 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Raise suse_version to disable pymama tests to <= 1600
-------------------------------------------------------------------
Mon Apr 7 13:03:24 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Update to 6.0.1
* fix multi_line_output_modes docs (#2096) @xinydev
* Ruff rules PT for pytest (#2372) @cclauss
* Ruff rules B017, B028, and E203 (#2371) @cclauss
* Lint Python code with ruff (#2359) @cclauss
* Fix test_find_imports_in_file_error failing on Windows (#2369) @kobarity
* Move flake8 settings into pyproject.toml (#2360) @cclauss
* Upgrade to uv>=0.6.0 and enable-cache (#2364) @cclauss
* Apply some ruff rules (#2353) @cclauss
* Add OSError handling in find_imports_in_file (#2331) @kobarity
* Link GH as changelog (#2354) @staticdev
- Update to 6.0.0
* Remove support for Python 3.8 (#2327) @DanielNoord
* Python 3.13 support (#2306) @mayty
* Updates round 3 (#2334) @matthewhughes934
* Speed up exists_case_sensitive calls (#2264) @correctmost
* nit: Fix deprecation message link (#2220) @syou6162
* Ensure that split_on_trailing_comma works with as imports (#2340) @DanielNoord
* Black profile: enable magic comma (#2236) @MrMino
* Fix google style test (#2336) @DanielNoord
* Update line_length and single_line_exclusions in google profile (#2149) @jagapiou
* Updates round 2 (#2329) @matthewhughes934
* Dependency updates round 1 (#2325) @matthewhughes934
* Run pre-commit autoupdate (#2321) @kurtmckee
* Allow --diff to be used with --jobs (#2302) @mnakama
* wemake has 80 chars hard limit, not 79 (#2241) @sobolevn
* Fix errors on main (#2320) @DanielNoord
* Fixed syntax error (#2289) @Sergio-prog
* fix: typo (#2298) @Rotzbua
* Fix sort_reexports code mangling (#2283) @Helveg
* fix: correct group by package tokenization (#2136) @glasnt
* Fix isort-action usage documentation (#2297) @jamescurtin
* Fix CDN for Ace (#2127) @abitrolly
* Fix help text (#2229) @stweil
* docs: fix spelling mistake (#2249) @cachho
* Bump poetry to 2.0.1 (#2341) @DanielNoord
* Fix misc unsafe dependencies (#2345) @staticdev
* Bump the github-actions group across 1 directory with 5 updates (#2324) @dependabot[bot]
* Bump gitpython from 3.1.40 to 3.1.41 (#2223) @dependabot[bot]
* Bump jinja2 from 3.1.2 to 3.1.3 (#2224) @dependabot[bot]
- drop support-pytest-8.patch, merged upstream
- change source url back to pypi, tests are now included
- update build-requirements
- add fix-typo.patch to fix tests
-------------------------------------------------------------------
Thu Oct 24 11:20:33 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Remove not needed build dependencies
-------------------------------------------------------------------
Fri Aug 30 02:57:29 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-isort
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,56 +24,48 @@
%define psuffix %{nil}
%bcond_with test
%endif
%if 0%{?suse_version} < 1550
%if 0%{?suse_version} <= 1600
%bcond_with pylama
%else
%bcond_without pylama
%endif
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-isort%{psuffix}
Version: 5.13.2
Version: 7.0.0
Release: 0
Summary: A Python utility / library to sort Python imports
License: MIT
URL: https://pycqa.github.io/isort/
# tests and example projects are not packaged for PyPI, get them from Github
Source: https://github.com/PyCQA/isort/archive/%{version}.tar.gz#/isort-%{version}-gh.tar.gz
# PATCH-FIX-UPSTREAM gh#PyCQA/isort#2235
Patch0: support-pytest-8.patch
BuildRequires: %{python_module base >= 3.8}
Source: https://files.pythonhosted.org/packages/source/i/isort/isort-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.10}
BuildRequires: %{python_module hatch-vcs}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-colorama >= 0.4.3
Recommends: python-pip-api
Recommends: python-pip-shims >= 0.5.2
Recommends: python-pipreqs
Recommends: python-setuptools
Requires: alts
Recommends: python-colorama >= 0.4.6
Suggests: git-core
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module black}
BuildRequires: %{python_module colorama >= 0.4.3}
BuildRequires: %{python_module hypothesmith}
BuildRequires: %{python_module colorama >= 0.4.6}
BuildRequires: %{python_module hypothesmith >= 0.3.3}
BuildRequires: %{python_module isort == %{version}}
BuildRequires: %{python_module libcst}
BuildRequires: %{python_module natsort}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip-api}
BuildRequires: %{python_module pipreqs}
BuildRequires: %{python_module poetry}
%if %{with pylama}
BuildRequires: %{python_module pylama}
%endif
BuildRequires: %{python_module pytest > 6.0}
BuildRequires: %{python_module pytest >= 8.4}
BuildRequires: %{python_module pytest-benchmark >= 5.1}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module toml >= 0.10.2}
BuildRequires: git-core
%if %{with pylama}
BuildRequires: %{python_module pylama}
%endif
%endif
%python_subpackages
@@ -83,7 +75,7 @@ isort your python imports for you so you don't have to.
isort is a Python utility / library to sort imports alphabetically, and
automatically separated into sections and by type. It provides a command line
utility, Python library and plugins for various editors to quickly sort all your
imports. It requires Python 3.8+ to run but supports formatting Python 2 code
imports. It requires Python 3.9+ to run but supports formatting Python 2 code
too.
%prep
@@ -113,6 +105,7 @@ hypothesis.settings.register_profile(
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/isort
%python_clone -a %{buildroot}%{_bindir}/isort-identify-imports
%python_group_libalternatives isort isort-identify-imports
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
@@ -172,11 +165,8 @@ pytest-%{$python_bin_suffix} -v \
%endif
%if !%{with test}
%post
%python_install_alternative isort isort-identify-imports
%postun
%python_uninstall_alternative isort
%pre
%python_libalternatives_reset_alternative isort
%files %{python_files}
%doc README.md

View File

@@ -1,52 +0,0 @@
From 9c0b6272bfb1fd41298dd0fa9d072367bd79cc1b Mon Sep 17 00:00:00 2001
From: Stanislav Levin <slev@altlinux.org>
Date: Thu, 15 Feb 2024 17:42:59 +0300
Subject: [PATCH] Drop deprecated pytest.warns(None)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
With Pytest 7:
https://docs.pytest.org/en/stable/changelog.html#pytest-7-0-0rc1-2021-12-06
> #8645: pytest.warns(None) is now deprecated because many people used
it to mean “this code does not emit warnings”, but it actually had the
effect of checking that the code emits at least one warning of any
type-like pytest.warns() or pytest.warns(Warning)
With Pytest 8 it's the error.
Changed according to the documentation:
https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests
Fixes: https://github.com/PyCQA/isort/issues/2234
Signed-off-by: Stanislav Levin <slev@altlinux.org>
---
tests/unit/test_ticketed_features.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/unit/test_ticketed_features.py b/tests/unit/test_ticketed_features.py
index 32eeb709..bc847ed5 100644
--- a/tests/unit/test_ticketed_features.py
+++ b/tests/unit/test_ticketed_features.py
@@ -3,6 +3,7 @@
"""
from functools import partial
from io import StringIO
+import warnings
import pytest
@@ -615,9 +616,9 @@ def test_isort_should_warn_on_empty_custom_config_issue_1433(tmpdir):
quiet = true
"""
)
- with pytest.warns(None) as warning: # type: ignore
+ with warnings.catch_warnings():
+ warnings.simplefilter("error")
assert Config(settings_file=str(settings_file)).quiet
- assert not warning
def test_float_to_top_should_respect_existing_newlines_between_imports_issue_1502():