Wykres commitów

107 Commity (main)

Autor SHA1 Wiadomość Data
pre-commit-ci[bot] f2c1cb7a8c [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-05 20:28:56 +00:00
Yuvi Panda abe7c15b3a
Merge branch 'main' into addnycu 2024-01-19 18:50:35 -08:00
Cheng-Yen Liu 066e951a7d
Add NYCU Dataverse 2023-12-27 03:28:08 +08:00
haarli 38f6e0acd1
Logo URL 2023-11-10 10:47:13 +01:00
haarli 24fa50118e
New domain for Edmond MPG repository 2023-11-10 09:56:57 +01:00
Simon Li fc7de2768b Zenodo DOI now returning https://zenodo.org/records/ instead of https://zenodo.org/record/ 2023-10-15 21:17:51 +01:00
Simon Li 1fc8f192ee doi2url: Don't ignore non-404 errors 2023-10-15 17:17:59 +01:00
Simon Li efb4cd3bbc Attempt to fix Zenodo
Done by inspecting API responses
- https://zenodo.org/api/records/3242074
- https://zenodo.org/api/records/3242074/files
2023-10-15 13:43:15 +01:00
Min RK e1051c3cb8
Merge branch 'main' into feat/new-base 2023-06-09 12:24:20 +02:00
Philip Durbin 938d91c9ca download original file formats from Dataverse #1242
Dataverse creates plain-text, preservation-friendly copies of certain
file formats (some of which are proprietary, such as Stata or SPSS) and
this .tab (tab-separated) file is downloaded unless you supply
`format=original`, which is what this pull request does.

The original filename (e.g. foo.dta, a Stata file) comes from
`originalFileName`, which is only populated when the preservation copy
(e.g. foo.tab) has been successfully created.

Additional variables were created to distinguish between `filename`,
`original_filename`, and `filename_with_path`. If `original_filename`
is available, it's the right one to use.

To allow the tests to continue passing, the query parameters are now
removed so just the file id can be cast as an int.
2023-03-10 16:46:05 -05:00
Bartosz Kardas 0b9154ae2b Updated master/main branches error info 2022-12-12 00:04:09 +01:00
Bartosz Kardas 52e80769b0 Renamed branch to main 2022-12-11 23:26:24 +01:00
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