Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pipelines
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.pipelines
Commits
fc90bab5
Commit
fc90bab5
authored
2 years ago
by
Yannick DAYER
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix-numpy-pin' into 'master'
Pin numpy on the minor version See merge request
!101
parents
972dbd7d
d04e52e3
No related branches found
No related tags found
1 merge request
!101
Pin numpy on the minor version
Pipeline
#65025
passed
2 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/pipelines/distributed/__init__.py
+27
-1
27 additions, 1 deletion
bob/pipelines/distributed/__init__.py
conda/meta.yaml
+2
-2
2 additions, 2 deletions
conda/meta.yaml
with
29 additions
and
3 deletions
bob/pipelines/distributed/__init__.py
+
27
−
1
View file @
fc90bab5
# see https://docs.python.org/3/library/pkgutil.html
from
pkgutil
import
extend_path
from
.sge
import
SchedulerResourceRestriction
# see https://docs.python.org/3/library/pkgutil.html
__path__
=
extend_path
(
__path__
,
__name__
)
# DASK-click VALID_DASK_CLIENT_STRINGS
# TO BE USED IN:
# @click.option(
...
...
@@ -93,3 +96,26 @@ def get_local_parallel_client(parallel=None, processes=True):
threads_per_worker
=
1
if
processes
else
parallel
,
)
return
Client
(
cluster
)
def
__appropriate__
(
*
args
):
"""
Says object was actually declared here, and not in the import module.
Fixing sphinx warnings of not being able to find classes, when path is
shortened.
Parameters
----------
*args
The objects that you want sphinx to believe that are defined here.
Resolves `Sphinx referencing issues <https//github.com/sphinx-
doc/sphinx/issues/3048>`
"""
for
obj
in
args
:
obj
.
__module__
=
__name__
__appropriate__
(
SchedulerResourceRestriction
,
)
This diff is collapsed.
Click to expand it.
conda/meta.yaml
+
2
−
2
View file @
fc90bab5
...
...
@@ -41,7 +41,7 @@ requirements:
run
:
-
python
-
setuptools
-
{{
pin_compatible('numpy')
}}
-
{{
pin_compatible('numpy'
,
max_pin='x.x'
)
}}
-
{{
pin_compatible('dask'
,
max_pin='x.x')
}}
-
{{
pin_compatible('dask-jobqueue'
,
max_pin='x.x')
}}
-
{{
pin_compatible('distributed'
,
max_pin='x.x')
}}
...
...
@@ -55,7 +55,7 @@ test:
imports
:
-
{{
name
}}
commands
:
-
pytest --verbose --cov {{ name }} --cov-report term-missing --cov-report html:{{ project_dir }}/sphinx/coverage --cov-report xml:{{ project_dir }}/coverage.xml --pyargs {{ name }}
-
pytest --verbose --cov {{ name }} --cov-report term-missing --cov-report html:{{ project_dir }}/sphinx/coverage --cov-report xml:{{ project_dir }}/coverage.xml
--junitxml={{ project_dir }}/test_results.xml
--pyargs {{ name }}
-
sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx
# [linux]
-
sphinx-build -aEb doctest {{ project_dir }}/doc sphinx
# [linux]
-
conda inspect linkages -p $PREFIX {{ name }}
# [not win]
...
...
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