@@ -33,9 +33,7 @@ System Requirments
3333
3434- A CANFAR VOSpace account (required for WRITE access, READ access can
3535 be anonymous)
36- - fuse OR OSX-FUSE (see additional documentation, only required for
37- filesystem based access, not for command line or programmatic)
38- - python2.6 or later
36+ - python3.7 or later
3937
4038Installation
4139------------
@@ -83,82 +81,14 @@ Tutorial
8381 client = vos.Client()
8482 client.listdir('vos:jkavelaars')
8583
86- Development
87- -----------
88-
89- A virtual environment (**venv **) is recommended to set up external
90- dependencies without installing them system-wide. Following `these
91- instructions <http://docs.python-guide.org/en/latest/dev/virtualenvs/> `__,
92- install **virtualenv **:
93-
94- ::
95-
96- $ pip install virtualenv
97-
98- Next, create, and activate a local **venv ** (this example uses
99- **bash **):
100-
101- ::
102-
103- $ virtualenv venv
104- $ source venv/bin/activate
105-
106-
107- Setup the new development environment for testing by installing the appropriate packages:
108-
109- ::
110-
111- $ pip install -r dev_requirements.txt
112-
113- The test environment is built into the *setup.py * so that conducting unit-tests can be achieved like so:
114-
115- ::
116-
117- $ python setup.py test
118-
119- If you would like versbose output formated as a web page, for example,
120- you can add options to the test call:
121-
122- ::
123-
124- $ python setup.py test --addopts '--cov-report html:cov_html --cov=vos'
125-
126- The same option attribute can be used to pass other arguments to py.test
127- that is executing the test. To run specific only tests for example:
128-
129- ::
130-
131- $ python setup.py test --addopts 'vos/test/Test_vos.py::TestClient::test_transfer_error'
132-
133- Each time you resume work on the project and want to use the **venv **
134- (e.g., from a new shell), simply re-activate it:
135-
136- ::
137-
138- $ source venv/bin/activate
139-
140- When done, just issue a
141-
142- ::
143-
144- $ deactivate
145-
146- command to deactivate the virtual environment.
14784
14885Integration Tests
14986~~~~~~~~~~~~~~~~~
15087
15188The integration tests are, at present, designed to run only with the
152- CADC VOSpace. Tests assume that vos and/or vofs packages have been
89+ CADC VOSpace and test accounts credentials . Tests assume that vos and/or vofs packages have been
15390installed.
15491
155- Activate the **venv ** and install vos
156-
157- ::
158-
159- $ source venv/bin/activate.csh
160- $ pip install vos
161-
16292Run the tests:
16393
16494 $ ./test/scripts/vospace-all.tcsh
0 commit comments