Commit Graph

142 Commits

Author SHA1 Message Date
Semyon Proshev
55b934691b Sync with typeshed @ c3e04054cfe24866ff2c80955a8d8718ece20ed4
Builtins are split again, no need to split them on our side.

GitOrigin-RevId: 886e3d424f9f698271ee6c610358a3de9a28dca5
2020-11-11 18:09:08 +00:00
Mikhail Golubev
868c653105 Fail fast in BuildZippedSkeletons.kt when PYCHARM_PYTHONS is not defined
GitOrigin-RevId: 4f58381822c198ad31d6e34a4a10827bd7de382a
2020-11-04 19:23:35 +00:00
Aleksey Rostovskiy
e6e6e0f7bb Python stubs: return back 3.6.8 version
GitOrigin-RevId: 31a5983bf54cd4efc38702b260943feaedc617ca
2020-10-29 15:09:09 +00:00
Aleksey Rostovskiy
b73ea35c16 Python stubs: remove 3.6.8 version and add 3.9.0
GitOrigin-RevId: 0a357e61cfd21da3c3705882f7d334ea56ab0aaa
2020-10-22 00:55:12 +00:00
Semyon Proshev
feed56de02 Sync with typeshed @ 10d3c6c325090172d5dc1cb99c5ce8a9319d88b2 (PY-41509, PY-41510, PY-44819)
Enable stubs for contextlib, cprofile, fractions, keyword, pipes, pkgutil, typed_ast, zoneinfo.
Skipped several `__init__` to `__new__` changes in builtin classes.

GitOrigin-RevId: dad913f67c69396d0db2d5e550254535713ea2f3
2020-10-19 21:15:33 +00:00
Aleksey Rostovskiy
034f996a4d PyCharm: update python 3.7 in build.gradle files for tests and other utilities to 3.7.8
surprisingly there is no 3.7.9 in pyenv

GitOrigin-RevId: 825780f32b2fb0c708c2c2a41a72cd781f44ef68
2020-08-19 00:07:30 +00:00
Aleksey Rostovskiy
0f9fb1de06 PyCharm: update python versions in build.gradle files for tests and other utilities
GitOrigin-RevId: 7f203001e70c0592bc00d616c19b1878402b1183
2020-08-18 20:32:04 +00:00
Nikolay Chashnikov
edf752f25c [python tools] get rid of dependency on python build scripts
This is needed to ensure that jps-build-script-dependencies-bootstrap library which comes as transitive dependency from build scripts modules won't conflict with dependencies on platform modules (IDEA-222049).

GitOrigin-RevId: 50a49576c03e4fa1ca5cbecc2c3fb117977a3bfb
2020-08-14 16:54:52 +00:00
Semyon Proshev
07de29ae8e Switch typeshed synchronization to use blacklist instead of whitelist
GitOrigin-RevId: db176d2aa8c3a69183798d85098b950910be6dfc
2020-06-02 22:37:58 +03:00
Semyon Proshev
425b711c8a Enable pyi-stubs for several modules and packages
_bisect, _bootlocale, _compat_pickle, _msi, _py_abc, _sitebuiltins,
_tracemalloc, _winapi, _winreg, aifc, atomicwrites, base64, bz2,
chardet, compileall, ftplib, hmac, lzma, mmap, msilib, pkg_resources,
random, sunau, tracemalloc, tzlocal, urlparse, waitress, wave,
winreg, wsgiref, xmlrpc

GitOrigin-RevId: f0cdd560c24199b2f16dce094b0be2240950fb13
2020-06-02 22:37:57 +03:00
Semyon Proshev
a38d011cae Enable pyi-stubs for several modules and packages
_dummy_threading, _types, _warnings, antigravity, asyncore, cgi, doctest, faulthandler, filecmp, gettext, imghdr, importlib, locale, mimetypes, parser, pathlib2, pstats, pydoc, select, selectors, statistics, struct, tarfile, termios, textwrap, this, venv, warnings, winsound, zipfile

GitOrigin-RevId: c8711b1ea14eb6965141eff91de79d39695c07d2
2020-03-25 18:44:05 +00:00
Semyon Proshev
6d9d0f1ebd Enable pyi-stubs for several modules and packages. Fix top-level packages clean up
_compression, _heapq, _imp, _random, array, dateutil, orjson, plistlib, py_compile,
resource, socketserver, sre_constants, tokenize, uu, zipapp, zipimport

GitOrigin-RevId: 1b8bdfb4aa5287557e6a350ad272220c4fd1dca3
2020-02-27 12:32:08 +00:00
Semyon Proshev
9799019c57 Enable pyi-stubs for several modules and packages
_json, ast, cryptography, curses, fcntl, gc, imaplib, ipaddress, marshal, modulefinder, sre_parse, tempfile

