From fd491e1fa37c02834d687f92664e55786315a49f Mon Sep 17 00:00:00 2001 From: Krzysztof Stopa Date: Tue, 5 Mar 2024 22:33:07 +0100 Subject: [PATCH 1/3] fix: mising long. desc. content type on setup for pipy publishing --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index a96ea10..be845f3 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,7 @@ version='1.3.0', description='Simple sunset and sunrise time calculation python library', long_description=long_description, + long_description_content_type='text/markdown', author='Krzysztof Stopa', url='https://github.com/SatAgro/suntime', copyright='Copyright 2024 SatAgro', From c4be6018b09c7910c6eb38bfe9eb11cf8aabfe9e Mon Sep 17 00:00:00 2001 From: Krzysztof Stopa Date: Thu, 7 Mar 2024 22:22:48 +0100 Subject: [PATCH 2/3] fix: drop annoyng prints --- suntime/suntime.py | 2 -- tests.py | 3 --- 2 files changed, 5 deletions(-) diff --git a/suntime/suntime.py b/suntime/suntime.py index bd051c0..8a3524a 100644 --- a/suntime/suntime.py +++ b/suntime/suntime.py @@ -132,10 +132,8 @@ def get_sun_timedelta(self, at_date, time_zone, is_rise_time=True, zenith=90.8): # 7c. rounding and impose range bounds UT = round(UT, 2) - print("UT 1 {}".format(UT)) if is_rise_time: UT = self._force_range(UT, 24) - print(UT) # 8. return timedelta return timedelta(hours=UT) diff --git a/tests.py b/tests.py index c3d13dd..e04474f 100644 --- a/tests.py +++ b/tests.py @@ -55,12 +55,9 @@ def setUp(self): def test_get_sunrise_time(self): # Sunrise in Tokyo - print("TOKYO") expected_sunrise = datetime(2024, 3, 11, 20, 57, 36, tzinfo=tz.UTC) utc_sunrise = self.sun.get_sunrise_time(datetime(2024, 3, 11)) - print(utc_sunrise) local_sunrise = self.sun.get_local_sunrise_time(datetime(2024, 3, 11), tz.gettz('Asia/Tokyo')) - print(local_sunrise) self.assertEqual(utc_sunrise, expected_sunrise) # self.assertEqual(local_sunrise, expected_sunrise) From 211754f46f39f11e19c8388e568021287c0a38d6 Mon Sep 17 00:00:00 2001 From: Krzysztof Stopa Date: Thu, 7 Mar 2024 22:31:32 +0100 Subject: [PATCH 3/3] Version 1.3.1 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index be845f3..902a41c 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ long_description = f.read() setup(name='suntime', - version='1.3.0', + version='1.3.1', description='Simple sunset and sunrise time calculation python library', long_description=long_description, long_description_content_type='text/markdown',