Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into permError
Browse files Browse the repository at this point in the history
  • Loading branch information
lieryan committed Jan 3, 2024
2 parents c946a9c + 46a7b16 commit 0e229d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# **Upcoming release**

- #733 skip directories with perm error when building autoimport index (@MrBago)
- #722, #723 Remove site-packages from packages search tree (@tkrabel)

# Release 1.11.0

Expand Down
7 changes: 7 additions & 0 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ Source Repository
Rope uses GitHub_. The repository exists at
`python-rope/rope`_.

Setting up for local development
================================

#. Clone repository: ``git clone https://github.com/python-rope/rope.git``
#. Create a virtualenv: ``python -m venv rope-venv``
#. Activate the virtualenv
#. Install the project into the venv: ``pip install -e '.[doc,dev]'``

Submitting pull requests
========================
Expand Down
2 changes: 1 addition & 1 deletion rope/contrib/autoimport/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_package_tuple(
"""
package_name = package_path.name
package_type: PackageType
if package_name.startswith(".") or package_name == "__pycache__":
if package_name.startswith(".") or package_name in ["__pycache__", "site-packages"]:
return None
if package_name.endswith((".egg-info", ".dist-info")):
return None
Expand Down

0 comments on commit 0e229d2

Please sign in to comment.