Skip to content

Commit

Permalink
release 4.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xrotwang committed Apr 16, 2020
1 parent ac3e23d commit cdd0d5e
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 30 deletions.
2 changes: 0 additions & 2 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

# Releasing https://glottolog.org

- Remove hacked in editor in glottolog3/templates/dataset/md_txt.mako !

- Checkout the corresponding release of glottolog/glottolog.
- For major or minor releases: create the static archive including the last release:
```shell script
Expand Down
11 changes: 9 additions & 2 deletions glottolog3/commands/mark_new_languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@
from glottolog3.cli_util import get_releases


def register(parser):
parser.add_argument('--previous', help='previous version to compare against', default=None)


def run(args):
version = assert_release(args.repos.repos)
rels = get_releases(args)
last = sorted(set(rel.tag for rel in rels) - {version}, key=lambda s: float(s[1:]))[-1][1:]
if args.previous:
last = args.previous
else:
rels = get_releases(args)
last = sorted(set(rel.tag for rel in rels) - {version}, key=lambda s: float(s[1:]))[-1][1:]
print('previous version: {0}'.format(last))

cdb = create_engine('postgresql://postgres@/glottolog3')
Expand Down
48 changes: 24 additions & 24 deletions glottolog3/static/downloads.json
Original file line number Diff line number Diff line change
Expand Up @@ -1098,57 +1098,57 @@
"bitstreams": [
{
"bitstreamid": "glottolog.sql.gz",
"checksum": "0ba3a998e21b233c8456b4f56b1bb378",
"checksum": "fa14afb5cfd68a47037954169ecc1f46",
"checksum-algorithm": "MD5",
"content-type": "application/x-sql",
"created": 1587036199092,
"filesize": 138671732,
"last-modified": 1587036201750
"created": 1587060050375,
"filesize": 138749342,
"last-modified": 1587060052816
},
{
"bitstreamid": "glottolog_language.n3.gz",
"checksum": "3f62166d54bb5c451a9fc21384d51e0a",
"checksum": "6afa708170330d4bc354bb9a78d8513f",
"checksum-algorithm": "MD5",
"content-type": "application/octet-stream",
"created": 1587038026335,
"filesize": 3068304,
"last-modified": 1587038026399
"created": 1587063765006,
"filesize": 3068343,
"last-modified": 1587063765051
},
{
"bitstreamid": "glottolog_language.ttl.gz",
"checksum": "47d9d1dc3a26b1f38625cf6f01bb6493",
"checksum": "0e8df4a8c36107f2a8bb7947a2a81d88",
"checksum-algorithm": "MD5",
"content-type": "text/turtle",
"created": 1587039023454,
"filesize": 3069258,
"last-modified": 1587039023498
"created": 1587064819428,
"filesize": 3069311,
"last-modified": 1587064819664
},
{
"bitstreamid": "glottolog_languoid.csv.zip",
"checksum": "42f419d5c1cdc8991765e25d865e51ac",
"checksum": "b5387df13e9692c5bc970c8d0402d3c3",
"checksum-algorithm": "MD5",
"content-type": "application/zip",
"created": 1587037972419,
"filesize": 543684,
"last-modified": 1587037972434
"created": 1587063696891,
"filesize": 543698,
"last-modified": 1587063696906
},
{
"bitstreamid": "glottolog_source.bib.zip",
"checksum": "130a4f12a2267cec5b047e9b85cbdc90",
"checksum": "9f6439a8ac04ea424b64c9f53e65d33c",
"checksum-algorithm": "MD5",
"content-type": "application/zip",
"created": 1587037958936,
"filesize": 52897118,
"last-modified": 1587037959636
"created": 1587063679379,
"filesize": 52897132,
"last-modified": 1587063679992
},
{
"bitstreamid": "glottolog_source.n3.gz",
"checksum": "f2bb8f128135b5b24f63fcc602b0e652",
"checksum": "2d2d98b67a53c7de81915b05ea5400b1",
"checksum-algorithm": "MD5",
"content-type": "application/octet-stream",
"created": 1587038951493,
"filesize": 50862777,
"last-modified": 1587038952353
"created": 1587064756879,
"filesize": 50863034,
"last-modified": 1587064757747
},
{
"bitstreamid": "languages_and_dialects_geo.csv",
Expand Down
2 changes: 1 addition & 1 deletion glottolog3/templates/dataset/detail_html.mako
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</p>
<blockquote>
${h.newline2br(TxtCitation.render(ctx, request))|n}<br>
<a href="https://doi.org/10.5281/zenodo.3753877"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.3753877.svg" alt="DOI"></a>
<a href="https://doi.org/10.5281/zenodo.3754591"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.3754591.svg" alt="DOI"></a>
</blockquote>
<p>
Particularly important contributors to the Langdoc database are Alain Fabre,
Expand Down
2 changes: 1 addition & 1 deletion glottolog3/templates/dataset/md_txt.mako
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
${request.dataset.formatted_editors()|n} & Bank, Sebastian. ${request.dataset.updated.year}.
${request.dataset.formatted_editors()|n}. ${request.dataset.updated.year}.
${request.dataset.name}.
${request.dataset.publisher_place}: ${request.dataset.publisher_name}.
(Available online at http://${request.dataset.domain}, Accessed on ${h.datetime.date.today()}.)

0 comments on commit cdd0d5e

Please sign in to comment.