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
1d5ca094
Commit
1d5ca094
authored
3 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
unit test that
parent
bf25a610
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
snakehouse/requirements.py
+4
-0
4 additions, 0 deletions
snakehouse/requirements.py
with
5 additions
and
0 deletions
CHANGELOG.md
+
1
−
0
View file @
1d5ca094
...
...
@@ -4,6 +4,7 @@
*
`snakehouse`
doesn't need cython and satella installed in advance
*
added
`find_all`
*
made available for PyPy users
*
deprecated
`find_pyx`
and
`find_pyx_and_c`
# v1.4
...
...
This diff is collapsed.
Click to expand it.
snakehouse/requirements.py
+
4
−
0
View file @
1d5ca094
import
typing
as
tp
import
warnings
from
satella.coding
import
for_argument
from
satella.files
import
read_lines
,
find_files
...
...
@@ -11,6 +13,7 @@ def find_pyx(directory_path: str) -> tp.List[str]:
:param directory_path: directory to look through
:return: .pyx files found
"""
warnings
.
warn
(
'
This is deprecated. Use find_all instead
'
,
DeprecationWarning
)
return
find_files
(
directory_path
,
'
(.*)
\\
.pyx$
'
,
scan_subdirectories
=
True
)
...
...
@@ -32,6 +35,7 @@ def find_pyx_and_c(directory_path: str) -> tp.List[str]:
:param directory_path:
:return: list of all .pyx and .c files found in given directory
"""
warnings
.
warn
(
'
This is deprecated. Use find_all instead
'
,
DeprecationWarning
)
files
=
find_pyx
(
directory_path
)
files
.
extend
(
find_c
(
directory_path
))
return
files
...
...
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