SHA256
1
0
forked from pool/python-isort

25 Commits

Author SHA256 Message Date
Sebastian Wagner
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
Sebastian Wagner
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
Sebastian Wagner
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
Sebastian Wagner
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
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
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
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
Sebastian Wagner
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
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
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
Sebastian Wagner
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
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
Sebastian Wagner
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
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
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
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
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
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
Sebastian Wagner
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
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
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