pre-commit-ci[bot]
27c2b403db
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-10-31 22:32:14 +00:00
Erik Sundell
15a1fb6e2d
refactor: manually add transitions to f-strings
2022-10-31 21:22:32 +01:00
pre-commit-ci[bot]
5a93542321
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-10-31 21:22:32 +01:00
Simon Li
1735925116
Use enum to standardise `phase`
2022-10-03 22:49:22 +01:00
YuviPanda
ffdf544ee4
Support pulling from zenodo sandbox too
...
Test uploads should go to the sandbox, rather than to
main zenodo. The installation is exactly the same.
2022-07-27 17:40:14 -07:00
wilhelmfrank
d97e32b433
Add MPDL Dataverse
2022-07-20 08:48:17 +02:00
Aaron Curtis
cae431d115
Add JPL Dataverse
...
NASA's Jet Propulsion Laboratory recently implemented a dataverse installation and would like to be able to use it with repo2docker / binderhub
2022-06-28 17:56:55 -07:00
Dara Adib
991c249141
Remove unused sys import
2022-06-02 20:54:43 -04:00
Dara Adib
49d47b855e
Shallow clone HEAD
...
Previously repo2docker only performed shallow clones when refspec
was not provided. We now also perform shallow clones if refspec is
explicitly set to HEAD. Binder always specifies a refspec, often
HEAD, so this should improve some build times.
2022-06-02 20:54:43 -04:00
Anton Akhmerov
8db656d1ce
always unpack a single zenodo zip
2021-07-06 15:18:42 +02:00
Mridul Seth
3edc76342c
Fix regression in hydroshare introduced after moving to requests
2021-04-01 15:31:19 +02:00
Mridul Seth
0885204a5d
fix dataverse regression introduced in last release
2021-02-11 21:58:21 +01:00
Tim Head
1140dd1919
Merge pull request #988 from douardda/swhid
2021-01-26 13:56:29 +01:00
Tim Head
45229ad613
Merge pull request #1001 from manics/fix_figshare_test
2021-01-20 11:20:13 +01:00
David Douard
e54c24ce2e
Add support for the SWHID content provider
...
This content provider allows to retrieve the content from a
Software Heritage (SWH) persistent identifier (SWHID).
Typical usage:
repo2docker swh:1:rev:94dca98c006b80309704c717b5d83dff3c1fa3a0
It uses the SWH public vault API to retrieve the content of the given
directory.
Most of the times, this will not need an authentication
token to bypass the rate-limiting of the SWH API.
Without authentication, one should be allowed to retrieve one
directory content per minute.
If this is not enought, then the user must use authenticated calls to
the SWH API.
For this, a new `swh_token` config item has been added to the Repo2Docker
application class.
To use authentication:
repo2docker --config cfg.json swh:1:rev:94dca98c006b80309704c717b5d83dff3c1fa3a0
with the swh_token config option being defined in the cfg.json config file.
2021-01-19 18:04:46 +01:00
David Douard
830a9c89c0
Replace urllib by requests in contentproviders
...
requests is globally simpler to use, and more and more people
are more familiar with this later than urllib.
2021-01-18 17:29:53 +01:00
Simon Li
ee7f7790d3
figshare article types: code and dataset
2021-01-15 16:11:27 +00:00
Simon Li
b032ad7c4b
Can't just use '([^/]+)/' for the new figshare url
...
This may break detection of non-code URLs
2021-01-08 23:46:57 +00:00
Simon Li
c33840fa16
Allow extra path in figshare URLs
...
Copied from 1d818e90ca
2021-01-08 23:29:37 +00:00
Tim Head
1ebb4b5d87
Add explicit error message when `master` is specified
...
Provide a specific error messaeg with a hint towards solution
when a user specifies `master` as ref and we can't find it.
2020-10-22 08:04:29 +02:00
paugier
3cdde89328
By default run Mercurial tests + enable the topic extension from code (no need for config file)
2020-09-10 21:48:46 +02:00
paugier
5bb586931b
Mercurial optional
2020-09-10 07:58:21 +02:00
paugier
96914545e1
Update Dockerfile (ALPINE_VERSION=3.12.0 & install mercurial) + remove mercurial from install_requires
2020-09-09 18:10:19 +02:00
paugier
d26b3dd0df
Mercurial: use the full node id (12 characters) for the content_id
2020-09-07 09:43:22 +02:00
paugier
e520b900bf
Add a Mercurial contentprovider
...
MyBinder could support Mercurial repositories
See https://github.com/jupyterhub/binderhub/issues/1148
2020-09-04 15:14:04 +02:00
paugier
fadb3c8dc8
Bump Black version (20.8b1) and use --target-version=py36
2020-09-10 08:11:29 +02:00
Scott Black
02d0107510
Merge remote-tracking branch 'upstream/master' into hydroshare-content-provider
2020-01-29 10:14:01 -07:00
Scott Black
776d538689
update tests and code to follow best practices pointed out in review
2019-12-06 16:31:59 -07:00
Tim Head
ee38137aac
Remove explicit checkout when ref given
2019-11-07 23:15:29 +01:00
David Brochart
f440daeb8b
Check out hash, not ref
2019-11-07 14:45:26 +01:00
David Brochart
908161aecb
Dot gets added later
2019-11-07 13:26:26 +01:00
David Brochart
39eeb82342
Raise ValueError if not able to checkout ref
2019-11-06 09:32:08 +01:00
David Brochart
97c8bfb68f
Clone and check out branch in two steps
2019-11-05 18:53:45 +01:00
David Brochart
56e6c116f3
Add test
2019-11-05 18:01:06 +01:00
David Brochart
e4e9c1fdce
Fix submodule check out
2019-11-05 15:10:19 +01:00
Scott Black
1257a2c910
update downloading message to include full url
2019-10-14 13:56:29 -06:00
Scott Black
16411fc35e
update formatting
2019-10-01 12:59:06 -06:00
Scott Black
d657453b3f
update hydroshare version fetch to assume timestamp is in utc
2019-10-01 11:16:34 -06:00
Scott Black
3a936412af
use datetime for iso parsing
2019-09-30 16:59:01 -06:00
Scott Black
8dd9b5b928
update date parser to parse hydroshare date with timezone
2019-09-30 15:57:27 -06:00
Scott Black
dddc45acfb
reformatting with lint
2019-09-30 13:50:24 -06:00
Scott Black
21e61f3099
add hydroshare resource versioning and raise exception fetch fails
2019-09-25 14:37:19 -06:00
Scott Black
7fcb67f06d
raise exceptions during failure and add modify date version
2019-09-25 14:00:47 -06:00
Scott Black
2508cc2104
fix _urlretrieve class method
2019-09-25 10:58:45 -06:00
Scott Black
d89f3a66aa
update hydroshare content provider to doi and add tests
2019-09-25 09:59:44 -06:00
Scott Black
0549577a51
Merge branch 'master' of git://github.com/jupyter/repo2docker
2019-09-24 13:37:50 -06:00
Daniel Nüst
3bdf7041dc
sort and pretty print dataverse.json
...
so that we can track changes and only update the lines of the files that need updating
2019-09-18 08:54:48 +02:00
Kacper Kowalik (Xarthisius)
4df4fd6ab4
Download individual files instead of zip bundle
2019-09-17 15:44:56 -05:00
Kacper Kowalik (Xarthisius)
a2f8228b15
Match DV hosts based on netloc instead of url
2019-09-16 15:03:12 -05:00
Kacper Kowalik (Xarthisius)
30375d13df
Use the persistent id from the url regardless whether it's a DOI or not
2019-09-16 14:29:47 -05:00