Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move from % syntax to format or f-strings | Pierre Sassoulas | 2021-02-17 | 1 | -2/+2 |
| | | | | This is possible with python 3.6 | ||||
* | Remove the # coding, since PEP3120 the default is UTF8 | Pierre Sassoulas | 2021-02-17 | 1 | -1/+0 |
| | |||||
* | Removes insecable whitespaces | hippo91 | 2020-12-29 | 1 | -8/+8 |
| | |||||
* | Formatting according to black | hippo91 | 2020-12-28 | 1 | -8/+8 |
| | |||||
* | Adds copyright notice | hippo91 | 2020-12-28 | 1 | -0/+1 |
| | |||||
* | Adds comment to explain the use of sys.base_prefix | hippo91 | 2020-12-28 | 1 | -3/+11 |
| | |||||
* | Seems like the only way to have a valid get_python_lib(standard_lib=True) ↵ | hippo91 | 2020-12-28 | 1 | -0/+1 |
| | | | | with pypy is to specifiy the prefix = sys.base_prefix | ||||
* | sys.real_prefix doesn't exist anymore with recent version of venv. Use ↵ | hippo91 | 2020-12-28 | 1 | -1/+1 |
| | | | | base_prefix instead | ||||
* | Adds print to debug travis failure with pyp | hippo91 | 2020-12-28 | 1 | -0/+3 |
| | |||||
* | New copyright notices | hippo91 | 2020-12-27 | 1 | -0/+1 |
| | |||||
* | Remove dependency on imp. | Peter Kolbus | 2020-11-27 | 1 | -79/+29 |
| | |||||
* | Add missing copyright annotations for the past releases | Claudiu Popa | 2020-04-27 | 1 | -1/+5 |
| | |||||
* | Add an optional `path` parameter to `modpath_from_file` | Claudiu Popa | 2020-03-11 | 1 | -16/+21 |
| | | | | | | | Because we'll no longer have the current working directory, nor the module's directory in `sys.path`, we need to be able to pass additional paths to be checked against when trying to load a module. Most of the functions in this module already accepted a `path` parameter, except `modpath_from_file`. | ||||
* | Kill `extrapath` from various `modutils` functions as it was not used | Claudiu Popa | 2020-03-11 | 1 | -25/+8 |
| | |||||
* | Remove redundant compatibility code (#693) | Hugo van Kemenade | 2019-09-10 | 1 | -4/+0 |
| | |||||
* | make is_standard_module() properly classify extensions (#659) | markmcclain | 2019-03-29 | 1 | -3/+4 |
| | | | | | | | | | | | | Extensions can be installed in either a platform independent or specific location[1]. The search is updated to include both paths. Previously, an extension in the platform specific location would be misclassified because only the independent location was considered and the platform specific location shared a prefix with the standard lib. [1] http://docs.python.org/3/distutils/apiref.html#distutils.sysconfig.get_python_lib Fixes Issue: #658 Co-authored-by: Matt Story <s.matt.story@gmail.com> | ||||
* | Optimize _is_python_file check using tuple (#657) | BasPH | 2019-03-27 | 1 | -4/+1 |
| | |||||
* | Initial formatting of astroid | Claudiu Popa | 2018-10-02 | 1 | -60/+73 |
| | |||||
* | Spelling fixes | Ville Skyttä | 2018-07-24 | 1 | -1/+1 |
| | |||||
* | Update the copyright noticesastroid-2.0 | Claudiu Popa | 2018-07-15 | 1 | -1/+9 |
| | |||||
* | Include abspath of sys.path on searches at load_from_module | Mario Corchero | 2018-07-05 | 1 | -2/+4 |
| | | | | | | | | | | At the moment `load_from_module` is resolving all paths in `sys.path` to validate that the module being import is in a folder part of the path. This is done to resolve symlinks. This can be an issue though it both the file being imported and the path in `sys.path` resolve to different locations. Even if the symlinks are importable, the resolution of the paths in `sys.path` might not. | ||||
* | Fix linting | Claudiu Popa | 2018-06-14 | 1 | -4/+3 |
| | |||||
* | Remove six from a couple of files | Claudiu Popa | 2018-05-31 | 1 | -4/+2 |
| | |||||
* | pyupgrade (#549) | Anthony Sottile | 2018-05-22 | 1 | -2/+2 |
| | |||||
* | Fix import of symlinks outside of path with modutils (#546) | Mario Corchero | 2018-05-15 | 1 | -12/+49 |
| | | | | | | | | | Makes load_module_from_file able to import files within the path that are just a symlink to a file outside of the path. modutils is using realpath at the moment which will resolve the symlink and don't allow the import as the file is detected outside of the available paths. By checking both abspath and realpath this patches add support for such scenarios. | ||||
* | Ignore directories found in blacklist | Claudiu Popa | 2017-10-12 | 1 | -0/+2 |
| | | | | Close PyCQA/pylint#1700 | ||||
* | Remove pylint errors | Derek Gustafson | 2016-12-03 | 1 | -8/+3 |
| | |||||
* | Use sys.base_exec_prefix in case sys.real_prefix is not defined | Claudiu Popa | 2016-12-03 | 1 | -2/+10 |
| | | | | | | | | sys.real_prefix is an addition of the *virtualenv* library, but it is not added when a virtual environment is created with the builtin *venv* library. In the latter's case, sys.base_exec_prefix is the one pointing to the original installation of Python. Now, in case sys.real_prefix is not defined, we fallback to sys.base_exec_prefix. | ||||
* | Use the correct _replace member. Thanks to @dirthead for finding the bug. ↵ | Claudiu Popa | 2016-10-24 | 1 | -1/+1 |
| | | | | Close #368 | ||||
* | Export two helpers for verifying the type of a spec. | Claudiu Popa | 2016-08-24 | 1 | -0/+7 |
| | |||||
* | Move the spec finder under a new namespace, interpreter._import. | Claudiu Popa | 2016-08-24 | 1 | -261/+21 |
| | |||||
* | Add support for discovering .pth file created by certain namespace packages. | Claudiu Popa | 2016-08-24 | 1 | -4/+25 |
| | |||||
* | Even more granular copyrights (thanks to copyrite) | Claudiu Popa | 2016-07-22 | 1 | -2/+7 |
| | |||||
* | Keep a consistent copyright notice across the board. | Claudiu Popa | 2016-07-19 | 1 | -0/+2 |
| | |||||
* | Fix typos | Jakub Wilk | 2016-06-02 | 1 | -10/+10 |
| | |||||
* | Try to canonicalize the lookup paths as well. | Claudiu Popa | 2016-06-01 | 1 | -2/+9 |
| | |||||
* | Canonicalize file paths in modpath_from_file, this should help when ↵ | Claudiu Popa | 2016-05-31 | 1 | -1/+2 |
| | | | | | | receiving symlinks and whatnot. Close PyCQA/pylint#791 | ||||
* | Remove superfluous boilerplate the first regex missed | Ceridwen | 2016-05-17 | 1 | -17/+0 |
| | |||||
* | Convert all files to new license header | Ceridwen | 2016-05-16 | 1 | -0/+3 |
| | |||||
* | Don't look for namespace packages implicitly into functions doing concrete ↵ | Claudiu Popa | 2016-05-10 | 1 | -21/+26 |
| | | | | imports. | ||||
* | Implicit namespace package support for modpath_from_file for Python 3.3+. | Claudiu Popa | 2016-05-09 | 1 | -2/+4 |
| | |||||
* | Improve the message. | Claudiu Popa | 2016-05-08 | 1 | -3/+1 |
| | |||||
* | Support namespace packages only for versions with the module spec feature ↵ | Claudiu Popa | 2016-05-08 | 1 | -1/+1 |
| | | | | implemented. | ||||
* | Don't introduce empty values for non-zip importers in path_importer_cache ↵ | Claudiu Popa | 2016-05-08 | 1 | -2/+2 |
| | | | | and add a test for implicit namespace packages. | ||||
* | Switch to a spec finder protocol for finding files or packages | Claudiu Popa | 2016-05-08 | 1 | -106/+209 |
| | |||||
* | Add /usr/lib and /usr/lib64 to the list of stdlib paths | Claudiu Popa | 2015-12-21 | 1 | -6/+23 |
| | |||||
* | Add lib_pypy from the real installation of Python | Claudiu Popa | 2015-12-15 | 1 | -0/+5 |
| | | | | | | | This solves a problem with pypy and virtualenv, the latter deciding not to copy some of the modules into the virtual environment, such as datetime, which means that STD_LIB_DIRS needs to be updated in order to look there as well. | ||||
* | Move code which doesn't trigger DistutilsPlatformError outside of the try block. | Claudiu Popa | 2015-12-15 | 1 | -11/+12 |
| | |||||
* | Improve the detection of lib_pypy, which was faulty. | Claudiu Popa | 2015-12-15 | 1 | -2/+3 |
| | |||||
* | Add lib_pypy into the list of standard library modules for PyPy | Claudiu Popa | 2015-12-15 | 1 | -0/+3 |
| | | | | | | Unfortunately it is not detected in any way by distutils.sysconfig.get_python_lib. This can detect datetime as a builtin module on PyPy. |