Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
77caaee7
Commit
77caaee7
authored
Apr 09, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
component/pylint: add an astroid patch to fix six.moves on py2
parent
fc622b1d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
2 deletions
+27
-2
component/pylint/buildout.cfg
component/pylint/buildout.cfg
+1
-0
component/pylint/fix-import-six.moves.urllib.request-on-astroid-1.3.8.patch
...ix-import-six.moves.urllib.request-on-astroid-1.3.8.patch
+24
-0
stack/erp5-zope2/buildout.cfg
stack/erp5-zope2/buildout.cfg
+1
-1
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+1
-1
No files found.
component/pylint/buildout.cfg
View file @
77caaee7
...
@@ -13,6 +13,7 @@ setup-eggs = ${lazy-object-proxy:egg}
...
@@ -13,6 +13,7 @@ setup-eggs = ${lazy-object-proxy:egg}
[astroid:python2]
[astroid:python2]
patches =
patches =
${:_profile_base_location_}/astroid-six_moves_import_error.patch#377beb0c50f52b9608bb6be7bf93096e
${:_profile_base_location_}/astroid-six_moves_import_error.patch#377beb0c50f52b9608bb6be7bf93096e
${:_profile_base_location_}/fix-import-six.moves.urllib.request-on-astroid-1.3.8.patch#266139a893d0eba377ac510fb0fa75f1
patch-options = -p1
patch-options = -p1
patch-binary = ${patch:location}/bin/patch
patch-binary = ${patch:location}/bin/patch
setup-eggs =
setup-eggs =
...
...
component/pylint/fix-import-six.moves.urllib.request-on-astroid-1.3.8.patch
0 → 100644
View file @
77caaee7
From 67abf302360eab857fb02d1e83a97aff86f31aa5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 9 Apr 2024 11:04:38 +0900
Subject: [PATCH] fix "import six.moves.urllib.request" on astroid 1.3.8
---
astroid/brain/pysix_moves.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/astroid/brain/pysix_moves.py b/astroid/brain/pysix_moves.py
index 4a82b499..9bf31146 100644
--- a/astroid/brain/pysix_moves.py
+++ b/astroid/brain/pysix_moves.py
@@ -164,6 +164,7 @@
if sys.version_info[0] == 2:
urllib_parse = UrllibParse()
urllib_error = UrllibError()
+ urllib_request = UrllibRequest()
urllib = DummyModule()
urllib.request = UrllibRequest()
urllib.parse = UrllibParse()
--
2.42.0
stack/erp5-zope2/buildout.cfg
View file @
77caaee7
...
@@ -737,7 +737,7 @@ PyPDF2 = 1.26.0+SlapOSPatched001
...
@@ -737,7 +737,7 @@ PyPDF2 = 1.26.0+SlapOSPatched001
## https://lab.nexedi.com/nexedi/slapos/merge_requests/648
## https://lab.nexedi.com/nexedi/slapos/merge_requests/648
pylint = 1.4.4+SlapOSPatched002
pylint = 1.4.4+SlapOSPatched002
# astroid 1.4.1 breaks testDynamicClassGeneration
# astroid 1.4.1 breaks testDynamicClassGeneration
astroid = 1.3.8+SlapOSPatched00
1
astroid = 1.3.8+SlapOSPatched00
2
# use newer version than specified in ZTK
# use newer version than specified in ZTK
PasteDeploy = 1.5.2
PasteDeploy = 1.5.2
...
...
stack/erp5/buildout.cfg
View file @
77caaee7
...
@@ -943,7 +943,7 @@ zope.testbrowser = 5.5.1
...
@@ -943,7 +943,7 @@ zope.testbrowser = 5.5.1
AccessControl = 4.4
AccessControl = 4.4
Acquisition = 4.13
Acquisition = 4.13
APacheDEX = 1.8
APacheDEX = 1.8
astroid = 1.3.8+SlapOSPatched00
1
astroid = 1.3.8+SlapOSPatched00
2
AuthEncoding = 4.3
AuthEncoding = 4.3
Chameleon = 3.9.1
Chameleon = 3.9.1
DateTime = 4.9+SlapOSPatched004
DateTime = 4.9+SlapOSPatched004
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment