Skip to content
Snippets Groups Projects
Commit 5cdc3eb6 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

add ldv_migrate script

parent aaf28197
No related branches found
No related tags found
1 merge request!8Add ldv_migrate script
......@@ -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`.
......
#!/usr/bin/env python3
import ldv_migrate
migrate_ldvadmin_to_ldvspec.main()
\ No newline at end of file
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment