Skip to content

Commit

Permalink
remove deprecated package
Browse files Browse the repository at this point in the history
  • Loading branch information
simontorres committed Jul 26, 2024
1 parent 367d154 commit 77579d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions goodman_pipeline/core/check_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
import requests
import os

from pkg_resources import parse_version
from pkg_resources.extern.packaging.version import Version
from packaging.version import Version

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -40,14 +39,14 @@ def get_last(github_api_token: str = 'GITHUB_ACCESS_TOKEN') -> Version:
raise ConnectionRefusedError('Number of tests reached maximum for now.')

tag_name = response.json()['tag_name'].replace('v', '')
_version = parse_version(tag_name)
_version = Version(tag_name)

return _version


def am_i_updated(version: str) -> bool:

version = parse_version(version)
version = Version(version)
last_version = get_last()

return last_version <= version
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ dependencies = [
"cython",
"matplotlib",
"numpy",
"packaging",
"pandas",
"requests",
"scipy",
Expand Down

0 comments on commit 77579d9

Please sign in to comment.