Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
ldv_utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LDV
ldv_utils
Commits
3f4b8dee
Commit
3f4b8dee
authored
2 years ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
upgrading to python 3.9
parent
bab378b6
No related branches found
No related tags found
1 merge request
!8
Add ldv_migrate script
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+3
-39
3 additions, 39 deletions
README.md
with
3 additions
and
39 deletions
README.md
+
3
−
39
View file @
3f4b8dee
...
...
@@ -86,59 +86,23 @@ For example on `sdc@dop814.astron.nl` (this is our sdc-dev test machine)
> virtualenv env3.9 -p python3.9 (on ubuntu)
> python3 -m venv env3.9 (on centos)
> source env3.9/bin/activate
> pip3 install --upgrade setuptools pip
```
### Installation
```
bash
# Using pip install (requires valid ssh key, until the repo is set to public)
pip
install
-e
"git+https://git.astron.nl/ldv/ldv_utils.git#egg=ldvspec-migration&subdirectory=ldv_migrate"
--upgrade
pip
install
-e
"git+https://git.astron.nl/ldv/ldv_utils.git@SDC-708-add-ldv-migrate-script#egg=ldvspec-migration&subdirectory=ldv_migrate"
--upgrade
```
### Running
To test if it works
```
bash
ldv_migrate
[
sas_id]
[
from status]
[
to status]
# More info and flags
ldv_migrate
-h
```
### Building
Manual from a checked out repo.
Look for the 'scripts' directory and run
`./build.sh`
.
This will create a 'dist' directory, containing the pip installable archive.
`ldvspec-migration-1.0.0.tar.gz`
>
ldv_migrate
-h
### Deploying (manually)
For example on
`sdc@dop814.astron.nl`
(this is our sdc-dev test machine)
```
# only once
> cd ~
> mkdir ldv-migrate
> cd ldvspec-migrate
> virtualenv env3.8 -p python3.8 (on ubuntu)
> python3 -m venv env3.8 (on centos)
> source env3.8/bin/activate
```
Copy the package (
`ldvspec-migration-1.0.0.tar.gz`
) into that directory.
And pip install it...
```
> pip install pip install ./ldvspec-migration-1.0.0.tar.gz --upgrade
Successfully installed ldvspec-migration-1.0.0
```
### Running
To test if it works
```
(env3.8) nvermaas@nicodev:~/ldv-migrate$ ldv_migrate -h
usage: ldv_migrate
[
-h
]
[
--version
]
[
-v
]
[
-l
LIMIT]
[
-t
TOKEN]
[
--host
[
HOST]]
[
-s
SECTION]
[
-r
MAX_NBR_DPS_TO_INSERT_PER_REQUEST]
optional arguments:
...
...
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