GitOrigin-RevId: 026d76a70e3ec228701fc2f521edc5a2c26e7d04
2020-02-26 16:07:53 +00:00
Aleksey Rostovskiy
454ce813b6 PyCharm: update python versions for Stubs
GitOrigin-RevId: c08cd59cb72a479c65f29505370922f5c7da4370
2020-02-04 12:37:14 +00:00
Aleksey Rostovskiy
e674727abc PyCharm: fix GetPyStubsVersionKt
GitOrigin-RevId: a350f786684bab6844b8cc6a900a7d7d9d889084
2020-02-04 12:37:14 +00:00
Semyon Proshev
53f9583a7f Enable pyi-stubs for several modules and packages
bdb, binascii, cmd, codecs, inspect, opcode, pdb, requests, token, zlib

GitOrigin-RevId: 8b2b546e1e92aa15bdfdba4154809ad4b2d69d82
2020-01-31 20:02:00 +00:00
Semyon Proshev
96a915806c Enable pyi-stubs for several modules and packages (PY-20708, PY-28784)
_csv, _curses, _operator, difflib, distutils, hashlib, heapq, operator, pprint, webbrowser
Remove csv tests as they covered python-skeletons (PY-19522)

GitOrigin-RevId: ddeb6e102a908eaf73fe9b679efb11dfd8599cdd
2020-01-31 13:04:03 +00:00
Semyon Proshev
1946a270a6 Enable pyi-stubs for several modules and packages and make white-list case insensitive
_codecs, _thread, audioop, cmath, configparser, Crypto, csv, dbm, decimal, gflags, http, json, pickle, pyexpat, turtle

GitOrigin-RevId: c36ac241d91d81bbaaa4164554ce03bd1a37840e
2020-01-30 19:06:53 +00:00
Semyon Proshev
35ba0742ca Sync with typeshed @ 48d77d5f067144ebca0738882906bb996e0e7ab3 (PY-39848)
Excluding https://github.com/python/typeshed/pull/3252

GitOrigin-RevId: bd535fbff565aef2ba42fd99a7d4a5c7f5c770a8
2020-01-30 19:06:53 +00:00
Semyon Proshev
2b40e2ffe3 Enable xml stubs (PY-39061)
GitOrigin-RevId: cbde80de3256af9b10f67851a92eec3cb0a8ce06
2020-01-10 12:40:13 +00:00
Semyon Proshev
0d9826d746 Enable contextvars stubs (PY-39618, PY-39976)
GitOrigin-RevId: b4244a417e290607b5c36c7b649ee1b602da2735
2020-01-10 12:40:13 +00:00
Vladimir Krivosheev
db05f64608 simplify python stub generator
GitOrigin-RevId: ee2ebf724a3f273d760af91dda97e9f89fb5c398
2019-12-06 08:07:25 +00:00
Vladimir Krivosheev
ad79717fcb use Path
GitOrigin-RevId: c01f511df4039673f1fe0f378c758957c656d592
2019-12-06 08:07:25 +00:00
Dmitry Batkovich
08c93de981 add stacktraces
GitOrigin-RevId: b48787f4d0151ffc175da907108ffc5700cc7741
2019-12-06 06:41:57 +00:00
Dmitry Batkovich
ac4a976da2 explicitly call exitProcess for python prebuilt index builders
GitOrigin-RevId: e2c7d39f8958d287d968964fa749dc3e134d24e3
2019-12-06 06:41:57 +00:00
Vladimir Krivosheev
8254a47327 use run all approach to dispose app and detect memory leaks in tests
GitOrigin-RevId: b95c4d54ab32fb1577729c3894e118ac38901334
2019-12-05 12:38:14 +00:00
Vladimir Krivosheev
90bff45151 cleanup, no need to correctly dispose app for stub generator
GitOrigin-RevId: e7aae35726de408f51937c2889520d479b516786
2019-11-30 08:07:58 +00:00
Vladimir Krivosheev
6f359c7a9d ensure that app is disposed correctly and message bus respect project container state
GitOrigin-RevId: d0ed042a9008c0397030694a2984b159dbd2c31b
2019-11-22 21:31:42 +00:00
Semyon Proshev
cff3f1f86d Enable pyi-stubs for os (PY-23258, PY-21395, PY-21394, PY-21397, PY-17420, PY-28984, PY-27584)
GitOrigin-RevId: 34ecf07bc68276e62315d01f3c3347f79026ec65
2019-11-20 11:37:02 +00:00
Mikhail Golubev
a46d649753 PY-34019 Read the current generator version directly from resources
We used to launch the generator itself for that but it seems completely
unnecessary since these versions can only diverge in case of remote interpreters
and we forcefully update helpers on a remote on every IDE release, so they
should be always in sync.

