Skip to content

Commit 25973e7

Browse files
committed
fix: properly configure release-please with manifest (#210)
1 parent afa5d09 commit 25973e7

7 files changed

Lines changed: 18 additions & 6 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
id: release
1515
with:
1616
release-type: python
17-
package-name: clinvar-this
1817
token: ${{ secrets.BOT_TOKEN }}
1918

2019
- uses: actions/checkout@v2

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.15.0"
3+
}

clinvar_this/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
__author__ = """Manuel Holtgrewe"""
44
__email__ = "manuel.holtgrewe@bih-charite.de"
55

6-
from clinvar_this import _version
6+
from clinvar_this import version
77

8-
__version__ = _version.__version__
8+
__version__ = version.__version__

clinvar_this/_version.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

clinvar_this/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
gene_impact,
1414
phenotype_link,
1515
)
16-
from clinvar_this import _version, batches, exceptions
16+
from clinvar_this import batches, exceptions, version
1717
from clinvar_this.config import Config, dump_config, load_config, save_config
1818

1919

2020
@click.group()
21-
@click.version_option(_version.__version__)
21+
@click.version_option(version.__version__)
2222
@click.option("--verbose/--no-verbose", default=False)
2323
@click.option("--profile", default="default", help="The profile to use")
2424
@click.option(

clinvar_this/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.15.0"

release-please-config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"release-type": "python",
6+
"package-name": "clinvar-this",
7+
"version-file": "clinvar_this/_version.py"
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)