Commit Graph

99 Commits

Author SHA256 Message Date
Dominique Leuenberger
8793b745ba Accepting request 1057681 from devel:languages:python
- Add patch support-python-311-typing.patch:
  * Support typing changes for Python 3.11+

OBS-URL: https://build.opensuse.org/request/show/1057681
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=35
2023-01-11 16:14:19 +00:00
Steve Kowalik
cb9f70d5e6 - Add patch support-python-311-typing.patch:
* Support typing changes for Python 3.11+

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=97
2023-01-10 04:02:48 +00:00
Dominique Leuenberger
8d335d8039 Accepting request 1046644 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1046644
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=34
2023-01-05 13:59:48 +00:00
154113247e Accepting request 1046643 from home:bnavigator:branches:devel:languages:python
- Move to PEP517
- Pin parso like upstream does
- Skip a test for embedded systems which unexplicably fails on
  backports 15.4_py39

OBS-URL: https://build.opensuse.org/request/show/1046643
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=95
2023-01-03 19:47:17 +00:00
Dominique Leuenberger
0ceb402ab6 Accepting request 1042528 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1042528
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=33
2022-12-14 13:10:35 +00:00
c37e6600a5 Accepting request 1040485 from home:yarunachalam:branches:devel:languages:python
- Update to 0.18.2 
  * Added dataclass-equivalent for attrs.define
  * Find fixtures from Pytest entrypoints; Examples of pytest plugins installed like this are pytest-django, pytest-sugar and Faker.
  * Fixed Project.search, when a venv was involved, which is why for example :Pyimport django.db did not work in some cases in jedi-vim.
  * And many smaller bugfixes

OBS-URL: https://build.opensuse.org/request/show/1040485
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=93
2022-12-06 15:18:13 +00:00
Dominique Leuenberger
050582177a Accepting request 965226 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/965226
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=32
2022-03-29 16:14:12 +00:00
f7fac3330d Accepting request 965225 from home:bnavigator:branches:devel:languages:python
- Skip two test failing with pytest 7.1 -- gh#davidhalter/jedi#1846

OBS-URL: https://build.opensuse.org/request/show/965225
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=91
2022-03-27 18:55:19 +00:00
Dominique Leuenberger
d2afe468bb Accepting request 945451 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/945451
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=31
2022-01-11 20:17:20 +00:00
18abbd5a8f Accepting request 945450 from home:bnavigator:branches:devel:languages:python
- Force pytest >= 5 for successful 15.3 build in d:l:p

OBS-URL: https://build.opensuse.org/request/show/945450
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=90
2022-01-10 23:23:04 +00:00
Dominique Leuenberger
5ff573c5d9 Accepting request 939579 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/939579
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=30
2021-12-13 19:41:39 +00:00
01cf371a2f Accepting request 939577 from home:bnavigator:branches:devel:languages:python
- Update to 0.18.1
  * Implict namespaces are now a separate types in Name().type
  * Python 3.10 support
  * Mostly bugfixes
