Skip to content

Commit b492e7f

Browse files
fix: update Kosmorrolib to version 1.0.1 (#207)
BREAKING CHANGE: this version removes support for Kosmorrolib < 1.0 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 6ae0502 commit b492e7f

File tree

6 files changed

+142
-171
lines changed

6 files changed

+142
-171
lines changed

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ black = "*"
1010
[packages]
1111
tabulate = "*"
1212
termcolor = "*"
13-
kosmorrolib = ">=0.11.0,<0.12.0"
13+
kosmorrolib = ">=1.0.0,<2.0.0"
1414
python-dateutil = "*"
1515

1616
[requires]

Pipfile.lock

Lines changed: 106 additions & 99 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_kosmorro/dumper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import shutil
2626
from pathlib import Path
2727

28-
from kosmorrolib.exceptions import UnavailableFeatureError
2928
from tabulate import tabulate
3029
from termcolor import colored
3130

@@ -351,7 +350,7 @@ def add_strings(
351350
continue
352351

353352
document = document.replace(
354-
"+++ASTER_%s+++" % aster.skyfield_name.upper().split(" ")[0],
353+
"+++ASTER_%s+++" % aster.identifier.name,
355354
object_name,
356355
)
357356

_kosmorro/i18n/strings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def from_event(event: Event, with_description: bool = True) -> str:
1818
else event.details
1919
),
2020
),
21-
EventType.MOON_PERIGEE: (_("%s is at its perigee"), None),
22-
EventType.MOON_APOGEE: (_("%s is at its apogee"), None),
21+
EventType.PERIGEE: (_("%s is at its perigee"), None),
22+
EventType.APOGEE: (_("%s is at its apogee"), None),
2323
}.get(event.event_type)
2424

2525
if string is None:

0 commit comments

Comments
 (0)