Skip to content

Commit e5d391e

Browse files
committed
prepare for release
1 parent 573fe26 commit e5d391e

3 files changed

Lines changed: 58 additions & 94 deletions

File tree

README.md

Lines changed: 2 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -21,99 +21,8 @@ pyDataverse is a Python module for [Dataverse](http://dataverse.org/). It uses t
2121

2222
## QUICKSTART
2323

24-
**Requirements**
25-
26-
* curl
27-
28-
**Install**
29-
30-
```shell
31-
virtualenv venv
32-
source venv/bin/activate
33-
pip install -r requirements.txt
34-
```
35-
36-
**Connect to API**
37-
38-
```python
39-
from pyDataverse.api import Api
40-
base_url = 'http://demo.dataverse.org'
41-
api = Api(base_url)
42-
```
43-
**Get dataverse**
44-
45-
```python
46-
dv = 'ecastro' # dataverse alias or id
47-
resp = api.get_dataverse(dv)
48-
print(resp.json())
49-
```
50-
51-
**Get dataset**
52-
53-
```python
54-
identifier = 'doi:10.5072/FK2/U6AEZM' # doi of the dataset
55-
resp = api.get_dataset(identifier)
56-
```
57-
58-
**Get datafile**
59-
60-
```python
61-
datafile_id = '32' # file id of the datafile
62-
resp = api.get_datafile(datafile_id)
63-
print(resp.content)
64-
```
24+
[See more](https://pydataverse.readthedocs.io/en/latest/index.html#quickstart).
6525

6626
## CONTRIBUTE
6727

68-
In the spirit of free software, everyone is encouraged to help improve this project.
69-
70-
Here are some ways you can contribute:
71-
72-
- by reporting bugs
73-
- by suggesting new features
74-
- by translating to a new language
75-
- by writing or editing documentation
76-
- by writing code (**no pull request is too small**: fix typos in the user interface, add code comments, clean up inconsistent whitespace)
77-
- by refactoring code or adding new features (please get in touch with us before you do, so we can syncronize the efforts and prevent misunderstandings)
78-
- by [closing issues](https://github.com/AUSSDA/pyDataverse/issues)
79-
- by [reviewing pull requests](https://github.com/AUSSDA/pyDataverse/pulls)
80-
81-
When you are ready, submit a [pull request](https://github.com/AUSSDA/pyDataverse).
82-
83-
### Submitting an Issue
84-
85-
We use the [GitHub issue tracker](https://github.com/AUSSDA/pyDataverse/issues) to track bugs and features. Before submitting a bug report or feature request, check to make sure it hasn't already been submitted. When submitting a bug report, please try to provide a screenshot that demonstrates the problem.
86-
87-
## DEVELOPMENT
88-
89-
### Install
90-
91-
```bash
92-
virtualenv venv
93-
source venv/bin/activate
94-
pip install -r requirements.txt
95-
```
96-
97-
### Documentation
98-
99-
**Create Sphinx Docs**
100-
101-
Use Sphinx to create class and function documentation out of the doc-strings. You can call it via `tox`. This creates the created docs inside `docs/build`.
102-
103-
```
104-
tox -e docs
105-
```
106-
107-
**Create Coverage Reports**
108-
109-
Run tests with coverage to create html and xml reports as an output. Again, call it via `tox`. This creates the created docs inside `docs/coverage_html/`.
110-
```shell
111-
tox -e coverage
112-
```
113-
114-
**Run Coveralls**
115-
116-
To use Coveralls on local development:
117-
```shell
118-
tox -e coveralls
119-
```
28+
[See more](https://pydataverse.readthedocs.io/en/latest/index.html#contributor-guide).

src/pyDataverse/docs/source/developer.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,32 @@ When you only want to run one test, e.g. the py36 test:
7979
.. code-block:: shell
8080
8181
tox -e py36
82+
83+
84+
Documentation
85+
-----------------------------
86+
87+
88+
**Create Sphinx Docs**
89+
90+
Use Sphinx to create class and function documentation out of the doc-strings. You can call it via `tox`. This creates the created docs inside `docs/build`.
91+
92+
.. code-block:: shell
93+
94+
tox -e docs
95+
96+
**Create Coverage Reports**
97+
98+
Run tests with coverage to create html and xml reports as an output. Again, call it via `tox`. This creates the created docs inside `docs/coverage_html/`.
99+
100+
.. code-block:: shell
101+
102+
tox -e coverage
103+
104+
**Run Coveralls**
105+
106+
To use Coveralls on local development:
107+
108+
.. code-block:: shell
109+
110+
tox -e coveralls

src/pyDataverse/docs/source/index.rst

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pyDataverse ecosystem and community.
7575
community/releases
7676

7777

78-
Developer Documentation
78+
Developer Guide
7979
-----------------------------
8080

8181
If you are looking for information on a specific function, class, or method,
@@ -85,3 +85,29 @@ this part of the documentation is for you.
8585
:maxdepth: 2
8686

8787
developer
88+
89+
90+
Contributor Guide
91+
-----------------------------
92+
93+
In the spirit of free software, everyone is encouraged to help improve this project.
94+
95+
Here are some ways you can contribute:
96+
97+
- by reporting bugs
98+
- by suggesting new features
99+
- by translating to a new language
100+
- by writing or editing documentation
101+
- by writing code (**no pull request is too small**: fix typos in the user interface, add code comments, clean up inconsistent whitespace)
102+
- by refactoring code or adding new features (please get in touch with us before you do, so we can syncronize the efforts and prevent misunderstandings)
103+
- by `closing issues <https://github.com/AUSSDA/pyDataverse/issues>`_
104+
- by `reviewing pull requests <https://github.com/AUSSDA/pyDataverse/pulls>`_
105+
106+
When you are ready, submit a `pull request <https://github.com/AUSSDA/pyDataverse>`_.
107+
108+
**Submitting an Issue**
109+
110+
We use the `GitHub issue tracker <https://github.com/AUSSDA/pyDataverse/issues>`_
111+
to track bugs and features. Before submitting a bug report or feature request,
112+
check to make sure it hasn't already been submitted. When submitting a bug report,
113+
please try to provide a screenshot that demonstrates the problem.

0 commit comments

Comments
 (0)