Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snakehouse
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
snakehouse
Commits
9309ab88
Unverified
Commit
9309ab88
authored
9 months ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
remove satella
parent
380eb6f5
No related branches found
No related tags found
No related merge requests found
Pipeline
#61306
failed with stage
in 2 minutes and 30 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG.md
+1
-1
1 addition, 1 deletion
CHANGELOG.md
requirements.txt
+0
-1
0 additions, 1 deletion
requirements.txt
setup.cfg
+1
-1
1 addition, 1 deletion
setup.cfg
snakehouse/satella.py
+10
-11
10 additions, 11 deletions
snakehouse/satella.py
with
12 additions
and
14 deletions
CHANGELOG.md
+
1
−
1
View file @
9309ab88
# v
1.8
# v
2.0
*
got rid of the Mako dependency
*
got rid of the Mako dependency
*
should work on latest Pythons
*
should work on latest Pythons
...
...
This diff is collapsed.
Click to expand it.
requirements.txt
+
0
−
1
View file @
9309ab88
Cython
Cython
satella
>=2.20.0
MarkupSafe
>=1.1.1
MarkupSafe
>=1.1.1
This diff is collapsed.
Click to expand it.
setup.cfg
+
1
−
1
View file @
9309ab88
...
@@ -4,7 +4,7 @@ name = snakehouse
...
@@ -4,7 +4,7 @@ name = snakehouse
keywords
= cython, extension, multiple, pyx
keywords
= cython, extension, multiple, pyx
version
= 1.7
version
= 1.7
long_description
= file: README.md
long_description
= file: README.md
long_description
-
content
-
type
= text/markdown; charset=UTF-8
long_description
_
content
_
type
= text/markdown; charset=UTF-8
license_files
= LICENSE
license_files
= LICENSE
author
= Piotr Maślanka
author
= Piotr Maślanka
author_email
= pmaslanka@smok.co
author_email
= pmaslanka@smok.co
...
...
This diff is collapsed.
Click to expand it.
snakehouse/satella.py
+
10
−
11
View file @
9309ab88
...
@@ -14,6 +14,14 @@ def _has_separator(path: str) -> bool:
...
@@ -14,6 +14,14 @@ def _has_separator(path: str) -> bool:
return
False
return
False
return
any
(
map
(
lambda
x
:
x
in
path
,
SEPARATORS
))
return
any
(
map
(
lambda
x
:
x
in
path
,
SEPARATORS
))
def
_cond_join
(
prefix
:
tp
.
Optional
[
str
],
filename
:
str
)
->
str
:
"""
or a conditional os.path.join
"""
if
prefix
is
None
:
return
filename
else
:
return
os
.
path
.
join
(
prefix
,
filename
)
def
find_files
(
path
:
str
,
wildcard
:
str
=
r
'
(.*)
'
,
def
find_files
(
path
:
str
,
wildcard
:
str
=
r
'
(.*)
'
,
prefix_with
:
tp
.
Optional
[
str
]
=
None
,
prefix_with
:
tp
.
Optional
[
str
]
=
None
,
...
@@ -66,20 +74,11 @@ def split(path: str) -> tp.List[str]:
...
@@ -66,20 +74,11 @@ def split(path: str) -> tp.List[str]:
Is is true that
Is is true that
>>>
os
.
path
.
join
(
split
(
a
))
==
a
"""
data
=
list
(
os
.
path
.
split
(
path
))
while
_has_separdef
split
(
path
:
str
)
->
tp
.
List
[
str
]:
"""
An exact reverse of os.path.join
Is is true that
>>>
os
.
path
.
join
(
split
(
a
))
==
a
>>>
os
.
path
.
join
(
split
(
a
))
==
a
"""
"""
data
=
list
(
os
.
path
.
split
(
path
))
data
=
list
(
os
.
path
.
split
(
path
))
while
_has_separator
(
data
[
0
]):
while
_has_separator
(
data
[
0
]):
data
=
list
(
os
.
path
.
split
(
data
[
0
]))
+
data
[
1
:]
data
=
list
(
os
.
path
.
split
(
data
[
0
]))
+
data
[
1
:]
return
dataator
(
data
[
0
]):
data
=
list
(
os
.
path
.
split
(
data
[
0
]))
+
data
[
1
:]
return
data
return
data
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment