Skip to content

Commit

Permalink
v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wwood committed Jan 17, 2024
1 parent ba0c981 commit e433c99
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
7 changes: 5 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ authors:
given-names: Suzanne B.
orcid: https://orcid.org/0000-0002-0489-9207
title: "Kingfisher: A utility for procurement of public sequencing data"
version: 0.4.0
date-released: 2023-09-27
version: 0.4.1
date-released: 2024-01-18
identifiers:
- type: doi
value: 10.5281/zenodo.10525085
7 changes: 5 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,11 @@ This key will then be used in all requests.

## Citation

Woodcroft B.J., Gans, J., Cunningham M., Hodgkins S.B., Bolduc B., Kingfisher: A
utility for procurement of public sequencing data.
Woodcroft, B. J., Cunningham, M., Gans, J. D., Bolduc, B. B., & Hodgkins, S. B.
(2023). Kingfisher: A utility for procurement of public sequencing data.
[Computer software]. DOI: 10.5281/zenodo.10525085.

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10525086.svg)](https://doi.org/10.5281/zenodo.10525086)

## License

Expand Down
2 changes: 1 addition & 1 deletion kingfisher/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.0"
__version__ = "0.4.1"
7 changes: 6 additions & 1 deletion release.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import io
from os.path import dirname, join
import re
import extern

def get_version(relpath):
Expand All @@ -21,10 +20,15 @@ def get_version(relpath):
# Replace version in CITATION.cff
citations_lines = []
with open("CITATION.cff", "r") as f:
import re
r = re.compile(r"( *version: )")
r2 = re.compile(r"( *date-released: )")
for line in f:
if matches := r.match(line):
line = matches.group(1) + version + "\n"
elif matches := r2.match(line):
from datetime import datetime
line = matches.group(1) + datetime.today().strftime('%Y-%m-%d') + "\n"
citations_lines.append(line)
with open("CITATION.cff", "w") as f:
f.writelines(citations_lines)
Expand All @@ -37,5 +41,6 @@ def get_version(relpath):

extern.run('git tag v{}'.format(version))
print("Now run 'git push && git push --tags' and GitHub actions will build and upload to PyPI".format(version))
print("Then make a release, adding changelog info, so Zenodo picks it up")
print('You have to run ./build.sh from the docker directory to build the docker image, once the tag is on GitHub')

0 comments on commit e433c99

Please sign in to comment.