dtool-create 0.23.3__tar.gz → 0.23.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dtool_create-0.23.5/.github/workflows/publish.yml +62 -0
- dtool_create-0.23.5/.github/workflows/test.yml +57 -0
- dtool_create-0.23.5/.gitignore +15 -0
- dtool_create-0.23.5/CHANGELOG.rst +397 -0
- dtool_create-0.23.5/CONTRIBUTORS.rst +4 -0
- dtool_create-0.23.5/LICENSE.rst +22 -0
- dtool_create-0.23.5/PKG-INFO +132 -0
- {dtool-create-0.23.3 → dtool_create-0.23.5}/README.rst +5 -9
- dtool_create-0.23.5/docs/Makefile +20 -0
- dtool_create-0.23.5/docs/make.bat +36 -0
- dtool_create-0.23.5/docs/source/CHANGELOG.rst +1 -0
- dtool_create-0.23.5/docs/source/LICENSE.rst +1 -0
- dtool_create-0.23.5/docs/source/README.rst +1 -0
- dtool_create-0.23.5/docs/source/conf.py +165 -0
- dtool_create-0.23.5/docs/source/index.rst +12 -0
- dtool_create-0.23.5/dtool_create/__init__.py +9 -0
- {dtool-create-0.23.3 → dtool_create-0.23.5}/dtool_create/dataset.py +1 -16
- dtool_create-0.23.5/pyproject.toml +45 -0
- dtool_create-0.23.5/requirements.txt +1 -0
- {dtool-create-0.23.3 → dtool_create-0.23.5}/setup.cfg +10 -14
- dtool_create-0.23.5/tests/__init__.py +31 -0
- dtool_create-0.23.5/tests/test_dtool_create_module.py +6 -0
- dtool_create-0.23.5/tests/test_dtool_dataset_copy.py +79 -0
- dtool_create-0.23.5/tests/test_dtool_dataset_create.py +73 -0
- dtool_create-0.23.5/tests/test_dtool_dataset_freeze.py +65 -0
- dtool_create-0.23.5/tests/test_dtool_dataset_name.py +45 -0
- dtool_create-0.23.5/tests/test_dtool_dataset_readme_show.py +43 -0
- dtool_create-0.23.5/tests/test_utils.py +7 -0
- dtool_create-0.23.5/tox.ini +14 -0
- dtool-create-0.23.3/MANIFEST.in +0 -2
- dtool-create-0.23.3/PKG-INFO +0 -130
- dtool-create-0.23.3/dtool_create/__init__.py +0 -3
- dtool-create-0.23.3/dtool_create.egg-info/PKG-INFO +0 -130
- dtool-create-0.23.3/dtool_create.egg-info/SOURCES.txt +0 -15
- dtool-create-0.23.3/dtool_create.egg-info/dependency_links.txt +0 -1
- dtool-create-0.23.3/dtool_create.egg-info/entry_points.txt +0 -10
- dtool-create-0.23.3/dtool_create.egg-info/requires.txt +0 -6
- dtool-create-0.23.3/dtool_create.egg-info/top_level.txt +0 -1
- dtool-create-0.23.3/setup.py +0 -40
- {dtool-create-0.23.3 → dtool_create-0.23.5}/dtool_create/publish.py +0 -0
- {dtool-create-0.23.3 → dtool_create-0.23.5}/dtool_create/templates/README.yml +0 -0
- {dtool-create-0.23.3 → dtool_create-0.23.5}/dtool_create/utils.py +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
name: publish
|
|
2
|
+
|
|
3
|
+
# Pushing a version tag (e.g. 0.23.4) runs the test suite, then builds the
|
|
4
|
+
# package and publishes it to PyPI. The upload uses PyPI trusted publishing
|
|
5
|
+
# (OIDC), so no API tokens are stored in the repository.
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
push:
|
|
9
|
+
tags:
|
|
10
|
+
- '[0-9]+.[0-9]+.[0-9]+*'
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
test:
|
|
14
|
+
uses: ./.github/workflows/test.yml
|
|
15
|
+
|
|
16
|
+
build:
|
|
17
|
+
needs: test
|
|
18
|
+
runs-on: ubuntu-24.04
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v7
|
|
22
|
+
with:
|
|
23
|
+
# hatch-vcs derives the version from the git tags
|
|
24
|
+
fetch-depth: 0
|
|
25
|
+
|
|
26
|
+
- name: Set up Python 3.12
|
|
27
|
+
uses: actions/setup-python@v7
|
|
28
|
+
with:
|
|
29
|
+
python-version: 3.12
|
|
30
|
+
|
|
31
|
+
- name: Package distribution
|
|
32
|
+
run: |
|
|
33
|
+
pip install --upgrade build
|
|
34
|
+
python -m build
|
|
35
|
+
|
|
36
|
+
- name: Check version matches tag
|
|
37
|
+
run: |
|
|
38
|
+
ls "dist/dtool_create-${GITHUB_REF_NAME}.tar.gz" \
|
|
39
|
+
"dist/dtool_create-${GITHUB_REF_NAME}-py3-none-any.whl"
|
|
40
|
+
|
|
41
|
+
- uses: actions/upload-artifact@v4
|
|
42
|
+
with:
|
|
43
|
+
name: dist
|
|
44
|
+
path: dist/
|
|
45
|
+
|
|
46
|
+
publish-pypi:
|
|
47
|
+
needs: build
|
|
48
|
+
runs-on: ubuntu-24.04
|
|
49
|
+
environment:
|
|
50
|
+
name: pypi
|
|
51
|
+
url: https://pypi.org/p/dtool-create
|
|
52
|
+
permissions:
|
|
53
|
+
id-token: write
|
|
54
|
+
|
|
55
|
+
steps:
|
|
56
|
+
- uses: actions/download-artifact@v4
|
|
57
|
+
with:
|
|
58
|
+
name: dist
|
|
59
|
+
path: dist/
|
|
60
|
+
|
|
61
|
+
- name: Publish distribution to PyPI
|
|
62
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
workflow_call:
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
strategy:
|
|
15
|
+
fail-fast: false
|
|
16
|
+
matrix:
|
|
17
|
+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
23
|
+
uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: ${{ matrix.python-version }}
|
|
26
|
+
|
|
27
|
+
- name: Install dependencies
|
|
28
|
+
run: |
|
|
29
|
+
python -m pip install --upgrade pip
|
|
30
|
+
python -m pip install pytest pytest-cov pytest-mock
|
|
31
|
+
python -m pip install .
|
|
32
|
+
|
|
33
|
+
- name: Run tests
|
|
34
|
+
run: pytest --cov-report=xml
|
|
35
|
+
|
|
36
|
+
- name: Upload coverage to Codecov
|
|
37
|
+
uses: codecov/codecov-action@v4
|
|
38
|
+
with:
|
|
39
|
+
files: ./coverage.xml
|
|
40
|
+
flags: py${{ matrix.python-version }}
|
|
41
|
+
fail_ci_if_error: false
|
|
42
|
+
|
|
43
|
+
flake8:
|
|
44
|
+
runs-on: ubuntu-latest
|
|
45
|
+
steps:
|
|
46
|
+
- uses: actions/checkout@v4
|
|
47
|
+
|
|
48
|
+
- name: Set up Python
|
|
49
|
+
uses: actions/setup-python@v5
|
|
50
|
+
with:
|
|
51
|
+
python-version: "3.13"
|
|
52
|
+
|
|
53
|
+
- name: Install flake8
|
|
54
|
+
run: python -m pip install flake8
|
|
55
|
+
|
|
56
|
+
- name: Run flake8
|
|
57
|
+
run: flake8
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
CHANGELOG
|
|
2
|
+
=========
|
|
3
|
+
|
|
4
|
+
This project uses `semantic versioning <http://semver.org/>`_.
|
|
5
|
+
This change log uses principles from `keep a changelog <http://keepachangelog.com/>`_.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
[Unreleased]
|
|
9
|
+
------------
|
|
10
|
+
|
|
11
|
+
Added
|
|
12
|
+
^^^^^
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
Changed
|
|
16
|
+
^^^^^^^
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
Deprecated
|
|
20
|
+
^^^^^^^^^^
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
Removed
|
|
24
|
+
^^^^^^^
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
Fixed
|
|
28
|
+
^^^^^
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
Security
|
|
32
|
+
^^^^^^^^
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
[0.23.5] - 2026-11-24
|
|
36
|
+
---------------------
|
|
37
|
+
|
|
38
|
+
Added
|
|
39
|
+
^^^^^
|
|
40
|
+
|
|
41
|
+
- GitHub Actions workflow that publishes a release to PyPI when a version
|
|
42
|
+
tag is pushed
|
|
43
|
+
|
|
44
|
+
Changed
|
|
45
|
+
^^^^^^^
|
|
46
|
+
|
|
47
|
+
- Build system switched to hatchling with hatch-vcs; the version is now
|
|
48
|
+
derived from git tags
|
|
49
|
+
- Require ``dtool-cli>=0.7.2``; earlier releases import ``pkg_resources``,
|
|
50
|
+
which is not available without setuptools
|
|
51
|
+
|
|
52
|
+
Removed
|
|
53
|
+
^^^^^^^
|
|
54
|
+
|
|
55
|
+
- Support for Python < 3.10
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
[0.23.4] - 2021-06-23
|
|
59
|
+
---------------------
|
|
60
|
+
|
|
61
|
+
Fixed
|
|
62
|
+
^^^^^
|
|
63
|
+
|
|
64
|
+
- Licence file now included in release thanks to Jan Janssen (https://github.com/jan-janssen)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
[0.23.3] - 2021-04-10
|
|
68
|
+
---------------------
|
|
69
|
+
|
|
70
|
+
Fixed
|
|
71
|
+
^^^^^
|
|
72
|
+
|
|
73
|
+
- Fixed issue where "dtool readme edit" opened file with ".txt" extension
|
|
74
|
+
rather than ".yml" extension. See:
|
|
75
|
+
https://github.com/jic-dtool/dtool-cli/issues/3
|
|
76
|
+
Thanks to Antoine Sanner.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
[0.23.2] - 2021-01-27
|
|
80
|
+
---------------------
|
|
81
|
+
|
|
82
|
+
Fixed
|
|
83
|
+
^^^^^
|
|
84
|
+
|
|
85
|
+
- Fixed defect in "dtool readme interactive" when the default date of today is
|
|
86
|
+
not updated when using "{{ date }}" in the readme template. See
|
|
87
|
+
https://github.com/jic-dtool/dtool-create/issues/24
|
|
88
|
+
Thanks to Antoine Sanner.
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
[0.23.1] - 2020-05-27
|
|
92
|
+
---------------------
|
|
93
|
+
|
|
94
|
+
Fixed
|
|
95
|
+
^^^^^
|
|
96
|
+
|
|
97
|
+
- Fixed defect in ``dtool readme interactive`` command when the readme template contains a date.
|
|
98
|
+
Thanks to Lars Pastewka.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
[0.23.0] - 2020-02-28
|
|
102
|
+
---------------------
|
|
103
|
+
|
|
104
|
+
Added
|
|
105
|
+
^^^^^
|
|
106
|
+
|
|
107
|
+
- Add ``dtool readme validate`` command
|
|
108
|
+
- Ability to update descriptive metadata in README of frozen datasets
|
|
109
|
+
when using ``dtool redme write``
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
[0.22.0] - 2018-11-21
|
|
113
|
+
---------------------
|
|
114
|
+
|
|
115
|
+
Added
|
|
116
|
+
^^^^^
|
|
117
|
+
|
|
118
|
+
- Add ``dtool publish`` command
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
[0.21.0] - 2018-09-20
|
|
122
|
+
---------------------
|
|
123
|
+
|
|
124
|
+
Added
|
|
125
|
+
^^^^^
|
|
126
|
+
|
|
127
|
+
- ``dtool cp`` to replace ``dtool copy``
|
|
128
|
+
- ``dtool readme write`` to write readme from file or stdin
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
Deprecated
|
|
132
|
+
^^^^^^^^^^
|
|
133
|
+
|
|
134
|
+
- ``dtool copy`` in favour of ``dtool cp``
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
Removed
|
|
138
|
+
^^^^^^^
|
|
139
|
+
|
|
140
|
+
- Removed ``created_at`` field from default README template
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
Fixed
|
|
144
|
+
^^^^^
|
|
145
|
+
|
|
146
|
+
- Defect in ``dtool create`` when providing a relative path to the
|
|
147
|
+
``--symlink-path`` option
|
|
148
|
+
- Python 2 defect in dealing with unicode in README.yml file when using
|
|
149
|
+
``dtool readme edit``
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
[0.20.0] - 2018-09-11
|
|
153
|
+
---------------------
|
|
154
|
+
|
|
155
|
+
Fixed
|
|
156
|
+
^^^^^
|
|
157
|
+
|
|
158
|
+
- Deal with issue in how ruamel.yaml deals with float values
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
[0.19.0] - 2018-08-03
|
|
162
|
+
---------------------
|
|
163
|
+
|
|
164
|
+
Added
|
|
165
|
+
^^^^^
|
|
166
|
+
|
|
167
|
+
- Added ability to update the name of a frozen dataset
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
[0.18.0] - 2018-07-31
|
|
171
|
+
---------------------
|
|
172
|
+
|
|
173
|
+
Added
|
|
174
|
+
^^^^^
|
|
175
|
+
|
|
176
|
+
- Validation of dataset name upon creation
|
|
177
|
+
- Validation of dataset name when updating it
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
[0.17.0] - 2018-07-26
|
|
181
|
+
---------------------
|
|
182
|
+
|
|
183
|
+
Added
|
|
184
|
+
^^^^^
|
|
185
|
+
|
|
186
|
+
- Ability to update descriptive metadata in README of frozen datasets
|
|
187
|
+
- Validation that the descriptive metadata provided by the
|
|
188
|
+
``dtool readme edit`` command is valid YAML
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
[0.16.0] - 2018-06-06
|
|
192
|
+
---------------------
|
|
193
|
+
|
|
194
|
+
Added
|
|
195
|
+
^^^^^
|
|
196
|
+
|
|
197
|
+
- Pre-checks to 'dtool freeze' command to ensure that there is no rogue content
|
|
198
|
+
in the base of disk datasets
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
[0.15.0] - 2018-05-24
|
|
202
|
+
---------------------
|
|
203
|
+
|
|
204
|
+
Added
|
|
205
|
+
^^^^^
|
|
206
|
+
|
|
207
|
+
- Pre-checks to 'dtool freeze' command to ensure that the item handles are sane, i.e. that they do not contain newline characters
|
|
208
|
+
- Pre-checks to 'dtool freeze' command to ensure that there are not too many items in the proto dataset, default to less than 10000
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
[0.14.0] - 2018-02-09
|
|
212
|
+
---------------------
|
|
213
|
+
|
|
214
|
+
Changed
|
|
215
|
+
^^^^^^^
|
|
216
|
+
|
|
217
|
+
- The path to the data when creating a symlink dataset is now specified using the
|
|
218
|
+
``-s/--symlink-path`` option rather than being something that is prompted for.
|
|
219
|
+
This makes it easier to create symlink datasets in an automated fashion.
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
[0.13.0] - 2018-02-05
|
|
224
|
+
---------------------
|
|
225
|
+
|
|
226
|
+
Added
|
|
227
|
+
^^^^^
|
|
228
|
+
|
|
229
|
+
- ``--resume`` option to ``dtool copy`` command
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
[0.12.0] - 2018-01-18
|
|
233
|
+
---------------------
|
|
234
|
+
|
|
235
|
+
Changed
|
|
236
|
+
^^^^^^^
|
|
237
|
+
|
|
238
|
+
- Updated code to make use of dtoolcore version 3 API
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
[0.11.0] - 2017-12-14
|
|
242
|
+
---------------------
|
|
243
|
+
|
|
244
|
+
Added
|
|
245
|
+
^^^^^
|
|
246
|
+
|
|
247
|
+
- Ability to specify a custom README.yml template file path.
|
|
248
|
+
- Ability to configure the full user name for the README.yml template using
|
|
249
|
+
``DTOOL_USER_FULL_NAME``
|
|
250
|
+
|
|
251
|
+
Fixed
|
|
252
|
+
^^^^^
|
|
253
|
+
|
|
254
|
+
- Made the YAML output more pretty by adding more indentation.
|
|
255
|
+
- Replaced hardcoded ``nbi.ac.uk`` email with configurable ``DTOOL_USER_EMAIL``
|
|
256
|
+
in the default README.yml template.
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
[0.10.0] - 2017-10-23
|
|
260
|
+
---------------------
|
|
261
|
+
|
|
262
|
+
Added
|
|
263
|
+
^^^^^
|
|
264
|
+
|
|
265
|
+
- ``--quiet`` flag to ``dtool create`` command
|
|
266
|
+
|
|
267
|
+
Changed
|
|
268
|
+
^^^^^^^
|
|
269
|
+
|
|
270
|
+
- ``dtool copy`` now specifies target location using URI rather than
|
|
271
|
+
using the ``--prefix`` and ``--storage`` arguments
|
|
272
|
+
|
|
273
|
+
Fixed
|
|
274
|
+
^^^^^
|
|
275
|
+
|
|
276
|
+
- Made error handling in ``dtool create`` more specific
|
|
277
|
+
- Added propagation of original error message when ``StorageBrokerOSError``
|
|
278
|
+
captures in ``dtool create``
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
[0.9.0] - 2017-10-04
|
|
282
|
+
--------------------
|
|
283
|
+
|
|
284
|
+
Added
|
|
285
|
+
^^^^^
|
|
286
|
+
|
|
287
|
+
- ``dtool readme show`` command that returns the readme content
|
|
288
|
+
- ``--quiet`` flag to ``dtool copy`` command
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
Changed
|
|
292
|
+
^^^^^^^
|
|
293
|
+
|
|
294
|
+
- Improved the ``dtool readme --help`` output
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
[0.8.0] - 2017-09-25
|
|
298
|
+
--------------------
|
|
299
|
+
|
|
300
|
+
Added
|
|
301
|
+
^^^^^
|
|
302
|
+
|
|
303
|
+
- Better validation of input in terms of base vs proto vs frozen dataset URIs
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
[0.7.0] - 2017-09-15
|
|
307
|
+
--------------------
|
|
308
|
+
|
|
309
|
+
Added
|
|
310
|
+
^^^^^
|
|
311
|
+
|
|
312
|
+
- ``dtool name`` command
|
|
313
|
+
|
|
314
|
+
Fixed
|
|
315
|
+
^^^^^
|
|
316
|
+
|
|
317
|
+
- Made distinction between proto dataset and dataset cleared in dtool help and feedback
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
[0.6.0] - 2017-09-13
|
|
321
|
+
--------------------
|
|
322
|
+
|
|
323
|
+
Added
|
|
324
|
+
^^^^^
|
|
325
|
+
|
|
326
|
+
- Progress bar to ``dtool freeze``
|
|
327
|
+
- Progress bar to ``dtool copy``
|
|
328
|
+
|
|
329
|
+
Fixed
|
|
330
|
+
^^^^^
|
|
331
|
+
|
|
332
|
+
- Made code Python 3 compatible
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
[0.5.0] - 2017-09-11
|
|
336
|
+
--------------------
|
|
337
|
+
|
|
338
|
+
Added
|
|
339
|
+
^^^^^
|
|
340
|
+
|
|
341
|
+
- ``dtool copy`` command
|
|
342
|
+
- Improved user feedback when creating a ``symlink`` dataset
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
[0.4.0] - 2017-09-05
|
|
346
|
+
--------------------
|
|
347
|
+
|
|
348
|
+
Added
|
|
349
|
+
^^^^^
|
|
350
|
+
|
|
351
|
+
- ``dtool add item`` command
|
|
352
|
+
- ``dtool add metadata`` command
|
|
353
|
+
- Configuration file support
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
Changed
|
|
357
|
+
^^^^^^^
|
|
358
|
+
|
|
359
|
+
- URI for DiskStorageBroker now assumed to be
|
|
360
|
+
``file:///some/path`` or ``/some/path``
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
[0.3.0] - 2017-09-01
|
|
364
|
+
--------------------
|
|
365
|
+
|
|
366
|
+
Added
|
|
367
|
+
^^^^^
|
|
368
|
+
|
|
369
|
+
- The ``dtool create`` now works with storage broker plugins
|
|
370
|
+
|
|
371
|
+
Fixed
|
|
372
|
+
^^^^^
|
|
373
|
+
|
|
374
|
+
- Make ``dtool create`` work with version 2.1 of the ``dtoolcore`` API
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
Security
|
|
378
|
+
^^^^^^^^
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
[0.2.0] - 2017-08-30
|
|
382
|
+
--------------------
|
|
383
|
+
|
|
384
|
+
Basic release with three commands that make use of the ``dtoolcore`` version
|
|
385
|
+
2 API and ``dtool-cli``. It provides three commands that plug into the
|
|
386
|
+
``dtool-cli`` version 0.2.0 ``dtool.cli`` entry point.
|
|
387
|
+
|
|
388
|
+
- ``create`` - for creating a new proto dataset
|
|
389
|
+
- ``readme`` - for editing the README.yml of the dataset
|
|
390
|
+
- ``freeze`` - for converting a proto dataset into a dataset
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
[0.1.0] - 2017-08-03
|
|
394
|
+
--------------------
|
|
395
|
+
|
|
396
|
+
Initial release with the ``create``, ``readme`` and ``freeze`` commands,
|
|
397
|
+
registered under the ``dtool.dataset`` entry point of ``dtool-cli`` 0.1.0.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
===========
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2017 Tjelvar Olsson
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: dtool-create
|
|
3
|
+
Version: 0.23.5
|
|
4
|
+
Summary: Dtool plugin for creating datasets
|
|
5
|
+
Project-URL: Repository, https://github.com/jic-dtool/dtool-create
|
|
6
|
+
Author-email: Tjelvar Olsson <tjelvar.olsson@gmail.com>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE.rst
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Requires-Dist: click
|
|
11
|
+
Requires-Dist: dtool-cli>=0.7.2
|
|
12
|
+
Requires-Dist: dtool-http
|
|
13
|
+
Requires-Dist: dtool-symlink>=0.2.0
|
|
14
|
+
Requires-Dist: dtoolcore>=3.6
|
|
15
|
+
Requires-Dist: ruamel-yaml
|
|
16
|
+
Description-Content-Type: text/x-rst
|
|
17
|
+
|
|
18
|
+
dtool CLI commands for creating datasets
|
|
19
|
+
========================================
|
|
20
|
+
|
|
21
|
+
.. image:: https://badge.fury.io/py/dtool-create.svg
|
|
22
|
+
:target: http://badge.fury.io/py/dtool-create
|
|
23
|
+
:alt: PyPi package
|
|
24
|
+
|
|
25
|
+
.. image:: https://github.com/jic-dtool/dtool-create/actions/workflows/test.yml/badge.svg?branch=main
|
|
26
|
+
:target: https://github.com/jic-dtool/dtool-create/actions/workflows/test.yml
|
|
27
|
+
:alt: Tests
|
|
28
|
+
|
|
29
|
+
.. image:: https://codecov.io/github/jic-dtool/dtool-create/coverage.svg?branch=main
|
|
30
|
+
:target: https://codecov.io/github/jic-dtool/dtool-create?branch=main
|
|
31
|
+
:alt: Code Coverage
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
Installation
|
|
35
|
+
------------
|
|
36
|
+
|
|
37
|
+
.. code-block:: bash
|
|
38
|
+
|
|
39
|
+
pip install dtool-create
|
|
40
|
+
|
|
41
|
+
.. warning:: In order to be able to install the ``ryamel.yaml``
|
|
42
|
+
dependency you may need to run::
|
|
43
|
+
|
|
44
|
+
pip install -U pip setuptools wheel
|
|
45
|
+
|
|
46
|
+
See http://yaml.readthedocs.io/en/latest/install.html
|
|
47
|
+
for more details.
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
Usage
|
|
51
|
+
-----
|
|
52
|
+
|
|
53
|
+
Create a proto dataset::
|
|
54
|
+
|
|
55
|
+
dtool create my_dataset
|
|
56
|
+
|
|
57
|
+
Add some data to to the dataset::
|
|
58
|
+
|
|
59
|
+
cp *.csv my_dataset/data
|
|
60
|
+
|
|
61
|
+
Add descriptive metadata to the dataset::
|
|
62
|
+
|
|
63
|
+
dtool readme interative my_dataset
|
|
64
|
+
|
|
65
|
+
Convert the proto dataset to a dataset by freezing it::
|
|
66
|
+
|
|
67
|
+
dtool freeze my_dataset
|
|
68
|
+
|
|
69
|
+
See the `dtool documentation <http://dtool.readthedocs.io>`_ for more detail.
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
Configuring the descriptive metadata template
|
|
73
|
+
---------------------------------------------
|
|
74
|
+
|
|
75
|
+
It is possible to configure the required metadata prompted for by the
|
|
76
|
+
``dtool readme interactive`` command. The default template is the
|
|
77
|
+
``dtool_create/templates/README.yml``.
|
|
78
|
+
|
|
79
|
+
One may want to create a custom YAML file specifying the required metadata
|
|
80
|
+
that will be prompted for. This can be achieved by setting the
|
|
81
|
+
``DTOOL_README_TEMPLATE_FPATH`` environment variable, e.g.::
|
|
82
|
+
|
|
83
|
+
export DTOOL_README_TEMPLATE_FPATH=~/dtool_readme.yml
|
|
84
|
+
|
|
85
|
+
Alternatively, one can add the ``DTOOL_README_TEMPLATE_FPATH`` key to the
|
|
86
|
+
``~/.config/dtool/dtool.json`` file. For example,
|
|
87
|
+
|
|
88
|
+
.. code-block:: json
|
|
89
|
+
|
|
90
|
+
{
|
|
91
|
+
"DTOOL_README_TEMPLATE_FPATH": "/Users/olssont/dtool_readme.yml"
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
If the ``~/.config/dtool/dtool.json`` file does not exist one may need to
|
|
95
|
+
create it.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
Configuring the user's full name and email for the descriptive metadata
|
|
99
|
+
-----------------------------------------------------------------------
|
|
100
|
+
|
|
101
|
+
When running the ``dtool interactive readme`` the default name and email
|
|
102
|
+
address are ``Your Name`` and ``you@example.com``. These defaults can be
|
|
103
|
+
configured by setting the ``DTOOL_USER_FULL_NAME`` ``DTOOL_USER_EMAIL``
|
|
104
|
+
environment variables.
|
|
105
|
+
|
|
106
|
+
::
|
|
107
|
+
|
|
108
|
+
export DTOOL_USER_FULL_NAME="Care A. Bout-Data"
|
|
109
|
+
export DTOOL_USER_EMAIL=researcher@famous.uni.ac.uk
|
|
110
|
+
|
|
111
|
+
Alternatively, one can add the ``DTOOL_USER_FULL_NAME`` and
|
|
112
|
+
``DTOOL_USER_EMAIL`` keys to the ``~/.config/dtool/dtool.json`` file. For
|
|
113
|
+
example,
|
|
114
|
+
|
|
115
|
+
.. code-block:: json
|
|
116
|
+
|
|
117
|
+
{
|
|
118
|
+
"DTOOL_USER_FULL_NAME": "Care A. Bout-Data",
|
|
119
|
+
"DTOOL_USER_EMAIL": "researcher@famous.uni.ac.uk"
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
If the ``~/.config/dtool/dtool.json`` file does not exist one may need to
|
|
123
|
+
create it.
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
Related packages
|
|
127
|
+
----------------
|
|
128
|
+
|
|
129
|
+
- `dtoolcore <https://github.com/jic-dtool/dtoolcore>`_
|
|
130
|
+
- `dtool-cli <https://github.com/jic-dtool/dtool-cli>`_
|
|
131
|
+
- `dtool-config <https://github.com/jic-dtool/dtool-config>`_
|
|
132
|
+
- `dtool-info <https://github.com/jic-dtool/dtool-info>`_
|
|
@@ -5,16 +5,12 @@ dtool CLI commands for creating datasets
|
|
|
5
5
|
:target: http://badge.fury.io/py/dtool-create
|
|
6
6
|
:alt: PyPi package
|
|
7
7
|
|
|
8
|
-
.. image:: https://
|
|
9
|
-
:target: https://
|
|
10
|
-
:alt:
|
|
8
|
+
.. image:: https://github.com/jic-dtool/dtool-create/actions/workflows/test.yml/badge.svg?branch=main
|
|
9
|
+
:target: https://github.com/jic-dtool/dtool-create/actions/workflows/test.yml
|
|
10
|
+
:alt: Tests
|
|
11
11
|
|
|
12
|
-
.. image:: https://
|
|
13
|
-
:target: https://
|
|
14
|
-
:alt: AppVeyor CI build status (Windows)
|
|
15
|
-
|
|
16
|
-
.. image:: https://codecov.io/github/jic-dtool/dtool-create/coverage.svg?branch=master
|
|
17
|
-
:target: https://codecov.io/github/jic-dtool/dtool-create?branch=master
|
|
12
|
+
.. image:: https://codecov.io/github/jic-dtool/dtool-create/coverage.svg?branch=main
|
|
13
|
+
:target: https://codecov.io/github/jic-dtool/dtool-create?branch=main
|
|
18
14
|
:alt: Code Coverage
|
|
19
15
|
|
|
20
16
|
|