GitOrigin-RevId: 6d22dd0c0f3c3938a1a739246c98eda2f05c1ce0
2019-11-18 21:11:28 +00:00
Mikhail Golubev
32a462f1b9 PY-34019 Restore generator version in names of artifacts with prebuilt skeletons
GitOrigin-RevId: a5c6f688f4c63c77f05e9b90a4d1f44451642b93
2019-11-18 21:11:28 +00:00
Mikhail Golubev
fe5a9ac96f PY-34019 Remove now redundant SkeletonVersionChecker as all the checks are performed on Python side
GitOrigin-RevId: 7d2b61acafaa4c3ac66ab91ae891fbf3bea1fb8c
2019-11-18 21:11:28 +00:00
Andrey Vlasovskikh
d055d648b2 Introduced intellij.python.community.testFramework instead of depending on intellij.python.tools
Module intellij.python.tools depends explicitly on PyCharm Community which leads to errors when
you try to run Python Community tests in the context of any other IDE. This commit introduces
a testFramework module for Python that now contains code from intellij.python.tools necessary
for running tests.

GitOrigin-RevId: 9789469edc396a8b0f7408d453017a5b4e1eebc2
2019-11-18 19:07:46 +00:00
Semyon Proshev
7c242060fc Enable pyi-stubs for __future__, cPickle and numbers
No `Lib` and `python_stubs` folders in MockSDK2.*
No `python_stubs` folder in MockSDK3.*

GitOrigin-RevId: 9918e003b86ba1fde0c85ab56469c586f0f07171
2019-10-21 14:35:20 +00:00
Aleksey Rostovskiy
d795d98ed9 pycharm pre-built stubs and skeletons: remove python 3.5
GitOrigin-RevId: 385c89a2305b8602b99660b12ded3a85186d4d7d
2019-10-17 20:32:57 +00:00
Semyon Proshev
8fbc41df8a Add dependency to basic python from python tools module
GitOrigin-RevId: 1492f6aca961cf51ad4d9131693ec8f48f6cdba4
2019-10-17 16:43:44 +00:00
Aleksey Rostovskiy
b100ad183e fix task version name: there shouldn't be two tasks with the same name
GitOrigin-RevId: d17f47b9d042b85fe3e4a7338ac69e0364c3e29d
2019-10-17 12:07:07 +00:00
Aleksey Rostovskiy
b5e652f9f1 PyCharm: update python versions in build.gradle files for tests and other utilities
GitOrigin-RevId: 6ff375bac39e6c4d3bca05b52734ca55449f454c
2019-10-17 10:36:10 +00:00
Semyon Proshev
3885986490 Enable werkzeug stubs (PY-38127)
GitOrigin-RevId: d94ba40cadc22de442c83e4af381a489d44dcb52
2019-10-01 13:03:47 +00:00
Semyon Proshev
0602b70d42 Use one approach to set project and module sdk
GitOrigin-RevId: b3320d86ca121cbde0374a25abf885af84390a85
2019-09-25 19:03:54 +00:00
Semyon Proshev
2069d71ada Enable email stubs (PY-26535)
GitOrigin-RevId: ddfd974c72749303e1dd65b6435d243b4c2488d9
2019-09-17 19:34:15 +00:00
Semyon Proshev
764534cd3d Enable crypt and logging stubs (PY-33822, PY-34461)
GitOrigin-RevId: b87836128eaff6ef827ff5aaab8ae3c6dc17e9ce
2019-09-17 19:34:15 +00:00
Semyon Proshev
5a64f366d1 Enable sys stubs (PY-34461)
GitOrigin-RevId: d1bf0dc135aeb088412c69e47012e381456e9a6e
2019-09-17 19:01:39 +00:00
Semyon Proshev
6ca7e324f9 Enable concurrent stubs (PY-35750)
GitOrigin-RevId: 3f527f20a81be5c566ebce2555884e77a3ea1ab1
2019-09-17 19:01:39 +00:00
Semyon Proshev
444b3b78f3 Enable urllib stubs (PY-15489)
GitOrigin-RevId: 904f2172be4b16ab9e9cb0d2642afa71b7431afc
2019-09-17 19:01:39 +00:00
Dmitry Trofimov
a0bc048dcc python-psi-impl extracted
GitOrigin-RevId: e3d808c147ac793701c7b628dbf825a99bb71f2a
2019-09-11 19:15:01 +00:00
Semyon Proshev
9dcbfb78fd Reduce PythonSdkType.activateVirtualEnv(String) usages (EA-209936)
Use `PythonSdkType.activateVirtualEnv(Sdk)` instead with caching.

GitOrigin-RevId: 175afc2b52a4f50f4e63c3f33a2f89aab85ffd39
2019-09-03 14:59:03 +00:00
Roman Shevchenko
4ccc87aedf [python] migrates stubs builder to Compressors API
GitOrigin-RevId: d2ea756bad0123d101bc824cb8ff84f590e1e9fc
2019-07-29 12:20:20 +03:00
Roman Shevchenko
f7b452fc96 [python] migrates skeleton builder to Compressors API
GitOrigin-RevId: 03aa78749668bdaacb3a5fc4215b874148614657
2019-07-29 12:20:20 +03:00
Semyon Proshev
4f0ef66160 Enable abc stubs (PY-33830)
GitOrigin-RevId: 7693f2e1cfffbee0a3580990f25f16f540aa7d75
2019-07-26 02:57:50 +03:00