Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
71c871ab
Commit
71c871ab
authored
4 years ago
by
jgoldste
Browse files
Options
Downloads
Patches
Plain Diff
SSA-6324: standardizing datafetcher test name; conda-izing setup script
parent
06e3bb80
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/cli/executables/datafetcher/test/test_datafetcher.py
+0
-0
0 additions, 0 deletions
apps/cli/executables/datafetcher/test/test_datafetcher.py
set_up_project.sh
+25
-20
25 additions, 20 deletions
set_up_project.sh
with
25 additions
and
20 deletions
apps/cli/executables/datafetcher/test/datafetcher
_test
.py
→
apps/cli/executables/datafetcher/test/
test_
datafetcher.py
+
0
−
0
View file @
71c871ab
File moved
This diff is collapsed.
Click to expand it.
set_up_project.sh
+
25
−
20
View file @
71c871ab
#!/bin/bash
# Convenience script to pip install -r requirements.txt,
# then python setup.py develop in each module
# required for tests to function properly.
# Execute this script from data/, and be sure the "data"
# conda env is activated for Python 3.8 (env has 3.8.5)
VERSION
=
$(
python
--version
)
echo
$VERSION
# Convenience script to set up conda environment, if necessary,
# then run "python setup.py develop" in each module.
TOP_LEVEL
=
/Users/jgoldste/Projects/data/
cd
$TOP_LEVEL
pip
install
-r
requirements.txt
sleep
2
# setups must be executed in this order, since requirements are interdependent
for
DIR
in
shared/support/ shared/schema/ shared/messaging/events/
\
apps/cli/launchers/pymygdala/ apps/cli/launchers/wf/
\
apps/cli/utilities/s_code_project_updater/ apps/cli/executables/datafetcher/
current_env
=
$CONDA_DEFAULT_ENV
if
[
-z
$current_env
]
then
echo
'>>> Updating conda environment....'
conda
env
update
echo
'>>> Activating....'
conda activate data
else
echo
"conda environment 'data' is active"
fi
SETUP
=
setup.py
echo
'>>> finding all $SETUP'
SETUPS
=
$(
find
.
-name
$SETUP
-exec
echo
'{}'
\;
)
for
item
in
$SETUPS
do
echo
">>>
$DIR
"
cd
$TOP_LEVEL$DIR
python setup.py develop
# give it time to percolate
sleep
2
done
dir
=
$(
dirname
$item
)
echo
">>> running
${
SETUP
}
in
${
dir
}
...."
cd
${
dir
}
python setup.py develop
# to_keep=$(basename -s $item)
# echo $to_keep
done
This diff is collapsed.
Click to expand it.
Janet Goldstein
@jgoldste
mentioned in commit
2c43b483
·
4 years ago
mentioned in commit
2c43b483
mentioned in commit 2c43b48378ef4177b21d22e1afc4eba5f479517c
Toggle commit list
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