Dave Halter
ab42e856fb
Use unicode in compiled access
2017-12-26 03:24:26 +01:00
Dave Halter
6d70bd7d5c
Remove unused code
2017-12-26 03:18:16 +01:00
Dave Halter
c3483344fe
Refactor allowed_getattr_callback a bit to not raise random errors.
2017-12-24 12:55:32 +01:00
Dave Halter
993b0973c5
The default of one function was not actually used
2017-12-24 12:12:27 +01:00
Dave Halter
f494bb5848
The string_name of a Name should always be unicode
2017-12-24 04:05:28 +01:00
Dave Halter
4a366ab728
Refactor a bit and force unicode in some places and use an appropriate function name for it
2017-12-24 04:05:02 +01:00
Dave Halter
96a4fd7bd6
Fix a test fail because of the unicode changes
2017-12-24 03:53:27 +01:00
Dave Halter
fdd405f552
The environment selection had a bug
2017-12-24 03:47:35 +01:00
Dave Halter
085a9e0e33
More unicode conversions
2017-12-24 03:46:33 +01:00
Dave Halter
ee099a4ff7
Don't use getattr, use the abstractions
2017-12-24 03:39:28 +01:00
Dave Halter
40f1354f67
More unicode conversions
2017-12-24 03:35:15 +01:00
Dave Halter
a117f9f2e7
Avoid execution of Jedi in test setup
...
This makes testing Jedi potentially faster.
2017-12-24 03:25:43 +01:00
Dave Halter
5a06ea2699
Start using a lot more unicode literals for Python 2
2017-12-24 03:11:28 +01:00
Dave Halter
1f4e0dd22e
Make it possible to explicitly state the version in pytest for different envs
2017-12-24 03:01:47 +01:00
Dave Halter
a38acdbe08
Use unicode sys paths always
2017-12-24 02:42:14 +01:00
Dave Halter
7bfca5bcd7
Don't cast bytes to strings when unpickling
2017-12-23 21:18:04 +01:00
Dave Halter
c3520bea65
By default enable cross Python version tests in tox
2017-12-23 19:59:37 +01:00
Dave Halter
7ad37fb976
Skip more tests if it's necessary.
2017-12-23 19:56:47 +01:00
Dave Halter
87666d72a1
Move the import logic to the subprocess
2017-12-23 17:59:56 +01:00
Dave Halter
473be114f3
Move even more import stuff to a separate function
2017-12-23 17:10:57 +01:00
Dave Halter
e2f8d53ee4
Move some import parts around to refactor it
2017-12-23 16:16:17 +01:00
Dave Halter
4ab7f7a0b0
Make ImplicitNamespaceContext a bit cleaner
2017-12-21 23:43:47 +01:00
Dave Halter
723d6515ac
Change two tests that were written in a strange way
2017-12-20 10:36:39 +01:00
Dave Halter
a96f2c43df
Add a way to skip typing tests in non default environments
2017-12-20 10:07:16 +01:00
Dave Halter
890dd2213d
Use better error messages for import errors
2017-12-19 23:51:05 +01:00
Dave Halter
456ae20aac
Start using the new virtualenv code
...
There used to be a lot of code to kind of understand virtualenvs. This can all be removed now, because this is done in a subprocess with the correct interpreter
2017-12-19 21:05:04 +01:00
Dave Halter
96a67f9a4c
Start using the correct parser for each environment
2017-12-19 19:19:35 +01:00
Dave Halter
a9ebd92c20
Add a way to specify environments in tox
2017-12-19 19:02:57 +01:00
Dave Halter
6780eba157
Fix sys_path propagation for builtins load_module
2017-12-18 20:16:58 +01:00
Dave Halter
aa40ef3140
A small refactoring
2017-12-18 20:03:23 +01:00
Dave Halter
5f2b49d039
Merge branch 'master' into virtualenv
2017-12-18 01:41:29 +01:00
Dave Halter
46b62b7bed
evaluate/docstrings.py
...
Make some docstring stuff easier
2017-12-18 01:40:21 +01:00
Dave Halter
f5c7e3bb06
Don't import numpydoc in the beginning
...
There were issues in combination with importing it with subprocesses
2017-12-18 01:34:19 +01:00
Dave Halter
8b3ee75654
Ignore the build directory for pytest
2017-12-17 21:35:39 +01:00
Dave Halter
fe3e8a0867
Refactor environments a bit
2017-12-17 18:47:28 +01:00
Dave Halter
1c62db04ba
Make it possible to get the right version parser for a certain environment
2017-12-16 00:30:47 +01:00
Dave Halter
d0732e58cc
api.virtualenv -> api.environment
2017-12-15 18:20:35 +01:00
Dave Halter
0d7f93c019
DefaultEnvironment -> get_default_environment
2017-12-15 18:13:21 +01:00
Dave Halter
3cd5fa3c20
Better support for searching python environments
2017-12-15 12:19:52 +01:00
Dave Halter
f37089e54b
Bump the version number
2017-12-15 10:47:14 +01:00
Dave Halter
69237c4aa6
Add a changelog for jedi 0.11.1
2017-12-15 10:45:27 +01:00
Dave Halter
02f238ce08
Add the executable bit to deploy-master.sh
2017-12-14 22:51:02 +01:00
Dave Halter
e526cb1ae3
Don't run Python 2.6 in tox by default
...
Python 2.6 seems to be harder and harder to run in tox if setuptools is not properly configured for it.
It's still possible to run it and it still runs on travis.
2017-12-14 22:50:13 +01:00
Dave Halter
62915686af
Don't use pytest 3.3+ because it removed support for Python 3.3
2017-12-14 22:29:13 +01:00
Dave Halter
c3efde3bfa
Add an optimization around compiled dir()
2017-12-14 22:28:22 +01:00
Dave Halter
950cab2849
Fix a potential issue in evaluate/stdlib
2017-12-14 22:24:37 +01:00
Dave Halter
9d094b68f3
Cache the subprocess results
2017-12-14 22:23:59 +01:00
Dave Halter
94e2e92888
Remove unit test class from speed tests
2017-12-13 19:22:45 +01:00
Dave Halter
e03afc60ef
Make get_repr static in access.
2017-12-13 19:16:29 +01:00
Dave Halter
0acb7dcb18
There was a bug in creating modules in a subprocess
2017-12-12 18:08:49 +01:00
Dave Halter
8003d30b06
Fix the Python 2.7 tests
2017-12-11 21:39:30 +01:00
Dave Halter
b196c6849b
Don't try to pickle ellipsis
2017-12-11 20:55:34 +01:00
Dave Halter
fa2712a128
Ignore __main__ modules
2017-12-11 09:23:13 +01:00
Dave Halter
3a7bc92863
Use builtins_module instead of BUILTINS
2017-12-10 18:52:51 +01:00
Dave Halter
afb73876ac
Don't use the pickler modification anymore. That doesn't work in other python versions and was in general a bit hard to do
2017-12-10 18:39:03 +01:00
Dave Halter
aa7319dba5
Remove the last test failures.
2017-12-09 17:38:45 +01:00
Dave Halter
649225333f
Get the subprocess mostly working
2017-12-08 09:44:12 +01:00
Dave Halter
a210be8198
Don't use the create function anymore in compiled
...
Now the whole creation of builtin objects is abstract and was moved to subprocesses etc.
2017-12-06 15:26:29 +01:00
Dave Halter
13f8f37547
Use even more subprocess accesses
2017-12-06 15:16:27 +01:00
Dave Halter
42fb93dc01
Use the subprocess access to create acceses
2017-12-06 15:06:48 +01:00
Dave Halter
f09ca9fc20
Use access handles everywhere
2017-12-06 14:46:27 +01:00
Dave Halter
7db6d11c49
Create a way of accessing access objects through a subprocess
2017-12-06 14:18:10 +01:00
Dave Halter
34bd19ee8d
Use a class instead of a dict in get_special_objects
2017-12-05 08:44:36 +01:00
Dave Halter
79071790da
Move get_special_object
2017-12-05 00:32:39 +01:00
Dave Halter
542644ad19
Move load_module a bit around
2017-12-04 19:18:30 +01:00
Dave Halter
617b11c92b
Move another usage of create to builtin_from_name
2017-12-04 08:57:43 +01:00
Dave Halter
3f25ba436c
Use sys.modules instead of __import__
...
The module should already have been imported at this point. Plus if the __module__ was wrong it won't just randomly import something.
2017-12-04 00:21:12 +01:00
Dave Halter
85abc55e89
Remove unused code
2017-12-03 19:39:31 +01:00
Dave Halter
15d9e64281
Start creating access objects in a different way
2017-12-03 19:37:03 +01:00
Dave Halter
3c78aad8b1
Use create_simple_object for a lot of use cases
2017-12-02 01:59:48 +01:00
Dave Halter
2aa2005502
Move some of the compiled.create calls to compiled.builtin_from_name
2017-12-01 09:54:29 +01:00
Dave Halter
543f4f7ff2
Move some stuff from compiled to context
2017-11-29 01:03:01 +01:00
Dave Halter
4f04f7f09c
Remove stuff from CompiledObject that didn't belong there and wasn't used
2017-11-29 00:42:16 +01:00
Dave Halter
37c3f0904d
create_from_access -> _create_from_access
2017-11-29 00:25:30 +01:00
Dave Halter
ba0768bab6
Refactor a bit more and remove the parent_context parameter from create_from_access
2017-11-29 00:24:28 +01:00
Dave Halter
187a523e05
Isolate fake stuff a bit more
2017-11-29 00:18:43 +01:00
Dave Halter
10e9dac758
Simplify an if
2017-11-28 21:39:00 +01:00
Dave Halter
6ec3e50a16
Rewrite bases
2017-11-28 21:20:55 +01:00
Dave Halter
cce9a1cf6a
Use create only for non access objects
2017-11-28 21:15:55 +01:00
Dave Halter
c1f31e0328
Some simplification of _create_from_access
2017-11-28 20:35:49 +01:00
Dave Halter
74495d518f
Remove the old now unused fake code
2017-11-28 18:39:05 +01:00
Dave Halter
47114178e9
Fake context python code is now not the base for a lot of things anymore. It just gets executed.
2017-11-28 18:26:12 +01:00
Dave Halter
a2b08eabc6
Rename SelfNameFilter to SelfAttributeFilter
2017-11-28 18:06:00 +01:00
Dave Halter
85bda448b1
Simplify one if statement
2017-11-28 08:43:56 +01:00
Dave Halter
e69509b1d9
Refactor LazyInstanceName -> SelfName
2017-11-27 21:08:39 +01:00
Dave Halter
b31d928704
Fix all tests except fake docstring stuff
2017-11-26 22:49:07 +01:00
Dave Halter
02fb73655c
Fix a slice test with a better helper function
2017-11-26 22:18:51 +01:00
Dave Halter
accf20226d
Fix a few more tests
2017-11-26 22:07:13 +01:00
Dave Halter
85ce57a863
Creating objects works now a bit better but is a huge mess.
2017-11-26 18:26:02 +01:00
Dave Halter
e71f0062dd
Get a lot of tests passing
2017-11-26 17:48:00 +01:00
Dave Halter
c266fb301b
Make params work with access
2017-11-26 01:48:43 +01:00
Dave Halter
7263d8565b
Add an access abstraction (only array tests work, yet)
...
The access abstraction will be the new way of accessing builtin objects. This way it will be easier to move that to another process
2017-11-25 19:47:49 +01:00
Dave Halter
52bc1be84e
The check if we should add type completions is now a bit more obvious
2017-11-24 08:55:16 +01:00
Dave Halter
1a7fc512bc
Eliminate CompiledObject.type
2017-11-23 21:50:18 +01:00
Dave Halter
4dc2ad281d
Make some faked things private
2017-11-22 19:22:18 +01:00
Dave Halter
37533c5d51
Cleanup some compiled stuff.
2017-11-22 19:04:02 +01:00
Dave Halter
96a0003cb5
Progress in executing builtin stuff in submodules.
2017-11-20 21:02:40 +01:00
Dave Halter
87452639ad
Exceptions now also work over the subprocess.
2017-11-17 01:54:05 +01:00
Dave Halter
4a7d715a57
Finally got compiled_objects and the access to them working
2017-11-17 01:42:27 +01:00
Dave Halter
73576b2a8b
Progress when working with evaluators
2017-11-17 01:21:38 +01:00