Skip to content

Commit

Permalink
Minor fixes and version specification
Browse files Browse the repository at this point in the history
  • Loading branch information
Old-Shatterhand committed Oct 15, 2024
1 parent cd69bc7 commit 98e0b6d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 2 additions & 3 deletions glyles/__main__.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down Expand Up @@ -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))

Expand Down
1 change: 1 addition & 0 deletions glyles/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.0.0"
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <roman.joeres@helmholtz-hips.de>"]
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]
Expand Down
2 changes: 0 additions & 2 deletions tests/test_derivatives.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def compare_smiles(computed, solution):


class TestDerivatives:
@pytest.mark.slow
@pytest.mark.parametrize(
"line",
open("data/anhydro.tsv", "r").readlines() +
Expand All @@ -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:
Expand Down

0 comments on commit 98e0b6d

Please sign in to comment.