Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos
Commits
257f451c
Commit
257f451c
authored
Sep 01, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/jscrawler: port to python3
parent
708776c2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
7 deletions
+3
-7
software/jscrawler/software.cfg
software/jscrawler/software.cfg
+0
-3
software/jscrawler/test/test.py
software/jscrawler/test/test.py
+2
-3
software/slapos-sr-testing/software-py3.cfg
software/slapos-sr-testing/software-py3.cfg
+1
-0
software/slapos-sr-testing/software.cfg
software/slapos-sr-testing/software.cfg
+0
-1
No files found.
software/jscrawler/software.cfg
View file @
257f451c
...
...
@@ -16,9 +16,6 @@ parts =
jscrawler-build
instance
[python]
part = python2.7
[nodejs]
<= nodejs-12.18.3
...
...
software/jscrawler/test/test.py
View file @
257f451c
...
...
@@ -26,8 +26,7 @@
##############################################################################
import
os
import
logging
from
six.moves.urllib.parse
import
urlparse
from
urllib.parse
import
urlparse
import
requests
import
time
...
...
@@ -51,7 +50,7 @@ class TestJSCrawler(SlapOSInstanceTestCase):
self
.
send_response
(
200
)
self
.
send_header
(
"Content-Type"
,
"application/html"
)
self
.
end_headers
()
self
.
wfile
.
write
(
'<title>Hello {}</title>'
.
format
(
self
.
_name
))
self
.
wfile
.
write
(
f'<title>Hello
{
self
.
_name
}
</title>'
.
encode
(
))
return
{
'urls'
:
'
\
n
'
.
join
([
...
...
software/slapos-sr-testing/software-py3.cfg
View file @
257f451c
...
...
@@ -24,6 +24,7 @@ extra =
html5as-base ${slapos.test.html5as-base-setup:setup}
htmlvalidatorserver ${slapos.test.htmlvalidatorserver-setup:setup}
hugo ${slapos.test.hugo-setup:setup}
jscrawler ${slapos.test.jscrawler-setup:setup}
jstestnode ${slapos.test.jstestnode-setup:setup}
jupyter ${slapos.test.jupyter-setup:setup}
kvm ${slapos.test.kvm-setup:setup}
...
...
software/slapos-sr-testing/software.cfg
View file @
257f451c
...
...
@@ -370,7 +370,6 @@ extra =
cloudooo ${slapos.test.cloudooo-setup:setup}
dream ${slapos.test.dream-setup:setup}
gitlab ${slapos.test.gitlab-setup:setup}
jscrawler ${slapos.test.jscrawler-setup:setup}
re6stnet ${slapos.test.re6stnet-setup:setup}
slapos-master ${slapos.test.slapos-master-setup:setup}
slaprunner ${slapos.test.slaprunner-setup:setup}
...
...
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