Skip to content

Commit

Permalink
fix current publishing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
siebrenf committed Aug 1, 2022
1 parent 7cae227 commit df35379
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/release_checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
genomepy install -af -p ncbi ASM2732v1
genomepy install -af -p url -l url_test https://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/027/325/GCF_000027325.1_ASM2732v1/GCF_000027325.1_ASM2732v1_genomic.fna.gz --URL-to-annotation https://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/027/325/GCF_000027325.1_ASM2732v1/GCF_000027325.1_ASM2732v1_genomic.gff.gz
genomepy install -af -p local -l local_test ~/.local/share/genomes/TAIR10/TAIR10.fa --Local-path-to-annotation ~/.local/share/genomes/TAIR10/TAIR10.annotation.gtf
```

6. Finish the release:
Expand Down
2 changes: 2 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ dependencies:

# Distribution
- python-build
- twine ==3.3.0
- keyring ==22.3.0

# Testing
- autoflake ==1.4
Expand Down
4 changes: 3 additions & 1 deletion genomepy/__about__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Metadata"""
__version__ = "0.14.0"
__author__ = "Siebren Frölich, Maarten van der Sande, Tilman Schäfers and Simon van Heeringen"
__author__ = (
"Siebren Frölich, Maarten van der Sande, Tilman Schäfers and Simon van Heeringen"
)
5 changes: 4 additions & 1 deletion genomepy/functions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Module-level functions"""
import os
import re
import sys
from tempfile import mkdtemp
from typing import Optional

Expand Down Expand Up @@ -335,7 +336,9 @@ def _lazy_provider_selection(name, provider=None):
if p.name == "Local" and os.path.exists(cleanpath(name)):
return p

raise GenomeDownloadError(f"{name} not found on {', '.join(providers)}.")
if len(providers):
raise GenomeDownloadError(f"{name} not found on {', '.join(providers)}.")
sys.exit(0)


def _provider_selection(name, localname, genomes_dir, provider=None):
Expand Down

0 comments on commit df35379

Please sign in to comment.