Skip to content

Commit

Permalink
Merge pull request #16 from cokelaer/main
Browse files Browse the repository at this point in the history
update __init__ (version)
  • Loading branch information
cokelaer authored Dec 29, 2023
2 parents 56a1083 + 21f5ba1 commit 075d3a0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
7 changes: 0 additions & 7 deletions MANIFEST.in

This file was deleted.

1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ Changelog
========= ====================================================================
Version Description
========= ====================================================================
1.8.1 * update __init__ (version)
1.8.0 * uses pyproject instead of setuptools
* uses click instead of argparse and newest sequana_pipetools
(0.16.0)
Expand Down
3 changes: 0 additions & 3 deletions conda.yml

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "sequana-fastqc"
version = "1.8.0"
version = "1.8.1"
description = "A multi-sample fastqc pipeline from Sequana project"
authors = ["Sequana Team"]
license = "BSD-3"
Expand Down
16 changes: 11 additions & 5 deletions sequana_pipelines/fastqc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import pkg_resources
try:
version = pkg_resources.require("sequana_fastqc")[0].version
except:
version = ">=0.8.0"
import importlib.metadata as metadata


def get_package_version(package_name):
try:
version = metadata.version(package_name)
return version
except metadata.PackageNotFoundError:
return f"{package_name} not found"


version = get_package_version("sequana-fastqc")

0 comments on commit 075d3a0

Please sign in to comment.