Skip to content

Commit

Permalink
latest major in docker, actions. releasing most requirement constrain…
Browse files Browse the repository at this point in the history
…ts. pkg_resources deprecated - move version.
  • Loading branch information
dnil committed Oct 24, 2024
1 parent 6c992bd commit 9c69080
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
- name: Check out git repository
uses: actions/checkout@v4

- name: Set up Python 3.12
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: 3.12
python-version: 3.13

- name: Install build tools
run: >-
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.pytest
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Dockerfile to run genmod pytest suite
FROM python:3.12
FROM python:3.13

RUN mkdir -p /genmod

Expand Down
18 changes: 5 additions & 13 deletions genmod/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
from __future__ import (print_function, absolute_import)
from logging import getLogger
from pkg_resources import get_distribution, DistributionNotFound
from os import environ

logger = getLogger(__name__)

try:
__version__ = get_distribution("genmod").version
except DistributionNotFound as error:
# Genmod is not installed (as the case for docker test suite)
if 'GENMOD_DOCKER_TEST' not in environ.keys():
raise error
__version__ = '-1.-1.-1'
from importlib.metadata import version
except ImportError: # Backport support for importlib metadata on Python 3.7
from importlib_metadata import version

__version__ = version("genmod")
1 change: 1 addition & 0 deletions genmod/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "3.9"
16 changes: 8 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
ped_parser == 1.6.6
pytabix == 0.1
pytest == 7.3.1
ped_parser
pytabix
pytest
interval_tree == 0.3.4
click == 8.1.3
configobj == 5.0.8
click
configobj
intervaltree == 3.1.0
extract_vcf == 0.5
vcftoolbox == 1.5.1
six == 1.16.0
extract_vcf
vcftoolbox
six
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import pkg_resources

about = {}
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), "genmod", "__version__.py")) as f:
exec(f.read(), about)

# Shortcut for building/publishing to Pypi
if sys.argv[-1] == 'publish':
Expand Down

0 comments on commit 9c69080

Please sign in to comment.