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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LDV
ldv_utils
Commits
5cdc3eb6
Commit
5cdc3eb6
authored
2 years ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
add ldv_migrate script
parent
aaf28197
No related branches found
No related tags found
1 merge request
!8
Add ldv_migrate script
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+11
-0
11 additions, 0 deletions
README.md
ldv_migrate/bin/ldv_migrate
+4
-0
4 additions, 0 deletions
ldv_migrate/bin/ldv_migrate
ldv_migrate/setup.py
+6
-5
6 additions, 5 deletions
ldv_migrate/setup.py
with
21 additions
and
5 deletions
README.md
+
11
−
0
View file @
5cdc3eb6
...
...
@@ -79,8 +79,19 @@ old `ldvadmin` database to the new `ldv-spec-db` database.
```
bash
# Using pip install (requires valid ssh key, until the repo is set to public)
pip
install
pip
install
-e
"git+https://git.astron.nl/ldv/ldv_utils.git#egg=ldvspec-migration&subdirectory=ldv_migrate"
pip
install
pip
install
-e
"git+https://git.astron.nl/ldv/ldv_utils.git@SDC-708-add-ldv-migrate-script#egg=ldvspec-migration&subdirectory=ldv_migrate"
```
### Running
```
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 diff is collapsed.
Click to expand it.
ldv_migrate/bin/ldv_migrate
0 → 100644
+
4
−
0
View file @
5cdc3eb6
#!/usr/bin/env python3
import
ldv_migrate
migrate_ldvadmin_to_ldvspec
.
main
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ldv_migrate/setup.py
+
6
−
5
View file @
5cdc3eb6
...
...
@@ -13,10 +13,11 @@ setup(name='ldvspec-migration',
license
=
'
Apache 2.0
'
,
install_requires
=
get_requirements
(),
packages
=
find_packages
(),
py_modules
=
[
'
connection
'
,
'
ldv_migrate.connection
'
],
include_package_data
=
True
,
entry_points
=
{
'
console_scripts
'
:
[
'
ldv_migrate=ldv_migrate.migrate_ldvadmin_to_ldvspec:main
'
,
],
},
#
entry_points={
#
'console_scripts': [
#
'ldv_migrate=ldv_migrate.migrate_ldvadmin_to_ldvspec:main',
#
],
#
},
)
\ No newline at end of file
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