Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release Please

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.3.0"
}
5 changes: 3 additions & 2 deletions plotnado/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@
)

try:
from ._version import version as __version__
except ImportError:
from importlib.metadata import version as _version
__version__ = _version("plotnado")
except Exception:
__version__ = "unknown"

__all__ = [
Expand Down
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools >= 61.0", "wheel", "setuptools_scm[toml]>=6.2"]
requires = ["setuptools >= 61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
Expand All @@ -9,7 +9,8 @@ description = "A simple plotting library for making genomic tracks"
readme = "README.md"
requires-python = ">=3.12"
license = { text = "GPL-3.0-or-later" }
dynamic = ["version", "dependencies"]
version = "0.3.0"
dynamic = ["dependencies"]
keywords = ["genomics", "bioinformatics", "plotting", "genome-browser", "tracks"]
classifiers = [
"Development Status :: 3 - Alpha",
Expand Down Expand Up @@ -67,10 +68,6 @@ plotnado = ["data/gene_bed_files/*", "py.typed"]



[tool.setuptools_scm]
local_scheme = "no-local-version"
write_to = "plotnado/_version.py"

[project.urls]
Homepage = "https://github.com/alsmith151/plotnado"
Repository = "https://github.com/alsmith151/plotnado"
Expand Down
12 changes: 12 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "python",
"packages": {
".": {
"package-name": "plotnado",
"changelog-path": "CHANGELOG.md",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true
}
}
}
Loading