1
0
forked from VimPlug/jedi
Commit Graph

21 Commits

Author SHA1 Message Date
Dave Halter
d986c44b94 Merge with master
The deprecation of Python2.6 and the insertion of environments made it quite difficult to merge.
2018-01-20 19:32:59 +01:00
Hugo
cc623218e5 Replace function call with set literal 2018-01-07 10:40:06 +02:00
Dave Halter
f17afc6519 Try to avoid the pth tests not working because of the created virtualenv in tox 2017-12-30 03:15:28 +01:00
Dave Halter
e2629b680f Test if virtualenvs and pth files work 2017-12-30 00:02:14 +01:00
Dave Halter
5fc755b0cf stdlib fixture conversions 2017-12-29 19:13:15 +01:00
Dave Halter
51d2ffb078 Use sys path mostly from project and move some sys path stuff around. 2017-10-05 10:06:28 +02:00
Dave Halter
e0485b032e Fix some stuff to make parso work again. 2017-06-02 00:00:31 +02:00
Dave Halter
eaa5100372 Removed Scope.statements from the parser tree. 2017-04-28 18:18:58 +02:00
Dave Halter
5b9e5f96aa Merge with master. 2017-01-02 13:05:45 +01:00
Dave Halter
ee1f077014 Some test refactorings. 2016-12-03 14:32:00 +01:00
Daniel Hahler
f7f966805f sys_path: prepend/prefer egg-link files
With `pip install -e` the generated .egg-link file gets preferred over
any normally installed distribution, and `pip uninstall` will first
remove the egg-link before the normal package.
2016-10-14 14:18:09 +02:00
Dave Halter
c4906e0e3f Rework the parser so we can use arbitrary start nodes of the syntax.
This also includes a rework for error recovery in the parser. This is now just possible for file_input parsing, which means for full files.
Includes also a refactoring of the tokenizer. No more do we have to add an additional newline, because it now works correctly (removes certain confusion.
2015-12-20 22:25:41 +01:00
Dave Halter
306d274a3d Merge dev into linter. 2015-11-10 21:52:18 +01:00
Dave Halter
84c43bf2dc Correct issues with slices and some more subtle bugs. 2015-11-01 21:30:41 +01:00
immerrr
cc139e8f70 evaluate.site: copy/adapt site-packages related functionality from stdlib 2015-10-26 13:03:42 +03:00
immerrr
da4dbe81a9 sys_path: order egg-link files for reproducible test results 2015-10-26 13:03:42 +03:00
immerrr
f500457100 sample_venvs: exclude venvs dir from py.test discovery 2015-10-26 13:03:42 +03:00
immerrr
4eb3cf7921 Improve virtualenv support & egg-link resolution
- add sys_path= kwarg to Script & Evaluator constructors

- store sys_path for each evaluator instance

- replace get_sys_path with get_venv_path

- get_venv_path: use addsitedir to load .pth extension files

- get_venv_path: look for egg-link files in all directories in path
2015-10-26 13:03:42 +03:00
Daniel Hahler
8621aae73c Add any .egg-link paths from VIRTUAL_ENV to sys.path
Adding test_get_sys_path required factoring out
`_get_venv_sitepackages`, because `sys.version_info` cannot be mocked
apparently.
2015-01-25 21:35:09 +01:00
Dave Halter
528b325c39 Remove precedence tests. They are not needed anymore, since precedence is now handled by the parser itself. 2014-12-07 14:41:57 +01:00
Dave Halter
fdc637c5c4 Add a forgotten test module, test_sys_path.py and fix Python2/3 compatibility issues. 2014-09-09 17:08:22 +02:00