Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update __init__ (version) #16

Merged
merged 1 commit into from
Dec 29, 2023
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
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")
Loading