diff --git a/README.md b/README.md index fd151325830d65b5376b7e87c0c5d0c9646f165d..948a9bc0b254a59f6a1b20de140ee8e618de8ab7 100644 --- a/README.md +++ b/README.md @@ -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: