bioversions 0.5.561__py3-none-any.whl → 0.5.561.dev0__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.
@@ -18,7 +18,6 @@ HERE = Path(__file__).parent.resolve()
18
18
  VERSIONS_PATH = HERE.joinpath(HERE, "versions.json")
19
19
 
20
20
  ROOT = HERE.parent.parent.parent.resolve()
21
- PYPROJECT_TOML_PATH = ROOT.joinpath("pyproject.toml")
22
21
  DOCS = ROOT.joinpath("docs")
23
22
  EXPORTS_DIRECTORY = DOCS.joinpath("_data")
24
23
  EXPORT_PATH = EXPORTS_DIRECTORY.joinpath("versions.yml")
@@ -27,11 +26,6 @@ FAILURES_PATH = DOCS.joinpath("failures.md")
27
26
 
28
27
  def load_versions():
29
28
  """Load Bioversions data."""
30
- if not VERSIONS_PATH.is_file():
31
- raise RuntimeError(
32
- f"bioversions was not packaged/built/installed properly -"
33
- f"{VERSIONS_PATH.name} was not found inside the distribution"
34
- )
35
29
  with open(VERSIONS_PATH) as file:
36
30
  return json.load(file)
37
31
 
@@ -41,20 +35,13 @@ def _date_converter(o):
41
35
  return o.strftime("%Y-%m-%d")
42
36
 
43
37
 
44
- def write_versions(versions, indent: int = 2, **kwargs) -> None:
38
+ def write_versions(versions, indent: int = 2, **kwargs):
45
39
  """Write Bioversions data."""
46
- _ensure_editable()
47
40
  with open(VERSIONS_PATH, "w") as file:
48
41
  json.dump(versions, file, indent=indent, default=_date_converter, **kwargs)
49
42
 
50
43
 
51
- def write_export(versions) -> None:
44
+ def write_export(versions):
52
45
  """Write Bioversions data to the export directory."""
53
- _ensure_editable()
54
46
  with open(EXPORT_PATH, "w") as file:
55
47
  yaml.safe_dump(versions, file)
56
-
57
-
58
- def _ensure_editable() -> None:
59
- if not PYPROJECT_TOML_PATH.is_file():
60
- raise RuntimeError("can not make export when bioversions is not installed in editable mode")
bioversions/version.py CHANGED
@@ -7,7 +7,7 @@ __all__ = [
7
7
  "VERSION",
8
8
  ]
9
9
 
10
- VERSION = "0.5.561"
10
+ VERSION = "0.5.561-dev"
11
11
 
12
12
 
13
13
  def get_git_hash() -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bioversions
3
- Version: 0.5.561
3
+ Version: 0.5.561.dev0
4
4
  Summary: Get the current version for biological databases
5
5
  Project-URL: Bug Tracker, https://github.com/biopragmatics/bioversions/issues
6
6
  Project-URL: Homepage, https://github.com/biopragmatics/bioversions
@@ -6,9 +6,9 @@ bioversions/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  bioversions/slack_client.py,sha256=p9HmnyRCVuQvje0RbdDK9QuRlSw__WwFCJ8Be9cIkzM,1209
7
7
  bioversions/twitter_client.py,sha256=9d5Am0FSs7_EgGdjkxqpo98vPir9rjIXIxhZMmLgK5Q,1285
8
8
  bioversions/utils.py,sha256=x5d4p12VMlD5F8-y_J6JE5sct7BCV1d-zO-y5bSamSM,10342
9
- bioversions/version.py,sha256=Q_aK7ZD4dIa2_ZaP3nze3oVJcrS8vQdZo_Kzb6aOoAU,587
9
+ bioversions/version.py,sha256=lWH3hdBFhbAky8bHx3JRJtPKyxtApx596YsOUXA20uo,591
10
10
  bioversions/wsgi.py,sha256=-F7pUZipcQgj1T_f-9QCZBVdQ9sZBH93x3hxh9h7klU,794
11
- bioversions/resources/__init__.py,sha256=Nxw6w6_gRC4B_JwvbAAKpNR2rIpkNRZ5UkBIMdNqldY,1659
11
+ bioversions/resources/__init__.py,sha256=zztRKsMzFpL7ONI5W5jfw0YAHK_cvcjpX_afyILwHDk,1147
12
12
  bioversions/resources/update.py,sha256=btT_tdp0NKBRdshf4VuOe-vHWq0QQtcWWFcXS8QUfLU,3626
13
13
  bioversions/resources/versions.json,sha256=z4LobxLg8z-ltiARxDt08VuLIwNBtjCeCC8WUgg53o8,477637
14
14
  bioversions/sources/__init__.py,sha256=pXONlDoxWIVRTSdCN3RDr3aMY38QGPOt0EwPAMCaIF8,6248
@@ -73,8 +73,8 @@ bioversions/sources/wikipathways.py,sha256=STw8Bivc3IZLYIx-KwpxHLUmRTqNfHm0wQywD
73
73
  bioversions/sources/zfin.py,sha256=3Ooz3lDx8J42OAoyU8eJI-fRnMRiYyUMcj4fDE5DVLQ,683
74
74
  bioversions/templates/base.html,sha256=AKB6aT39U9VtOM2zvW_Um5IgYO9Ky-CLpByxy5XXO5M,713
75
75
  bioversions/templates/home.html,sha256=z98FSslCRP2K39xbHpSPgk19j7Z21PSbRGAtaXI0Md0,2756
76
- bioversions-0.5.561.dist-info/METADATA,sha256=rjXiJDrGumeJ0XNv-KaOvEQET2gewODoBd5eAb7gfu4,19725
77
- bioversions-0.5.561.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
78
- bioversions-0.5.561.dist-info/entry_points.txt,sha256=A3qrS-nvKNZPZWQbYlmsmiDTge524C4yR-arRJwdHls,53
79
- bioversions-0.5.561.dist-info/licenses/LICENSE,sha256=QcgJZKGxlW5BwBNnCBL8VZLVtRvXs81Ch9lJRQSIpJg,1076
80
- bioversions-0.5.561.dist-info/RECORD,,
76
+ bioversions-0.5.561.dev0.dist-info/METADATA,sha256=FtsFykxqU4DJgnsVhNAsWILvjwnTdnWJjExsJ2919Dw,19730
77
+ bioversions-0.5.561.dev0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
78
+ bioversions-0.5.561.dev0.dist-info/entry_points.txt,sha256=A3qrS-nvKNZPZWQbYlmsmiDTge524C4yR-arRJwdHls,53
79
+ bioversions-0.5.561.dev0.dist-info/licenses/LICENSE,sha256=QcgJZKGxlW5BwBNnCBL8VZLVtRvXs81Ch9lJRQSIpJg,1076
80
+ bioversions-0.5.561.dev0.dist-info/RECORD,,