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

upgrading to python 3.9

parent bab378b6
No related branches found
No related tags found
1 merge request!8Add ldv_migrate script
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment