From e055fbb06c0e5f3b1a3693e293e35e9699dd8f87 Mon Sep 17 00:00:00 2001 From: Alexander Ioannidis Date: Thu, 29 Nov 2018 19:58:32 +0100 Subject: [PATCH 1/3] global: use HTTPS scheme for ".to_url" by default --- idutils/__init__.py | 2 +- tests/test_idutils.py | 180 +++++++++++++++++++++--------------------- 2 files changed, 91 insertions(+), 91 deletions(-) diff --git a/idutils/__init__.py b/idutils/__init__.py index 1d753b1..547a0f7 100644 --- a/idutils/__init__.py +++ b/idutils/__init__.py @@ -988,7 +988,7 @@ def normalize_pid(val, scheme): """URL generation configuration for the supported PID providers.""" -def to_url(val, scheme, url_scheme="http"): +def to_url(val, scheme, url_scheme="https"): """Convert a resolvable identifier into a URL for a landing page. :param val: The identifier's value. diff --git a/tests/test_idutils.py b/tests/test_idutils.py index 949d5e4..6c2b499 100644 --- a/tests/test_idutils.py +++ b/tests/test_idutils.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # # This file is part of IDUtils -# Copyright (C) 2015-2022 CERN. +# Copyright (C) 2015-2023 CERN. # Copyright (C) 2015-2018 Alan Rubin. # # IDUtils is free software; you can redistribute it and/or modify @@ -74,7 +74,7 @@ "urn", ], "", - "http://nbn-resolving.org/urn:nbn:de:bvb:19-146642", + "https://nbn-resolving.org/urn:nbn:de:bvb:19-146642", ), ( "urn:lex:eu:council:directive:2010-03-09;2010-19-UE", @@ -91,34 +91,34 @@ "10.1016/j.epsl.2011.11.037", ["doi", "handle"], "10.1016/j.epsl.2011.11.037", - "http://doi.org/10.1016/j.epsl.2011.11.037", + "https://doi.org/10.1016/j.epsl.2011.11.037", ), ( "doi:10.1016/j.epsl.2011.11.037", ["doi", "handle"], "10.1016/j.epsl.2011.11.037", - "http://doi.org/10.1016/j.epsl.2011.11.037", + "https://doi.org/10.1016/j.epsl.2011.11.037", ), ( "doi: 10.1016/j.epsl.2011.11.037", ["doi", "handle"], "10.1016/j.epsl.2011.11.037", - "http://doi.org/10.1016/j.epsl.2011.11.037", + "https://doi.org/10.1016/j.epsl.2011.11.037", ), ( "DOI:10.1016/j.epsl.2011.11.037", ["doi", "handle"], "10.1016/j.epsl.2011.11.037", - "http://doi.org/10.1016/j.epsl.2011.11.037", + "https://doi.org/10.1016/j.epsl.2011.11.037", ), ( - "http://dx.doi.org/10.1016/j.epsl.2011.11.037", + "https://dx.doi.org/10.1016/j.epsl.2011.11.037", [ "doi", "url", ], "10.1016/j.epsl.2011.11.037", - "http://doi.org/10.1016/j.epsl.2011.11.037", + "https://doi.org/10.1016/j.epsl.2011.11.037", ), ( "https://doi.org/10.1016/j.epsl.2011.11.037", @@ -127,32 +127,32 @@ "url", ], "10.1016/j.epsl.2011.11.037", - "http://doi.org/10.1016/j.epsl.2011.11.037", + "https://doi.org/10.1016/j.epsl.2011.11.037", ), ( "doi.org/10.1016/j.epsl.2011.11.037", ["doi", "handle"], "10.1016/j.epsl.2011.11.037", - "http://doi.org/10.1016/j.epsl.2011.11.037", + "https://doi.org/10.1016/j.epsl.2011.11.037", ), ( "10.1016/üникóδé-дôΐ", ["doi", "handle"], "10.1016/üникóδé-дôΐ", - "http://doi.org/10.1016/üникóδé-дôΐ", + "https://doi.org/10.1016/üникóδé-дôΐ", ), ( "10.1016/སྦ་བཞེད་", ["doi", "handle"], "10.1016/སྦ་བཞེད་", - "http://doi.org/10.1016/སྦ་བཞེད་", + "https://doi.org/10.1016/སྦ་བཞེད་", ), ( "10.1002/(SICI)1521-3978(199806)46:4/5<493::AID-PROP493>3.0.CO;2-P", ["doi", "handle"], "10.1002/(SICI)1521-3978(199806)46:4/5<493::AID-PROP493>3.0.CO;2-P", ( - "http://doi.org/" + "https://doi.org/" "10.1002/(SICI)1521-3978(199806)46:4/5<493::AID-PROP493>3.0.CO;2-P" ), ), @@ -161,42 +161,42 @@ ("4006381333931", ["ean13"], "", ""), ("73513537", ["ean8"], "", ""), ("15626865", ["issn", "pmid"], "1562-6865", ""), - ("10013/epic.10033", ["handle"], "", "http://hdl.handle.net/10013/epic.10033"), + ("10013/epic.10033", ["handle"], "", "https://hdl.handle.net/10013/epic.10033"), ( "hdl:10013/epic.10033", ["handle"], "10013/epic.10033", - "http://hdl.handle.net/10013/epic.10033", + "https://hdl.handle.net/10013/epic.10033", ), ( "hdl: 10013/epic.10033", ["handle"], "10013/epic.10033", - "http://hdl.handle.net/10013/epic.10033", + "https://hdl.handle.net/10013/epic.10033", ), ( "HDL:10013/epic.10033", ["handle"], "10013/epic.10033", - "http://hdl.handle.net/10013/epic.10033", + "https://hdl.handle.net/10013/epic.10033", ), ( "hdl.handle.net/10013/epic.10033", ["handle"], "10013/epic.10033", - "http://hdl.handle.net/10013/epic.10033", + "https://hdl.handle.net/10013/epic.10033", ), ( "http://hdl.handle.net/10013/epic.10033", ["handle", "url"], "10013/epic.10033", - "http://hdl.handle.net/10013/epic.10033", + "https://hdl.handle.net/10013/epic.10033", ), ( "https://hdl.handle.net/10013/epic.10033", ["handle", "url"], "10013/epic.10033", - "http://hdl.handle.net/10013/epic.10033", + "https://hdl.handle.net/10013/epic.10033", ), ("978-3-905673-82- 1", ["isbn"], "978-3-905673-82-1", ""), ("978-3-905673-82-1", ["isbn"], "978-3-905673-82-1", ""), @@ -205,19 +205,19 @@ ("urn:lsid:ubio.org:namebank:11815", ["lsid", "urn"], "", ""), ("0A9 2002 12B4A105 7", ["istc"], "", ""), ("1188-1534", ["issn"], "1188-1534", ""), - ("12082125", ["pmid"], "12082125", "http://pubmed.ncbi.nlm.nih.gov/12082125"), - ("pmid:12082125", ["pmid"], "12082125", "http://pubmed.ncbi.nlm.nih.gov/12082125"), + ("12082125", ["pmid"], "12082125", "https://pubmed.ncbi.nlm.nih.gov/12082125"), + ("pmid:12082125", ["pmid"], "12082125", "https://pubmed.ncbi.nlm.nih.gov/12082125"), ( "https://pubmed.ncbi.nlm.nih.gov/12082125", ["pmid", "url"], "12082125", - "http://pubmed.ncbi.nlm.nih.gov/12082125", + "https://pubmed.ncbi.nlm.nih.gov/12082125", ), ( "https://pubmed.ncbi.nlm.nih.gov/12082125/", ["pmid", "url"], "12082125", - "http://pubmed.ncbi.nlm.nih.gov/12082125", + "https://pubmed.ncbi.nlm.nih.gov/12082125", ), ( "http://purl.oclc.org/foo/bar", @@ -241,68 +241,68 @@ "urn:nbn:de:101:1-201102033592", ["urn"], "", - "http://nbn-resolving.org/urn:nbn:de:101:1-201102033592", + "https://nbn-resolving.org/urn:nbn:de:101:1-201102033592", ), - ("PMC2631623", ["pmcid"], "", "http://www.ncbi.nlm.nih.gov/pmc/PMC2631623"), + ("PMC2631623", ["pmcid"], "", "https://www.ncbi.nlm.nih.gov/pmc/PMC2631623"), ( "2011ApJS..192...18K", ["ads"], "", - "http://ui.adsabs.harvard.edu/#abs/2011ApJS..192...18K", + "https://ui.adsabs.harvard.edu/#abs/2011ApJS..192...18K", ), ( "2016arXiv161002026S", ["ads"], "", - "http://ui.adsabs.harvard.edu/#abs/2016arXiv161002026S", + "https://ui.adsabs.harvard.edu/#abs/2016arXiv161002026S", ), ( "ads:2011ApJS..192...18K", ["ads"], "2011ApJS..192...18K", - "http://ui.adsabs.harvard.edu/#abs/2011ApJS..192...18K", + "https://ui.adsabs.harvard.edu/#abs/2011ApJS..192...18K", ), ( "ads:2017zndo....495787v", ["ads"], "2017zndo....495787v", - "http://ui.adsabs.harvard.edu/#abs/2017zndo....495787v", + "https://ui.adsabs.harvard.edu/#abs/2017zndo....495787v", ), ( "0000000218250097", ["orcid", "isni"], "0000-0002-1825-0097", - "http://orcid.org/0000-0002-1825-0097", + "https://orcid.org/0000-0002-1825-0097", ), ( "http://orcid.org/0000-0002-1825-0097", ["orcid", "url"], "0000-0002-1825-0097", - "http://orcid.org/0000-0002-1825-0097", + "https://orcid.org/0000-0002-1825-0097", ), ( "https://orcid.org/0000-0002-1825-0097", ["orcid", "url"], "0000-0002-1825-0097", - "http://orcid.org/0000-0002-1825-0097", + "https://orcid.org/0000-0002-1825-0097", ), ( "0000-0002-1694-233X", ["orcid", "isni"], "0000-0002-1694-233X", - "http://orcid.org/0000-0002-1694-233X", + "https://orcid.org/0000-0002-1694-233X", ), ( "0009-0005-6000-7479", ["orcid", "isni"], "0009-0005-6000-7479", - "http://orcid.org/0009-0005-6000-7479", + "https://orcid.org/0009-0005-6000-7479", ), ( "https://orcid.org/0009-0002-4767-9017", ["orcid", "url"], "0009-0002-4767-9017", - "http://orcid.org/0009-0002-4767-9017", + "https://orcid.org/0009-0002-4767-9017", ), ("1422-4586-3573-0476", ["isni"], "", ""), ( @@ -311,7 +311,7 @@ "arxiv", ], "arXiv:1310.2590", - "http://arxiv.org/abs/arXiv:1310.2590", + "https://arxiv.org/abs/arXiv:1310.2590", ), ( "arxiv:1310.2590", @@ -319,7 +319,7 @@ "arxiv", ], "arXiv:1310.2590", - "http://arxiv.org/abs/arXiv:1310.2590", + "https://arxiv.org/abs/arXiv:1310.2590", ), ( "1310.2590", @@ -327,7 +327,7 @@ "arxiv", ], "arXiv:1310.2590", - "http://arxiv.org/abs/arXiv:1310.2590", + "https://arxiv.org/abs/arXiv:1310.2590", ), ( "math.GT/0309136", @@ -335,7 +335,7 @@ "arxiv", ], "arXiv:math/0309136", - "http://arxiv.org/abs/arXiv:math/0309136", + "https://arxiv.org/abs/arXiv:math/0309136", ), ( "hep-th/9901001v27", @@ -343,7 +343,7 @@ "arxiv", ], "arXiv:hep-th/9901001v27", - "http://arxiv.org/abs/arXiv:hep-th/9901001v27", + "https://arxiv.org/abs/arXiv:hep-th/9901001v27", ), ( "arxiv:math.GT/0309136v2", @@ -351,7 +351,7 @@ "arxiv", ], "arXiv:math/0309136v2", - "http://arxiv.org/abs/arXiv:math/0309136v2", + "https://arxiv.org/abs/arXiv:math/0309136v2", ), ( "arXiv:hep-th/9901001v27", @@ -359,7 +359,7 @@ "arxiv", ], "arXiv:hep-th/9901001v27", - "http://arxiv.org/abs/arXiv:hep-th/9901001v27", + "https://arxiv.org/abs/arXiv:hep-th/9901001v27", ), ( "9912.12345v2", @@ -367,7 +367,7 @@ "arxiv", ], "arXiv:9912.12345v2", - "http://arxiv.org/abs/arXiv:9912.12345v2", + "https://arxiv.org/abs/arXiv:9912.12345v2", ), ( "arXiv:hep-th/1601.07616", @@ -375,7 +375,7 @@ "arxiv", ], "arXiv:1601.07616", - "http://arxiv.org/abs/arXiv:1601.07616", + "https://arxiv.org/abs/arXiv:1601.07616", ), ( "hep-th/1601.07616", @@ -383,13 +383,13 @@ "arxiv", ], "arXiv:1601.07616", - "http://arxiv.org/abs/arXiv:1601.07616", + "https://arxiv.org/abs/arXiv:1601.07616", ), ( "http://d-nb.info/gnd/1055864695", ["gnd", "url"], "gnd:1055864695", - "http://d-nb.info/gnd/1055864695", + "https://d-nb.info/gnd/1055864695", ), ( "GND:4079154-3", @@ -397,7 +397,7 @@ "gnd", ], "gnd:4079154-3", - "http://d-nb.info/gnd/4079154-3", + "https://d-nb.info/gnd/4079154-3", ), ( "4079154-3", @@ -405,7 +405,7 @@ "gnd", ], "gnd:4079154-3", - "http://d-nb.info/gnd/4079154-3", + "https://d-nb.info/gnd/4079154-3", ), ( "SRX3529244", @@ -413,7 +413,7 @@ "sra", ], "", - "http://www.ebi.ac.uk/ena/data/view/SRX3529244", + "https://www.ebi.ac.uk/ena/data/view/SRX3529244", ), ( "SRR6437777", @@ -421,7 +421,7 @@ "sra", ], "", - "http://www.ebi.ac.uk/ena/data/view/SRR6437777", + "https://www.ebi.ac.uk/ena/data/view/SRR6437777", ), ( "PRJNA224116", @@ -429,7 +429,7 @@ "bioproject", ], "", - "http://www.ebi.ac.uk/ena/data/view/PRJNA224116", + "https://www.ebi.ac.uk/ena/data/view/PRJNA224116", ), ( "SAMN08289383", @@ -437,7 +437,7 @@ "biosample", ], "", - "http://www.ebi.ac.uk/ena/data/view/SAMN08289383", + "https://www.ebi.ac.uk/ena/data/view/SAMN08289383", ), ( "ENSG00000012048", @@ -445,7 +445,7 @@ "ensembl", ], "", - "http://www.ensembl.org/id/ENSG00000012048", + "https://www.ensembl.org/id/ENSG00000012048", ), ( "ENSMUST00000017290", @@ -453,7 +453,7 @@ "ensembl", ], "", - "http://www.ensembl.org/id/ENSMUST00000017290", + "https://www.ensembl.org/id/ENSMUST00000017290", ), ( "P02833", @@ -461,7 +461,7 @@ "uniprot", ], "", - "http://purl.uniprot.org/uniprot/P02833", + "https://purl.uniprot.org/uniprot/P02833", ), ( "Q9GYV0", @@ -469,7 +469,7 @@ "uniprot", ], "", - "http://purl.uniprot.org/uniprot/Q9GYV0", + "https://purl.uniprot.org/uniprot/Q9GYV0", ), ( "NZ_JXSL01000036.1", @@ -477,7 +477,7 @@ "refseq", ], "", - "http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val=" "NZ_JXSL01000036.1", + "https://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val=" "NZ_JXSL01000036.1", ), ( "NM_206454", @@ -485,7 +485,7 @@ "refseq", ], "", - "http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val=NM_206454", + "https://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val=NM_206454", ), ( "XM_002113800.1", @@ -493,7 +493,7 @@ "refseq", ], "", - "http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val=XM_002113800.1", + "https://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val=XM_002113800.1", ), ( "GCA_000002275.2", @@ -501,7 +501,7 @@ "genome", ], "", - "http://www.ncbi.nlm.nih.gov/assembly/GCA_000002275.2", + "https://www.ncbi.nlm.nih.gov/assembly/GCA_000002275.2", ), ( "GCF_000001405.38", @@ -509,7 +509,7 @@ "genome", ], "", - "http://www.ncbi.nlm.nih.gov/assembly/GCF_000001405.38", + "https://www.ncbi.nlm.nih.gov/assembly/GCF_000001405.38", ), ( "GPL9", @@ -517,7 +517,7 @@ "geo", ], "", - "http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GPL9", + "https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GPL9", ), ( "GSM888", @@ -525,7 +525,7 @@ "geo", ], "", - "http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSM888", + "https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSM888", ), ( "GSE55396", @@ -533,7 +533,7 @@ "geo", ], "", - "http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE55396", + "https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE55396", ), ( "GDS1234", @@ -541,7 +541,7 @@ "geo", ], "", - "http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GDS1234", + "https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GDS1234", ), ( "A-MEXP-1171", @@ -549,7 +549,7 @@ "arrayexpress_array", ], "", - "http://www.ebi.ac.uk/arrayexpress/arrays/A-MEXP-1171", + "https://www.ebi.ac.uk/arrayexpress/arrays/A-MEXP-1171", ), ( "A-AFFY-17", @@ -557,7 +557,7 @@ "arrayexpress_array", ], "", - "http://www.ebi.ac.uk/arrayexpress/arrays/A-AFFY-17", + "https://www.ebi.ac.uk/arrayexpress/arrays/A-AFFY-17", ), ( "E-MEXP-1712", @@ -565,7 +565,7 @@ "arrayexpress_experiment", ], "", - "http://www.ebi.ac.uk/arrayexpress/experiments/E-MEXP-1712", + "https://www.ebi.ac.uk/arrayexpress/experiments/E-MEXP-1712", ), ( "E-MTAB-424", @@ -573,7 +573,7 @@ "arrayexpress_experiment", ], "", - "http://www.ebi.ac.uk/arrayexpress/experiments/E-MTAB-424", + "https://www.ebi.ac.uk/arrayexpress/experiments/E-MTAB-424", ), ( "E-MTAB-4020", @@ -581,7 +581,7 @@ "arrayexpress_experiment", ], "", - "http://www.ebi.ac.uk/arrayexpress/experiments/E-MTAB-4020", + "https://www.ebi.ac.uk/arrayexpress/experiments/E-MTAB-4020", ), ( "E-TABM-14", @@ -589,7 +589,7 @@ "arrayexpress_experiment", ], "", - "http://www.ebi.ac.uk/arrayexpress/experiments/E-TABM-14", + "https://www.ebi.ac.uk/arrayexpress/experiments/E-TABM-14", ), ( "E-FLYC-6", @@ -597,7 +597,7 @@ "arrayexpress_experiment", ], "", - "http://www.ebi.ac.uk/arrayexpress/experiments/E-FLYC-6", + "https://www.ebi.ac.uk/arrayexpress/experiments/E-FLYC-6", ), ( "hal:inserm-13102590", @@ -605,7 +605,7 @@ "hal", ], "inserm-13102590", - "http://hal.archives-ouvertes.fr/inserm-13102590", + "https://hal.archives-ouvertes.fr/inserm-13102590", ), ( "inserm-13102590", @@ -613,7 +613,7 @@ "hal", ], "inserm-13102590", - "http://hal.archives-ouvertes.fr/inserm-13102590", + "https://hal.archives-ouvertes.fr/inserm-13102590", ), ( "mem_13102590", @@ -621,7 +621,7 @@ "hal", ], "mem_13102590", - "http://hal.archives-ouvertes.fr/mem_13102590", + "https://hal.archives-ouvertes.fr/mem_13102590", ), ( "ascl:1908.011", @@ -629,7 +629,7 @@ "ascl", ], "ascl:1908.011", - "http://ascl.net/1908.011", + "https://ascl.net/1908.011", ), ( "swh:1:cnt:94a9ed024d3859793618152ea559a168bbcbb5e2", @@ -638,7 +638,7 @@ ], "swh:1:cnt:94a9ed024d3859793618152ea559a168bbcbb5e2", ( - "http://archive.softwareheritage.org/" + "https://archive.softwareheritage.org/" "swh:1:cnt:94a9ed024d3859793618152ea559a168bbcbb5e2" ), ), @@ -649,7 +649,7 @@ ], "swh:1:dir:d198bc9d7a6bcf6db04f476d29314f157507d505", ( - "http://archive.softwareheritage.org/" + "https://archive.softwareheritage.org/" "swh:1:dir:d198bc9d7a6bcf6db04f476d29314f157507d505" ), ), @@ -660,7 +660,7 @@ ], "swh:1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d", ( - "http://archive.softwareheritage.org/" + "https://archive.softwareheritage.org/" "swh:1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d" ), ), @@ -671,7 +671,7 @@ ], "swh:1:rel:22ece559cc7cc2364edc5e5593d63ae8bd229f9f", ( - "http://archive.softwareheritage.org/" + "https://archive.softwareheritage.org/" "swh:1:rel:22ece559cc7cc2364edc5e5593d63ae8bd229f9f" ), ), @@ -682,7 +682,7 @@ ], "swh:1:snp:c7c108084bc0bf3d81436bf980b46e98bd338453", ( - "http://archive.softwareheritage.org/" + "https://archive.softwareheritage.org/" "swh:1:snp:c7c108084bc0bf3d81436bf980b46e98bd338453" ), ), @@ -699,17 +699,17 @@ ";origin=https://github.com/user/repo" ), ( - "http://archive.softwareheritage.org/" + "https://archive.softwareheritage.org/" "swh:1:dir:d198bc9d7a6bcf6db04f476d29314f157507d505" ";origin=https://github.com/user/repo" ), ), - ("03yrm5c26", ["ror"], "03yrm5c26", "http://ror.org/03yrm5c26"), + ("03yrm5c26", ["ror"], "03yrm5c26", "https://ror.org/03yrm5c26"), ( "http://ror.org/03yrm5c26", ["ror", "url"], "03yrm5c26", - "http://ror.org/03yrm5c26", + "https://ror.org/03yrm5c26", ), ( "https://viaf.org/viaf/75121530", @@ -736,7 +736,7 @@ ";path=/Programs/python.c;lines=12-16" ), ( - "http://archive.softwareheritage.org/" + "https://archive.softwareheritage.org/" "swh:1:cnt:78e48f800c950530e36d3712d9e2e89673f23562" ";origin=https://github.com/python/cpython" ";visit=swh:1:snp:cd510e99a42139ed36f15a5774301c113c3e494b" @@ -763,7 +763,7 @@ ";origin=https://github.com/python/cpython" ), ( - "http://archive.softwareheritage.org/" + "https://archive.softwareheritage.org/" "swh:1:cnt:78e48f800c950530e36d3712d9e2e89673f23562" ";anchor=swh:1:rel:ae1f6af15f3e4110616801e235873e47fd7d1977" ";visit=swh:1:snp:cd510e99a42139ed36f15a5774301c113c3e494b" @@ -815,11 +815,11 @@ def test_to_url(): assert idutils.to_url( idutils.normalize_pid(i, expected_schemes[0]), expected_schemes[0], - url_scheme="https", + url_scheme="http", ) == ( - url_value.replace("http://", "https://") + url_value.replace("https://", "http://", 1) # If the value is already a URL its scheme is preserved - if expected_schemes[0] not in ["purl", "url"] + if expected_schemes[0] not in ["purl", "url", "viaf"] else url_value ) From 88a3371c06a27a6d3540b7c517a1c348d50652db Mon Sep 17 00:00:00 2001 From: Alexander Ioannidis Date: Thu, 29 Nov 2018 20:00:23 +0100 Subject: [PATCH 2/3] global: fix wrong release date --- CHANGES.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 6329393..1fdc2f9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -72,7 +72,7 @@ Version 1.1.2 (2019-02-12) - Adds support for HAL identifiers. -Version 1.1.1 (2018-11-18) +Version 1.1.1 (2018-11-28) - Changes URL resolution for bibcodes to use https://ui.adsabs.harvard instead of https://adsabs.harvard.edu/abs/. From cd8f24ed64799edbc7b34e88d25652b59f87a71f Mon Sep 17 00:00:00 2001 From: Alex Ioannidis Date: Thu, 16 Mar 2023 12:09:29 +0100 Subject: [PATCH 3/3] release: v2.0.0 --- CHANGES.rst | 4 ++++ idutils/__init__.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 1fdc2f9..2c10a7c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -15,6 +15,10 @@ Changes ======= +Version 2.0.0 (2023-03-16) + +- Uses HTTPS by default when calling ``idutils.to_url``. + Version 1.2.1 (2023-03-02) - Fixes ORCiD validation, by adding the new ISNI block range. diff --git a/idutils/__init__.py b/idutils/__init__.py index 547a0f7..6a443ba 100644 --- a/idutils/__init__.py +++ b/idutils/__init__.py @@ -1017,4 +1017,4 @@ def to_url(val, scheme, url_scheme="https"): return "" -__version__ = "1.2.1" +__version__ = "2.0.0"