Skip to content

Commit 87c6bfe

Browse files
committed
update docs before release
1 parent b045e25 commit 87c6bfe

2 files changed

Lines changed: 46 additions & 24 deletions

File tree

src/pyDataverse/docs/source/developer.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,17 @@ Exceptions
3131
Install
3232
-----------------------------
3333

34-
Install from the local git repository:
34+
Install from the local git repository, with all it's dependencies:
3535

3636
.. code-block:: shell
3737
3838
virtualenv venv
3939
source venv/bin/activate
40-
pip install -r requirements.txt
40+
pip install -r tools/tests-requirements.txt
41+
pip install -r tools/lint-requirements.txt
42+
pip install -r tools/docs-requirements.txt
43+
pip install -r tools/packaging-requirements.txt
44+
pip install -e .
4145
4246
4347
Testing
@@ -80,6 +84,8 @@ When you only want to run one test, e.g. the py36 test:
8084
8185
tox -e py36
8286
87+
To find out more about which tests are available, have a look inside the tox.ini file.
88+
8389

8490
Documentation
8591
-----------------------------

src/pyDataverse/docs/source/index.rst

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,24 @@ pyDataverse
33

44
Release v\ |version|.
55

6+
.. image:: https://travis-ci.com/AUSSDA/pyDataverse.svg?branch=master
7+
:target: https://travis-ci.com/AUSSDA/pyDataverse
8+
9+
.. image:: https://img.shields.io/pypi/v/pyDataverse.svg
10+
:target: https://pypi.org/project/pyDataverse/
11+
12+
.. image:: https://img.shields.io/pypi/wheel/pyDataverse.svg
13+
:target: https://pypi.org/project/pyDataverse/
14+
15+
.. image:: https://img.shields.io/pypi/pyversions/pyDataverse.svg
16+
:target: https://pypi.org/project/pyDataverse/
17+
18+
.. image:: https://readthedocs.org/projects/pydataverse/badge/?version=latest
19+
:target: https://pydataverse.readthedocs.io/en/latest
20+
21+
.. image:: https://coveralls.io/repos/github/AUSSDA/pyDataverse/badge.svg
22+
:target: https://coveralls.io/github/AUSSDA/pyDataverse
23+
624
.. image:: https://img.shields.io/github/license/aussda/pydataverse.svg
725
:target: https://opensource.org/licenses/MIT
826

@@ -27,28 +45,26 @@ Quickstart
2745
2846
**Usage**
2947

30-
.. code-block:: python
31-
32-
>>> from pyDataverse.api import Api
33-
>>> # establish connection
34-
>>> base_url = 'http://demo.dataverse.org'
35-
>>> api = Api(base_url)
36-
>>> api.status
37-
'OK'
38-
>>> # get dataverse
39-
>>> dv = 'ecastro' # dataverse alias or id
40-
>>> resp = api.get_dataverse(dv)
41-
>>> resp.json()['data']['creationDate']
42-
'2015-04-20T09:29:39Z'
43-
>>> # get dataset
44-
>>> resp = api.get_dataset(identifier)
45-
>>> resp.json()['data']['id']
46-
24
47-
>>> # get datafile
48-
>>> datafile_id = '32' # file id of the datafile
49-
>>> resp = api.get_datafile(datafile_id)
50-
>>> resp
51-
<Response [200]>
48+
>>> from pyDataverse.api import Api
49+
>>> # establish connection
50+
>>> base_url = 'http://demo.dataverse.org'
51+
>>> api = Api(base_url)
52+
>>> api.status
53+
'OK'
54+
>>> # get dataverse
55+
>>> dv = 'ecastro' # dataverse alias or id
56+
>>> resp = api.get_dataverse(dv)
57+
>>> resp.json()['data']['creationDate']
58+
'2015-04-20T09:29:39Z'
59+
>>> # get dataset
60+
>>> resp = api.get_dataset(identifier)
61+
>>> resp.json()['data']['id']
62+
24
63+
>>> # get datafile
64+
>>> datafile_id = '32' # file id of the datafile
65+
>>> resp = api.get_datafile(datafile_id)
66+
>>> resp
67+
<Response [200]>
5268

5369

5470
Requirements

0 commit comments

Comments
 (0)