|
1 |
| -# User Guide - Under Construction |
| 1 | +# User Guide |
2 | 2 |
|
3 |
| -## Install the project |
| 3 | +## Setup |
4 | 4 |
|
| 5 | +### Install the package |
| 6 | + |
| 7 | +Install from PyPI using `pip` or your preferred package manager: |
5 | 8 | ```
|
6 |
| -git clone https://github.com/ResearchObject/ro-crate-uploader.git |
7 |
| -cd ro-crate-uploader |
8 |
| -pip install -r requirements.txt |
9 |
| -pip install . |
| 9 | +pip install rocrate_zenodo |
10 | 10 | ```
|
11 |
| - |
12 |
| -## Set up a Zenodo personal access token |
| 11 | +### Set up a Zenodo personal access token |
13 | 12 |
|
14 | 13 | Create a file called `~/.config/zenodo.ini` on your computer with the following contents:
|
15 | 14 |
|
@@ -47,23 +46,23 @@ api_token = your-token-here
|
47 | 46 |
|
48 | 47 | `ro-crate-uploader` will read this token whenever it connects to Zenodo in order to perform actions under your account. It's recommended to use the Zenodo sandbox until you're confident using `ro-crate-uploader`.
|
49 | 48 |
|
50 |
| -## Run the code |
| 49 | +## Usage |
51 | 50 |
|
52 |
| -Run the `rocrate_upload` command in your terminal. Use the `-s` flag to upload to Zenodo sandbox, or omit it to upload to real Zenodo. |
| 51 | +To upload a crate to Zenodo sandbox: |
53 | 52 | ```
|
54 |
| -rocrate_upload -s demo/demo_crate |
| 53 | +rocrate_zenodo -s demo/demo_crate |
55 | 54 | ```
|
56 |
| -Replace `demo/demo_crate` with the path to the RO-Crate directory you want to upload. |
| 55 | +Replace `demo/demo_crate` with the path to the RO-Crate directory you want to upload. The `-s` flag sets the destination to the Zenodo sandbox; you can omit `-s` to upload to real Zenodo. |
57 | 56 |
|
58 | 57 | Once complete, you should see the draft record in your Zenodo dashboard.
|
59 | 58 |
|
60 |
| -Further info: |
| 59 | +For further help and options, run: |
61 | 60 | ```
|
62 |
| -rocrate_upload --help |
| 61 | +rocrate_zenodo --help |
63 | 62 | ```
|
64 | 63 |
|
65 | 64 | ## Tips
|
66 | 65 |
|
67 |
| -1. Set `givenName` and `familyName` on authors of the RO-Crate. |
68 |
| -2. Use the SPDX URI for the top-level license, e.g. `https://spdx.org/licenses/CC-BY-NC-SA-4.0.html` |
69 |
| -3. Check your upload carefully before publishing. |
| 66 | +1. Set `givenName` and `familyName` on authors of the RO-Crate. This ensures that author names are formatted correctly in Zenodo. |
| 67 | +2. Use the SPDX URI for the top-level license, e.g. `https://spdx.org/licenses/CC-BY-NC-SA-4.0.html`. Other URIs for licenses are not currently well supported. |
| 68 | +3. Check your upload carefully in the Zenodo web interface before publishing. Not all metadata will be carried across from the RO-Crate, and some may be transferred incorrectly. Please [raise an issue](https://github.com/ResearchObject/ro-crate-uploader/issues/new) if you notice a discrepancy. |
0 commit comments