bioversions 0.5.452__py3-none-any.whl → 0.5.454__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bioversions/sources/dgi.py +9 -10
- bioversions/version.py +1 -1
- {bioversions-0.5.452.dist-info → bioversions-0.5.454.dist-info}/METADATA +1 -1
- {bioversions-0.5.452.dist-info → bioversions-0.5.454.dist-info}/RECORD +8 -8
- {bioversions-0.5.452.dist-info → bioversions-0.5.454.dist-info}/LICENSE +0 -0
- {bioversions-0.5.452.dist-info → bioversions-0.5.454.dist-info}/WHEEL +0 -0
- {bioversions-0.5.452.dist-info → bioversions-0.5.454.dist-info}/entry_points.txt +0 -0
- {bioversions-0.5.452.dist-info → bioversions-0.5.454.dist-info}/top_level.txt +0 -0
bioversions/sources/dgi.py
CHANGED
@@ -2,14 +2,13 @@
|
|
2
2
|
|
3
3
|
"""A getter for the `Drug Gene Interaction Database (DGI-DB) <http://www.dgidb.org>`_."""
|
4
4
|
|
5
|
-
import os
|
6
|
-
|
7
5
|
import bs4
|
6
|
+
import dateutil.parser
|
8
7
|
import requests
|
9
8
|
|
10
9
|
from bioversions.utils import Getter, VersionType
|
11
10
|
|
12
|
-
|
11
|
+
GITHUB_PAGE = "https://github.com/dgidb/dgidb-v5"
|
13
12
|
|
14
13
|
|
15
14
|
class DGIGetter(Getter):
|
@@ -21,14 +20,14 @@ class DGIGetter(Getter):
|
|
21
20
|
|
22
21
|
def get(self):
|
23
22
|
"""Get the latest DGI version number."""
|
24
|
-
res = requests.get(
|
25
|
-
soup = bs4.BeautifulSoup(res.content
|
26
|
-
|
27
|
-
if
|
23
|
+
res = requests.get(GITHUB_PAGE)
|
24
|
+
soup = bs4.BeautifulSoup(res.content)
|
25
|
+
time_tag = soup.find("relative-time")
|
26
|
+
if time_tag is None:
|
28
27
|
raise ValueError
|
29
|
-
|
30
|
-
|
31
|
-
version =
|
28
|
+
datetime_str = time_tag.attrs["datetime"]
|
29
|
+
dt_obj = dateutil.parser.parse(datetime_str)
|
30
|
+
version = dt_obj.strftime(self.date_version_fmt)
|
32
31
|
return version
|
33
32
|
|
34
33
|
|
bioversions/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: bioversions
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.454
|
4
4
|
Summary: What's the current version for each biological database?
|
5
5
|
Home-page: https://github.com/biopragmatics/bioversions
|
6
6
|
Download-URL: https://github.com/biopragmatics/bioversions/releases
|
@@ -6,7 +6,7 @@ bioversions/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
bioversions/slack_client.py,sha256=42kl4TbjtXimVRULcBfe8i3pdJLScEPvJr1vw72tv-4,1271
|
7
7
|
bioversions/twitter_client.py,sha256=TQhsdp6avlzoZLoZlndJlwsYhIYI-uabehZJ1W1mNuY,1353
|
8
8
|
bioversions/utils.py,sha256=6ygaoe5rRArtrCXHrVygpl2cD7Otrbs4D1rADmpXDrA,10425
|
9
|
-
bioversions/version.py,sha256=
|
9
|
+
bioversions/version.py,sha256=uAodLaaatYhNcauplKGEmhU6_MLd7Tv_8ulB84-Jnho,645
|
10
10
|
bioversions/wsgi.py,sha256=Z1HYFmnrWKNGwHq4R4DRfBuLzAEAAZ5UfHjvJUpnDfs,826
|
11
11
|
bioversions/resources/__init__.py,sha256=0E1yGGT5SztSGEa30Tai4wCUki4nqfynqCSNAvjzEOk,1173
|
12
12
|
bioversions/resources/update.py,sha256=21LprPktMKXdFI7llKjn7gsAQq01TGSKFbWQEhhwDJ0,3215
|
@@ -22,7 +22,7 @@ bioversions/sources/civic.py,sha256=1uGaTy2ipZ2Nm5Nn_Ojv6biJfLr3sB3djc6AmOT3sO0,
|
|
22
22
|
bioversions/sources/complexportal.py,sha256=SPJ3ryJNtXwvArtHaeeWCSau6uVBJTDxPX6XPvKmDlY,696
|
23
23
|
bioversions/sources/daily.py,sha256=mq8NLnhRRDjTzwGQl9LxCBiO6BSWyGOJcfyg7qqNsno,281
|
24
24
|
bioversions/sources/depmap.py,sha256=EjpScMRwqItvitso57ah3f53bkWbTK0bjLWOBr4ym1E,654
|
25
|
-
bioversions/sources/dgi.py,sha256=
|
25
|
+
bioversions/sources/dgi.py,sha256=GK2cyReEOsxYeiRQGSDlXIuUDsWtsyHBVwveKje0-K8,929
|
26
26
|
bioversions/sources/disgenet.py,sha256=iRd1K2o_m8xSlJrWoSD8-plnTS1nO0Ur_OCCRD2V9u8,752
|
27
27
|
bioversions/sources/drugbank.py,sha256=ZZ2yw34bRcLFT6n_Ygn1daGWk_oVx4A7ovUKSM_EQek,1005
|
28
28
|
bioversions/sources/drugcentral.py,sha256=EWYatYEqZbwjH-0lUXYEfe5P5VNHsNJAtNDlSP_OuZM,1117
|
@@ -69,9 +69,9 @@ bioversions/sources/uniprot.py,sha256=_rootal_mrESkiXJh3udfr1UGrlzP7CQQIMsa35tyc
|
|
69
69
|
bioversions/sources/unversioned.py,sha256=noHxGmy9cpVv5xegMHouBF6oCbW6CP1jpOeCVdE7Eak,78
|
70
70
|
bioversions/sources/wikipathways.py,sha256=HTva8vsXRQWU6bia83Et4vveo-QhzJS6dDWeu9Syc6c,823
|
71
71
|
bioversions/sources/zfin.py,sha256=D7csziZ3UsW8dncm6XKA0t3x6XB4cFbG9PTYcT-g2bg,708
|
72
|
-
bioversions-0.5.
|
73
|
-
bioversions-0.5.
|
74
|
-
bioversions-0.5.
|
75
|
-
bioversions-0.5.
|
76
|
-
bioversions-0.5.
|
77
|
-
bioversions-0.5.
|
72
|
+
bioversions-0.5.454.dist-info/LICENSE,sha256=GzLA83qaovFgoZWRYwaAmY-lkHZyDySJHU-YKE9NdVs,1076
|
73
|
+
bioversions-0.5.454.dist-info/METADATA,sha256=Dx8tHlhR51Qk6BP2tAmjuih0wuQPaAOrNWPYDBBsoh4,9443
|
74
|
+
bioversions-0.5.454.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
|
75
|
+
bioversions-0.5.454.dist-info/entry_points.txt,sha256=A3qrS-nvKNZPZWQbYlmsmiDTge524C4yR-arRJwdHls,53
|
76
|
+
bioversions-0.5.454.dist-info/top_level.txt,sha256=0QO2OEUMchj5GSlWEFi0cvUpsm4b_uwuuvr6uSEmfY0,12
|
77
|
+
bioversions-0.5.454.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|