From 98e0b6d14354069a7c0c214e3c01ba47a45fc098 Mon Sep 17 00:00:00 2001 From: Roman Joeres Date: Tue, 15 Oct 2024 13:29:15 +0200 Subject: [PATCH] Minor fixes and version specification --- .github/workflows/test.yaml | 2 +- glyles/__main__.py | 5 ++--- glyles/version.py | 1 + pyproject.toml | 8 +++++--- tests/test_derivatives.py | 2 -- 5 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 glyles/version.py diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e4fc8ff..1eb8204 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -38,7 +38,7 @@ jobs: - name: Run tests run: | cd tests - poetry run python -m pytest --cov=../glyles/ --cov-report=xml -m "not todo and not slow" + poetry run python -m pytest --cov=../glyles/ --cov-report=xml -m "not todo" - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: diff --git a/glyles/__main__.py b/glyles/__main__.py index c403a16..b59eb5c 100644 --- a/glyles/__main__.py +++ b/glyles/__main__.py @@ -1,10 +1,9 @@ import os import sys import argparse -import pkg_resources - from glyles import convert +from glyles.version import __version__ def parse_args(args): @@ -40,7 +39,7 @@ def parse_args(args): "-v", "--version", action="version", - version=f"%(prog)s {pkg_resources.get_distribution('glyles').version}" + version=f"%(prog)s {__version__}" ) return vars(parser.parse_args(args)) diff --git a/glyles/version.py b/glyles/version.py new file mode 100644 index 0000000..5becc17 --- /dev/null +++ b/glyles/version.py @@ -0,0 +1 @@ +__version__ = "1.0.0" diff --git a/pyproject.toml b/pyproject.toml index 6ab4460..bf50694 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,15 @@ [tool.poetry] name = "glyles" -version = "0.5.11" +version = "1.0.0" repository = "https://github.com/kalininalab/GlyLES" readme = "README.md" description = "A tool to convert IUPAC representation of glycans into SMILES strings" authors = ["Roman Joeres "] classifiers = [ - "Development Status :: 3 - Alpha", - "Operating System :: OS Independent" + "Development Status :: 5 - Production/Stable", + "Operating System :: OS Independent", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", ] [tool.poetry.dependencies] diff --git a/tests/test_derivatives.py b/tests/test_derivatives.py index 8e79a67..23da2c8 100644 --- a/tests/test_derivatives.py +++ b/tests/test_derivatives.py @@ -23,7 +23,6 @@ def compare_smiles(computed, solution): class TestDerivatives: - @pytest.mark.slow @pytest.mark.parametrize( "line", open("data/anhydro.tsv", "r").readlines() + @@ -41,7 +40,6 @@ def test_smiles_databases(self, line): iupac, smiles = line.split("\t")[:2] compare_smiles(Glycan(iupac).get_smiles(), smiles) - @pytest.mark.slow @pytest.mark.parametrize("line", open("data/glycowork.txt", "r").readlines()) def test_iupac_databases(self, line): if '0dHex' in line or 'en' in line or 'Ins' in line: