Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nxd-bom
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
Kirill Smelkov
nxd-bom
Commits
363aae70
Commit
363aae70
authored
Oct 18, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into xlicenses
* master: Support go1.20
parents
c37c2378
a537da80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
nxdbom/__init__.py
nxdbom/__init__.py
+2
-1
nxdbom/nxdbom_test.py
nxdbom/nxdbom_test.py
+1
-0
No files found.
nxdbom/__init__.py
View file @
363aae70
...
@@ -372,6 +372,7 @@ _gitlab_re = re.compile(r'/lab.nexedi.com/[\w\-]+/(?P<name>[\w\-]+)/repository/a
...
@@ -372,6 +372,7 @@ _gitlab_re = re.compile(r'/lab.nexedi.com/[\w\-]+/(?P<name>[\w\-]+)/repository/a
_SF_re = re.compile(r'
/
sourceforge
.
net
/
.
+/
(
?
P
<
name
>
[
\
w
\
_
]
+
)
-
(
?
P
<
rev
>
[
\
w
\
.]
+
)
/
download
$
')
_SF_re = re.compile(r'
/
sourceforge
.
net
/
.
+/
(
?
P
<
name
>
[
\
w
\
_
]
+
)
-
(
?
P
<
rev
>
[
\
w
\
.]
+
)
/
download
$
')
_git_re = re.compile(r'
/
(
?
P
<
name
>
[
\
w
\
.
\
-
]
+
)
\
.
git
$
')
_git_re = re.compile(r'
/
(
?
P
<
name
>
[
\
w
\
.
\
-
]
+
)
\
.
git
$
')
_go_re = re.compile(r'
/
golang
.
org
/
dl
/
(
?
P
<
name
>
go
)(
?
P
<
rev
>
[
\
w
\
.]
+
).
src
$
')
_go_re = re.compile(r'
/
golang
.
org
/
dl
/
(
?
P
<
name
>
go
)(
?
P
<
rev
>
[
\
w
\
.]
+
).
src
$
')
_go_dev_re = re.compile(r'
/
go
.
dev
/
dl
/
(
?
P
<
name
>
go
)(
?
P
<
rev
>
[
\
w
\
.]
+
).
src
$
')
_osdn_f = re.compile(r'
/
osdn
.
net
/
frs
/
redir
.
php
\
?
f
=
(
?
P
<
f
>
.
+
)
$
')
_osdn_f = re.compile(r'
/
osdn
.
net
/
frs
/
redir
.
php
\
?
f
=
(
?
P
<
f
>
.
+
)
$
')
def namever(url, failonerr=True): # -> (name, ver) | None if !failonerr
def namever(url, failonerr=True): # -> (name, ver) | None if !failonerr
# http://www.ijg.org/files/jpegsrc.v9d.tar.gz -> http://www.ijg.org/files/jpegsrc.v9d
# http://www.ijg.org/files/jpegsrc.v9d.tar.gz -> http://www.ijg.org/files/jpegsrc.v9d
...
@@ -407,7 +408,7 @@ def namever(url, failonerr=True): # -> (name, ver) | None if !failonerr
...
@@ -407,7 +408,7 @@ def namever(url, failonerr=True): # -> (name, ver) | None if !failonerr
return name, ver
return name, ver
def _namever(url, failonerr):
def _namever(url, failonerr):
for r in (_gitweb_re, _github_re, _github_rre, _gitlab_re, _SF_re, _go_re):
for r in (_gitweb_re, _github_re, _github_rre, _gitlab_re, _SF_re, _go_re
, _go_dev_re
):
m = r.search(url)
m = r.search(url)
if m is not None:
if m is not None:
return m.group('
name
'), m.group('
rev
')
return m.group('
name
'), m.group('
rev
')
...
...
nxdbom/nxdbom_test.py
View file @
363aae70
...
@@ -30,6 +30,7 @@ from os.path import dirname, exists
...
@@ -30,6 +30,7 @@ from os.path import dirname, exists
(
'http://www.ijg.org/files/jpegsrc.v9d.tar.gz'
,
'jpegsrc'
,
'9d'
),
(
'http://www.ijg.org/files/jpegsrc.v9d.tar.gz'
,
'jpegsrc'
,
'9d'
),
(
'https://github.com/nghttp2/nghttp2/archive/v1.40.0.tar.gz'
,
'nghttp2'
,
'1.40.0'
),
(
'https://github.com/nghttp2/nghttp2/archive/v1.40.0.tar.gz'
,
'nghttp2'
,
'1.40.0'
),
(
'https://golang.org/dl/go1.18.9.src'
,
'go'
,
'1.18.9'
),
(
'https://golang.org/dl/go1.18.9.src'
,
'go'
,
'1.18.9'
),
(
'https://go.dev/dl/go1.20.6.src.tar.gz'
,
'go'
,
'1.20.6'
),
(
'https://github.com/tesseract-ocr/tesseract/archive/refs/tags/4.1.1.tar.gz'
,
'tesseract'
,
'4.1.1'
),
(
'https://github.com/tesseract-ocr/tesseract/archive/refs/tags/4.1.1.tar.gz'
,
'tesseract'
,
'4.1.1'
),
(
'https://raw.githubusercontent.com/zuphilip/ocropy-models/master/en-default.pyrnn.gz'
,
'ocropy-models'
,
'master'
),
(
'https://raw.githubusercontent.com/zuphilip/ocropy-models/master/en-default.pyrnn.gz'
,
'ocropy-models'
,
'master'
),
(
'https://sourceforge.net/projects/swig/files/swig/swig-3.0.12/swig-3.0.12.tar.gz/download'
,
'swig'
,
'3.0.12'
),
(
'https://sourceforge.net/projects/swig/files/swig/swig-3.0.12/swig-3.0.12.tar.gz/download'
,
'swig'
,
'3.0.12'
),
...
...
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