- Drop jedi-py39-pytest.patch
- Skip failing test (reported as gh#davidhalter/jedi#1824)

OBS-URL: https://build.opensuse.org/request/show/939577
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=89
2021-12-11 12:23:44 +00:00
Dominique Leuenberger
6791906a89 Accepting request 928392 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/928392
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=29
2021-11-03 16:25:16 +00:00
2265bd365b Accepting request 928389 from home:bnavigator:branches:devel:languages:python
- Force pytest5 because it has the pluggy<1 pin patched out

OBS-URL: https://build.opensuse.org/request/show/928389
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=88
2021-10-31 16:14:50 +00:00
Dominique Leuenberger
e6b8cc5002 Accepting request 878754 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/878754
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=28
2021-04-15 14:56:37 +00:00
817604cf29 Accepting request 878753 from home:bnavigator:python39
- Add jedi-py39-pytest.patch to support Python 3.9

OBS-URL: https://build.opensuse.org/request/show/878753
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=86
2021-03-13 13:35:01 +00:00
ddfe9fe565 No support for Python 2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=85
2020-12-25 20:51:50 +00:00
0535a50081 - update to 0.18.0 (get it together with the latest python-parso just to
be sure):
  - Dropped Python 2 and Python 3.5
  - Using ``pathlib.Path()`` as an output instead of ``str`` in most
    places:
    - ``Project.path``
    - ``Script.path``
    - ``Definition.module_path``
    - ``Refactoring.get_renames``
    - ``Refactoring.get_changed_files``
  - Functions with ``@property`` now return ``property`` instead of
    ``function`` in ``Name().type``
  - Started using annotations
  - Better support for the walrus operator
  - Project attributes are now read accessible
  - Removed all deprecations
  This is likely going to be the last minor release before 1.0.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=84
2020-12-25 19:29:21 +00:00
2ef9d42c49 - Revert back to 0.17.2.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=83
2020-09-03 20:27:10 +00:00
32f368ee5f Accepting request 831953 from home:mcepl:branches:devel:languages:python
ok

OBS-URL: https://build.opensuse.org/request/show/831953
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=82
2020-09-03 20:22:47 +00:00
f8683a0d60 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=81 2020-09-03 14:45:57 +00:00
685732a0c4 Sent the tarball as well
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=80
2020-09-03 08:36:34 +00:00
85db2d155a Factory doesn't like live services.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=79
2020-09-03 08:34:50 +00:00
bd2d08364e - Just say no to Python 2, it just doesn't work anymore.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=78
2020-09-02 20:13:53 +00:00
27dc4fee36 - Temporarily switch on _service to make jedi compatible with the
latest parso (gh#davidhalter/jedi#1665)
- Update to version 0.17.2+git.1596665570.216f976f:
  * Add a .readthedocs.yml to make sure that it's properly pip installed before the documentation is built
  * Formatting
  * if_stmt test clauses should be resolved at the start of the if_stmt
  * Basic implementation support for namedexpr, fixes #1647
  * Remove the requirements file and require latest parso
  * Use pathlib for file ios, because the new parso is out
  * Revert Django changes in a9e2cd5a74b3eea91ad2a866ff8152b42fc509c8
  * Use the default handling of optionals
  * Project attributes are now read accessible
  * Add explicit Optional annotation
  * Link mypy issue
  * Configure mypy and flake8 for our re-export files
  * Remove a couple of unused imports
  * These attributes aren't optional
  * Drop redundant rtype comment
  * Explain why we 'type: ignore' these properties
  * Give a bit more detail here
  * Also typecheck sith
  * Add ignores for stdlib imports only recently added
  * Configure the package root as implicit exports
  * Ignore this runtime-only import
  * Inherit from base class to placate mypy
  * Annotate potentially missing import
  * Change subclass to function wrapper
  * Ignore mypy not coping with decorated properties
  * Make this explicitly expect a Path
  * This is a Path now

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=77
2020-09-02 20:07:09 +00:00
Dominique Leuenberger
d358ecbeaf Accepting request 829964 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/829964
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=27
2020-09-01 18:06:40 +00:00
331f1767a8 Accepting request 829963 from home:bnavigator:branches:jedi
- Exclude pytest 6 gh#davidhalter/jedi#1660

OBS-URL: https://build.opensuse.org/request/show/829963
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=75
2020-08-27 11:06:22 +00:00
Dominique Leuenberger
3dbe54e9fc Accepting request 821570 from devel:languages:python
- Update to version 0.17.2
  * Added an option to pass environment variables to ``Environment``
  * ``Project(...).path`` exists now
  * Support for Python 3.9
  * A few bugfixes
- rpmlint zero length django-stubs

OBS-URL: https://build.opensuse.org/request/show/821570
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=26
2020-07-24 07:47:47 +00:00
1aea6dcf21 Update to 0.17.2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=73
2020-07-17 21:48:21 +00:00
Dominique Leuenberger
739f349a3c Accepting request 816146 from devel:languages:python
- Update to version 0.17.1
  * Django ``Model`` meta class support
  * Django Manager support (completion on Managers/QuerySets)
  * Added Django Stubs to Jedi, thanks to all contributors of the
    `Django Stubs <https://github.com/typeddjango/django-stubs>`_ project
  * Added ``SyntaxError.get_message``
  * Python 3.9 support
  * Bugfixes (mostly towards Generics) 
- drop jedi-pr1543-sorttest.patch merged upstream

OBS-URL: https://build.opensuse.org/request/show/816146
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=25
2020-06-27 21:20:35 +00:00
7375fdd96b - drop jedi-pr1543-sorttest.patch merged upstream
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=71
2020-06-20 12:16:28 +00:00
199417d4ad - Update to version 0.17.1
* Django ``Model`` meta class support
  * Django Manager support (completion on Managers/QuerySets)
  * Added Django Stubs to Jedi, thanks to all contributors of the
    `Django Stubs <https://github.com/typeddjango/django-stubs>`_ project
  * Added ``SyntaxError.get_message``
  * Python 3.9 support
  * Bugfixes (mostly towards Generics)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=70
2020-06-20 12:15:15 +00:00
Yuchen Lin
9134618513 Accepting request 808522 from devel:languages:python
- Skip two tests on leap not just sp1+

OBS-URL: https://build.opensuse.org/request/show/808522
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=24
2020-05-28 07:09:22 +00:00
Tomáš Chvátal
744e05d8a0 - Skip two tests on leap not just sp1+
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=68
2020-05-24 08:31:09 +00:00
728098438e skip erroneous discovery in leap 15.2 too
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=67
2020-05-19 14:07:12 +00:00
Dominique Leuenberger
f115c099dc Accepting request 794384 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/794384
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=23
2020-04-17 22:27:36 +00:00
997247497d Accepting request 794383 from home:bnavigator:branches:devel:languages:python
- Update to v0.17.0
  * Added ``Project`` support. This allows a user to specify which
    folders Jedi should work with.
  * Added support for Refactoring. The following refactorings have
    been implemented: ``Script.rename``, ``Script.inline``,
    ``Script.extract_variable`` and ``Script.extract_function``.
  * Added ``Script.get_syntax_errors`` to display syntax errors in
    the current script.
  * Added code search capabilities both for individual files and
    projects. The new functions are ``Project.search``,
    ``Project.complete_search``,  ``Script.search`` and
    ``Script.complete_search``.
  * Added ``Script.help`` to make it easier to display a help
    window to people. Now returns pydoc information as well for
    Python keywords/operators.  This means that on the class 
    keyword it will now return the docstring of Python's builtin
    function ``help('class')``.
  * The API documentation is now way more readable and complete.
    Check it out under https://jedi.readthedocs.io. A lot of it
    has been rewritten.
  * Removed Python 3.4 support
  * Many bugfixes 
- back to regular releases, no git service needed anymore
- jedi-pr1543-sorttest.patch gh#davidhalter/jedi#1543

OBS-URL: https://build.opensuse.org/request/show/794383
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=65
2020-04-15 21:09:37 +00:00
Dominique Leuenberger
ce18c1a345 Accepting request 793777 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/793777
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=22
2020-04-15 17:53:11 +00:00
86e95ff892 Accepting request 793600 from home:bnavigator:branches:devel:languages:python
- tell Leap 15.1 and SLE 15 SP1 pytest to ignore test/__init__.py so that a test file with purposely placed syntax errors does not trip the entire discovery
- reenable (most) unittests
- remove unbundle.patch -- according to upstream, typeshed is meant to be bundled.

I was made package maintainer some time ago, but for this SR I would like to have a project maintainer look at the revert of unbundling typeshed first.

Re-enabling the unit tests to make sure further work on python-language-server and spyder works with a sane package when unpinning their dependencies. Upstream of those packages does not like to support unpinned Jedi [1, 2].

[1] https://github.com/spyder-ide/spyder/issues/11975
[2] https://github.com/palantir/python-language-server/issues/744

OBS-URL: https://build.opensuse.org/request/show/793600
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=63
2020-04-14 08:51:52 +00:00
Dominique Leuenberger
33ac20685c Accepting request 786032 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/786032
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=21
2020-03-26 23:26:36 +00:00
2322b1aa2c Accepting request 786030 from home:bnavigator:branches:devel:languages:python
- fix version string to 0.16.0+git55.17b3611c

OBS-URL: https://build.opensuse.org/request/show/786030
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=61
2020-03-17 22:28:44 +00:00
Tomáš Chvátal
9c0449ce93 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=60 2020-03-17 09:17:41 +00:00
Tomáš Chvátal
30544dbeff - Update to version v0.16.0+git55.17b3611c:
* Included statement as a possible return type for BaseDefinition.type

- Disable tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=59
2020-03-16 09:21:27 +00:00
Tomáš Chvátal
5fd953c67c - Update to version v0.16.0+git54.0888dd46:
* Fix partialmethod issues
  * Make sure partialmethod tests are only executed for Python 3
  * Refactor stdlib PartialObject
  * Fix PartialMethodObject (WIP)
  * Changed semantics of ClassVar attributes in classes, fixes #1502
  * Avoid duplicate definitions for goto, fixes #1514
  * Merge _remove_statements and infer_expr_stmt, fixes #1504
  * Add partialmethod, fixes #1519
  * Attempt at a test of completion of filepath after ~.
  * Complete path after ~.

- Remove patches from git in preparation to switch to git service:
  * delete.patch
  * typing.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=58
2020-03-14 10:28:59 +00:00
Dominique Leuenberger
84be3c98cf Accepting request 782093 from devel:languages:python
- add typing.patch - fix test_sys_getwindowsversion with new parso

OBS-URL: https://build.opensuse.org/request/show/782093
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=20
2020-03-08 21:22:40 +00:00
f11d7b283a - add typing.patch - fix test_sys_getwindowsversion with new parso
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=56
2020-03-06 11:56:34 +00:00
Dominique Leuenberger
50d31ea9b0 Accepting request 769953 from devel:languages:python
- update to 0.16.0
- add delete.patch
 * Added Script.get_context to get information where you currently are.
 * Completions/type inference of Pytest fixtures.
 * Tensorflow, Numpy and Pandas completions should now be about 4-10x faster after the first time they are used.
 * Dict key completions are working now. e.g. d = {1000: 3}; d[10 will expand to 1000.
 * Completion for “proxies” works now. These are classes that have a __getattr__(self, name) method that does a return getattr(x, name). after loading them initially.
 * Goto on a function/attribute in a class now goes to the definition in its super class.
 * Big Script API Changes:
   + The line and column parameters of jedi.Script are now deprecated
   + completions deprecated, use complete instead
   + goto_assignments deprecated, use goto instead
   + goto_definitions deprecated, use infer instead
   + call_signatures deprecated, use get_signatures instead
   + usages deprecated, use get_references instead
   + jedi.names deprecated, use jedi.Script(...).get_names()
 * BaseDefinition.goto_assignments renamed to BaseDefinition.goto
 * Add follow_imports to Definition.goto. Now its signature matches Script.goto.
 * Python 2 support deprecated. For this release it is best effort. Python 2 has reached the end of its life and now it’s just about a smooth transition. Bugs for Python 2 will not be fixed anymore and a third of the tests are already skipped.
 * Removed settings.no_completion_duplicates. It wasn’t tested and nobody was probably using it anyway.
 * Removed settings.use_filesystem_cache and settings.additional_dynamic_modules, they have no usage anymore. Pretty much nobody was probably using them.

OBS-URL: https://build.opensuse.org/request/show/769953
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=19
2020-02-06 12:19:28 +00:00
05129cec46 - add delete.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=54
2020-02-04 11:43:22 +00:00
49510a83a9 - update to 0.16.0
* Added Script.get_context to get information where you currently are.
 * Completions/type inference of Pytest fixtures.
 * Tensorflow, Numpy and Pandas completions should now be about 4-10x faster after the first time they are used.
 * Dict key completions are working now. e.g. d = {1000: 3}; d[10 will expand to 1000.
 * Completion for “proxies” works now. These are classes that have a __getattr__(self, name) method that does a return getattr(x, name). after loading them initially.
 * Goto on a function/attribute in a class now goes to the definition in its super class.
 * Big Script API Changes:
   + The line and column parameters of jedi.Script are now deprecated
   + completions deprecated, use complete instead
   + goto_assignments deprecated, use goto instead
   + goto_definitions deprecated, use infer instead
   + call_signatures deprecated, use get_signatures instead
   + usages deprecated, use get_references instead
   + jedi.names deprecated, use jedi.Script(...).get_names()
 * BaseDefinition.goto_assignments renamed to BaseDefinition.goto
 * Add follow_imports to Definition.goto. Now its signature matches Script.goto.
 * Python 2 support deprecated. For this release it is best effort. Python 2 has reached the end of its life and now it’s just about a smooth transition. Bugs for Python 2 will not be fixed anymore and a third of the tests are already skipped.
 * Removed settings.no_completion_duplicates. It wasn’t tested and nobody was probably using it anyway.
 * Removed settings.use_filesystem_cache and settings.additional_dynamic_modules, they have no usage anymore. Pretty much nobody was probably using them.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=53
2020-02-04 09:39:35 +00:00
Dominique Leuenberger
df28d84aa6 Accepting request 759790 from devel:languages:python
- update to 0.15.2
- skip tests based on bundled typeshed
- refreshed unbundle.patch
 * Call signatures are now detected a lot better
 * Add fuzzy completions with Script(...).completions(fuzzy=True)
 * Files bigger than one MB (about 20kLOC) get cropped to avoid
    getting stuck completely.
 * A big refactoring around contexts/values

OBS-URL: https://build.opensuse.org/request/show/759790
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jedi?expand=0&rev=18
2019-12-29 14:49:26 +00:00