Skip to content

Commit

Permalink
Merge pull request #3 from peterk87/fix/pypi-install-issue
Browse files Browse the repository at this point in the history
Fix PyPI installation issue
  • Loading branch information
peterk87 authored Nov 28, 2023
2 parents 1d2706c + 6927266 commit 2f4dadf
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 16 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.1 (2023-11-28)

* Fix issue with PyPI installation

## 1.0.0 (2023-05-19)

* Added support for [Bcftools][] and [Clair3][] VCFs
Expand Down
25 changes: 16 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "xlavir"
version = "1.0.0"
dynamic = ["version"]
description = "Excel report from viral sequencing analysis output"
authors = [
{ name = "Peter Kruczkiewicz", email = "[email protected]" }
Expand Down Expand Up @@ -47,6 +51,9 @@ dependencies = [
'pysam',
]

[project.scripts]
xlavir = "xlavir.cli:app"

[project.optional-dependencies]
dev = [
"twine",
Expand All @@ -60,8 +67,14 @@ test = [
"pytest-runner",
]

[tool.setuptools]
py-modules = ["xlavir"]
[tool.hatch.build.targets.wheel]
only-include = [
"xlavir",
]

[tool.hatch.version]
path = "xlavir/__about__.py"


[tool.pytest.ini_options]
minversion = "6.0"
Expand All @@ -83,13 +96,7 @@ module = [
"pandas",
]

[project.scripts]
xlavir = "xlavir.cli:app"

[project.urls]
"Homepage" = "https://github.com/CFIA-NCFAD/xlavir"
"Repository" = "https://github.com/CFIA-NCFAD/xlavir.git"
"Bug Tracker" = "https://github.com/CFIA-NCFAD/xlavir/issues"

[build-system]
requires = ["setuptools", "wheel"]
1 change: 1 addition & 0 deletions xlavir/__about__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.0.1"
5 changes: 0 additions & 5 deletions xlavir/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
"""Top-level package for xlavir."""

import importlib.metadata

__version__ = importlib.metadata.version(__package__ or __name__)
2 changes: 1 addition & 1 deletion xlavir/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from rich.logging import RichHandler
import pandas as pd

from xlavir import __version__
from xlavir.__about__ import __version__
from xlavir.images import get_images_for_sheets
from xlavir.io.excel_sheet_dataframe import ExcelSheetDataFrame, SheetName
from xlavir.qc import QualityRequirements
Expand Down
2 changes: 1 addition & 1 deletion xlavir/io/xl.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from xlavir.io.excel_sheet_dataframe import ExcelSheetDataFrame, SheetName
from xlavir.qc import QualityRequirements
from xlavir.util import get_col_widths, get_row_heights
from xlavir import __version__
from xlavir.__about__ import __version__

logger = logging.getLogger(__name__)

Expand Down

0 comments on commit 2f4dadf

Please sign in to comment.