Dave Halter
ebe8123b4c
Finding the autocompletion stack is a bit more complicated than I initially thought
...
Fixes #968 .
2018-01-31 08:45:01 +01:00
Dave Halter
91d3c1f6d3
Force unicode on django paths
2018-01-30 00:40:50 +01:00
Dave Halter
c9fa335145
Fix a goto_assignments issue with a better internal API
...
Fixes #996 .
2018-01-29 08:58:59 +01:00
Dave Halter
1304b4f9e8
Reorder some open flags for Python 2
2018-01-26 01:31:47 +01:00
Dave Halter
68f15c90ac
Undo most of the namespace changes and use module again
...
Is a module like every other module, because if you import an empty
folder foobar it will be available as an object:
<module 'foobar' (namespace)>.
See #1033 .
2018-01-25 20:51:55 +01:00
Dave Halter
04fba28d35
Differentiate between namespace and module as a type
...
Also fixed a bug related to implicit namespace contexts, fixes #1033 .
2018-01-25 20:35:54 +01:00
Dave Halter
33c9d21e35
Use Scripts for virtualenvs instead of bin for windows
...
Thanks @blueyed for the hint.
2018-01-25 19:55:10 +01:00
Dave Halter
68f840de60
Refactor django path support
2018-01-24 19:13:05 +01:00
Dave Halter
e4559bef51
Fix project path finding
2018-01-23 20:30:27 +01:00
Dave Halter
e6f934de11
Add a repr for Project
...
Also remove setstate from it, since we intend to serialize it with json.
2018-01-23 19:21:50 +01:00
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
Dave Halter
877383b110
Add a test to avoid encoding issues. Fixes #1003
2018-01-20 18:28:29 +01:00
Dave Halter
16b463a646
Refactor to avoid having unicode decode errors by default
2018-01-19 19:23:11 +01:00
Dave Halter
2b577fcd5c
Clarity
2018-01-17 19:24:08 +01:00
Dave Halter
d61aa50399
Remove the get_default_project caching
2018-01-17 19:23:30 +01:00
Dave Halter
4e4f75c882
evaluate.project doesn't exist anymore. Eliminated code that used it
2018-01-17 19:11:20 +01:00
Dave Halter
bf0b6741aa
At the moment, don't allow projects as an input to script
2018-01-17 09:57:58 +01:00
Dave Halter
9b5e3447d9
Make the new project API fully work in tests
2018-01-17 09:54:11 +01:00
Dave Halter
fe813292cf
Try to migrate to the new project API
2018-01-16 23:56:35 +01:00
Dave Halter
9b9587a9dd
Refactor to make configuratios of sys paths easier
2018-01-16 19:20:55 +01:00
Dave Halter
ddaf175b11
Use the evaluate.project sys path stuff for api.project
2018-01-16 10:03:28 +01:00
Dave Halter
c6240d5453
Cache the default project
2018-01-16 00:20:33 +01:00
Dave Halter
2a0e8f91d3
A possible introduction for projects
2018-01-15 23:57:08 +01:00
Dave Halter
999fb35914
Check for safe and unsafe environments when searching for them
2018-01-11 08:59:39 +01:00
Hugo
3e8cd9f128
Use set literals
2018-01-07 10:40:36 +02:00
Hugo
8cf708d0d4
Remove redundant parentheses
2018-01-07 10:40:06 +02:00
Dave Halter
9c5ce5a8d2
Try to use the virtual env that was defined in the VIRTUAL_ENV variable, if possible.
2018-01-02 01:28:02 +01:00
Dave Halter
927aa2bd91
Try to recover from errors that are happening in subprocesses
2018-01-02 00:24:15 +01:00
Dave Halter
d93b613fd9
Move the default environment around
2018-01-01 20:37:50 +01:00
Dave Halter
0ed9e1c249
The given sys_path gets converted to unicode now in py2
2017-12-30 03:40:01 +01:00
Dave Halter
e2629b680f
Test if virtualenvs and pth files work
2017-12-30 00:02:14 +01:00
Dave Halter
da211aa63d
Use the Script fixture more generally
2017-12-29 18:40:17 +01:00
Dave Halter
ba81aa16a2
Use unicode in way more cases
2017-12-28 23:19:17 +01:00
Dave Halter
37d282e67b
Always use the parser of the environment
2017-12-28 21:19:26 +01:00
Dave Halter
a7168db1ea
Remove unused keyword code
2017-12-26 14:13:56 +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
96a4fd7bd6
Fix a test fail because of the unicode changes
2017-12-24 03:53:27 +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
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
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
3a7bc92863
Use builtins_module instead of BUILTINS
2017-12-10 18:52:51 +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
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
73576b2a8b
Progress when working with evaluators
2017-11-17 01:21:38 +01:00