Skip to content

Commit abfaa19

Browse files
committed
modernize package
1 parent 8dd2c66 commit abfaa19

File tree

4 files changed

+41
-15
lines changed

4 files changed

+41
-15
lines changed

omark/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
'''
1616

1717
from datetime import date
18+
from importlib.metadata import version as omark_version
1819

1920
__packagename__ = "omark"
20-
__version__ = "0.4.0"
21+
__version__ = omark_version("omark")
2122
__copyright__ = "(C) 2022-{:d} Yannis Nevers <yannis.nevers@unil.ch>".format(
2223
date.today().year
2324
)

bin/omark renamed to omark/cli.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python
2-
31
'''
42
OMArk - Quality assesment of coding-gene repertoire annotation
53
(C) 2022 Yannis Nevers <yannis.nevers@unil.ch>
@@ -17,7 +15,7 @@
1715
'''
1816

1917
import argparse
20-
import omark.omark as omark
18+
from . import omark
2119

2220
def build_arg_parser():
2321
"""Handle the parameter sent when executing the script from the terminal
@@ -48,8 +46,7 @@ def build_arg_parser():
4846
return parser
4947

5048

51-
if __name__=='__main__':
52-
49+
def main():
5350
parser = build_arg_parser()
5451
arg = parser.parse_args()
5552
omark.launcher(arg)

pyproject.toml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[project]
2+
name = "omark"
3+
version = "0.4.0"
4+
description = "OMArk - Proteome quality assesment based on OMAmer placements"
5+
readme = "README.md"
6+
license = "GPL-3.0-or-later"
7+
license-file = "LICENSE"
8+
requires-python = ">=3.9,<3.13"
9+
authors = [
10+
{ name = "Yannis Nevers", email = "yannis.nevers@unil.ch"},
11+
]
12+
dependencies = [
13+
"biopython >1.83,<2",
14+
"ete3",
15+
"jinja2",
16+
"matplotlib",
17+
"omamer>=2.1.0",
18+
]
19+
keywords = ["Proteome quality", "Sequence annotation", "Quality control", "Molecular evolution"]
20+
classifiers = [
21+
"Development Status :: 5 - Production",
22+
"Programming Language :: Python"
23+
]
24+
25+
[project.urls]
26+
Homepage = "https://github.com/DessimozLab/omark"
27+
28+
[project.scripts]
29+
omark = "omark.cli:main"
30+
31+
[build-system]
32+
requires = ["uv_build>=0.9.14,<0.10.0"]
33+
build-backend = "uv_build"
34+
35+
[tool.uv.build-backend]
36+
module-root = "./"
37+
data = ["omark/assets"]

setup.cfg

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)