pylunar 0.8.0__tar.gz → 0.10.0__tar.gz
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.
- {pylunar-0.8.0 → pylunar-0.10.0}/.pre-commit-config.yaml +5 -6
- {pylunar-0.8.0 → pylunar-0.10.0}/HISTORY.rst +41 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/LICENSE +1 -1
- {pylunar-0.8.0 → pylunar-0.10.0}/PKG-INFO +17 -18
- {pylunar-0.8.0 → pylunar-0.10.0}/docs/conf.py +1 -1
- {pylunar-0.8.0 → pylunar-0.10.0}/pyproject.toml +14 -16
- pylunar-0.10.0/renovate.json +20 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/src/pylunar/altitude_dict.py +1 -2
- {pylunar-0.8.0 → pylunar-0.10.0}/src/pylunar/lunar_feature_container.py +2 -2
- {pylunar-0.8.0 → pylunar-0.10.0}/src/pylunar/moon_info.py +14 -12
- {pylunar-0.8.0 → pylunar-0.10.0}/src/pylunar/pkg_types.py +7 -7
- pylunar-0.10.0/src/pylunar/py.typed +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/src/pylunar.egg-info/PKG-INFO +17 -18
- {pylunar-0.8.0 → pylunar-0.10.0}/src/pylunar.egg-info/SOURCES.txt +1 -0
- pylunar-0.10.0/src/pylunar.egg-info/requires.txt +30 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/tests/test_moon_info.py +1 -1
- pylunar-0.8.0/renovate.json +0 -12
- pylunar-0.8.0/src/pylunar.egg-info/requires.txt +0 -36
- {pylunar-0.8.0 → pylunar-0.10.0}/AUTHORS.rst +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/CONTRIBUTING.rst +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/MANIFEST.in +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/Makefile +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/README.rst +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/docs/Makefile +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/docs/authors.rst +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/docs/contributing.rst +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/docs/history.rst +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/docs/index.rst +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/docs/installation.rst +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/docs/make.bat +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/docs/usage.rst +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/scripts/startup.py +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/setup.cfg +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/src/pylunar/__init__.py +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/src/pylunar/data/lunar.db +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/src/pylunar/helpers.py +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/src/pylunar/lunar_feature.py +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/src/pylunar.egg-info/dependency_links.txt +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/src/pylunar.egg-info/top_level.txt +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/tests/__init__.py +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/tests/test_altitude_dict.py +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/tests/test_helpers.py +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/tests/test_lunar_feature.py +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/tests/test_lunar_feature_container.py +0 -0
- {pylunar-0.8.0 → pylunar-0.10.0}/tox.ini +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
repos:
|
2
2
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
3
|
-
rev:
|
3
|
+
rev: v5.0.0
|
4
4
|
hooks:
|
5
5
|
- id: check-merge-conflict
|
6
6
|
- id: check-toml
|
@@ -8,25 +8,24 @@ repos:
|
|
8
8
|
- id: trailing-whitespace
|
9
9
|
|
10
10
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
11
|
-
rev: v0.6
|
11
|
+
rev: v0.11.6
|
12
12
|
hooks:
|
13
13
|
- id: ruff
|
14
14
|
args: [--fix, --exit-non-zero-on-fix]
|
15
15
|
- id: ruff-format
|
16
16
|
|
17
17
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
18
|
-
rev: v1.
|
18
|
+
rev: v1.15.0
|
19
19
|
hooks:
|
20
20
|
- id: mypy
|
21
21
|
args: [--strict]
|
22
|
-
additional_dependencies: [types-pytz==2024.2.0.20240913]
|
23
22
|
|
24
23
|
- repo: https://github.com/numpy/numpydoc
|
25
|
-
rev: v1.
|
24
|
+
rev: v1.8.0
|
26
25
|
hooks:
|
27
26
|
- id: numpydoc-validation
|
28
27
|
|
29
28
|
- repo: https://github.com/tox-dev/tox-ini-fmt
|
30
|
-
rev: "1.
|
29
|
+
rev: "1.5.0"
|
31
30
|
hooks:
|
32
31
|
- id: tox-ini-fmt
|
@@ -4,6 +4,47 @@ History
|
|
4
4
|
-------
|
5
5
|
.. scriv-insert-here
|
6
6
|
|
7
|
+
.. _changelog-0.10.0:
|
8
|
+
|
9
|
+
0.10.0 (2025-04-20)
|
10
|
+
+++++++++++++++++++
|
11
|
+
|
12
|
+
Added
|
13
|
+
^^^^^
|
14
|
+
|
15
|
+
- py.typed file for type hints.
|
16
|
+
|
17
|
+
Changed
|
18
|
+
^^^^^^^
|
19
|
+
|
20
|
+
- Switched to zoneinfo from pytz.
|
21
|
+
- Renovate configuration and schedule.
|
22
|
+
- Updated pre-commit and package versions.
|
23
|
+
- License identifier in pyproject.toml.
|
24
|
+
- Copyright year.
|
25
|
+
|
26
|
+
Fixed
|
27
|
+
^^^^^
|
28
|
+
|
29
|
+
- Linting issues from new pre-commit versions.
|
30
|
+
- Splitting sphinx version based on python version.
|
31
|
+
|
32
|
+
.. _changelog-0.9.0:
|
33
|
+
|
34
|
+
0.9.0 (2024-12-10)
|
35
|
+
++++++++++++++++++
|
36
|
+
|
37
|
+
Changed
|
38
|
+
^^^^^^^
|
39
|
+
|
40
|
+
- Remove Python 3.8 support.
|
41
|
+
- Add Python 3.13 support.
|
42
|
+
|
43
|
+
Fixed
|
44
|
+
^^^^^
|
45
|
+
|
46
|
+
- Issues from pre-commit config version updates.
|
47
|
+
|
7
48
|
.. _changelog-0.8.0:
|
8
49
|
|
9
50
|
0.8.0 (2024-11-09)
|
@@ -1,44 +1,43 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: pylunar
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.10.0
|
4
4
|
Summary: Information for completing the Astronomical League's Lunar and Lunar II observing programs.
|
5
5
|
Author-email: Michael Reuter <mareuternh@gmail.com>
|
6
|
+
License-Expression: BSD-3-Clause
|
6
7
|
Project-URL: Documentation, http://pylunar.readthedocs.io
|
7
8
|
Project-URL: Repository, https://github.com/mareuter/pylunar
|
8
9
|
Classifier: Development Status :: 4 - Beta
|
9
10
|
Classifier: Intended Audience :: Developers
|
10
|
-
Classifier: License :: OSI Approved :: BSD License
|
11
11
|
Classifier: Natural Language :: English
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
14
13
|
Classifier: Programming Language :: Python :: 3.9
|
15
14
|
Classifier: Programming Language :: Python :: 3.10
|
16
15
|
Classifier: Programming Language :: Python :: 3.11
|
17
16
|
Classifier: Programming Language :: Python :: 3.12
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
18
18
|
Description-Content-Type: text/x-rst
|
19
19
|
License-File: LICENSE
|
20
20
|
License-File: AUTHORS.rst
|
21
|
-
Requires-Dist: ephem==4.
|
22
|
-
Requires-Dist: importlib-resources==6.
|
23
|
-
Requires-Dist: typing-extensions==4.
|
24
|
-
Requires-Dist: pytz==2024.2
|
21
|
+
Requires-Dist: ephem==4.2
|
22
|
+
Requires-Dist: importlib-resources==6.5.2; python_version < "3.10"
|
23
|
+
Requires-Dist: typing-extensions==4.13.2; python_version < "3.10"
|
25
24
|
Provides-Extra: dev
|
26
25
|
Requires-Dist: pylunar[build,docs,lint,test]; extra == "dev"
|
27
|
-
Requires-Dist: scriv==1.
|
28
|
-
Requires-Dist: tox==4.
|
26
|
+
Requires-Dist: scriv==1.6.2; extra == "dev"
|
27
|
+
Requires-Dist: tox==4.25.0; extra == "dev"
|
29
28
|
Provides-Extra: test
|
30
|
-
Requires-Dist: coverage[toml]==7.
|
31
|
-
Requires-Dist:
|
32
|
-
Requires-Dist: pytest==8.3.3; extra == "test"
|
29
|
+
Requires-Dist: coverage[toml]==7.8.0; extra == "test"
|
30
|
+
Requires-Dist: pytest==8.3.5; extra == "test"
|
33
31
|
Provides-Extra: lint
|
34
|
-
Requires-Dist: pre-commit==
|
35
|
-
Requires-Dist: pre-commit==3.8.0; python_version >= "3.9" and extra == "lint"
|
32
|
+
Requires-Dist: pre-commit==4.2.0; extra == "lint"
|
36
33
|
Provides-Extra: build
|
37
34
|
Requires-Dist: build==1.2.2.post1; extra == "build"
|
38
|
-
Requires-Dist: twine==
|
35
|
+
Requires-Dist: twine==6.1.0; extra == "build"
|
39
36
|
Provides-Extra: docs
|
40
|
-
Requires-Dist: sphinx~=7.
|
41
|
-
Requires-Dist:
|
37
|
+
Requires-Dist: sphinx~=7.4; python_version < "3.11" and extra == "docs"
|
38
|
+
Requires-Dist: sphinx~=8.2; python_version >= "3.11" and extra == "docs"
|
39
|
+
Requires-Dist: sphinx_rtd_theme==3.0.2; extra == "docs"
|
40
|
+
Dynamic: license-file
|
42
41
|
|
43
42
|
=============================
|
44
43
|
Python Lunar
|
@@ -44,7 +44,7 @@ master_doc = 'index'
|
|
44
44
|
|
45
45
|
# General information about the project.
|
46
46
|
project = u'Python Lunar'
|
47
|
-
copyright = u'2016-
|
47
|
+
copyright = u'2016-2025, Michael Reuter'
|
48
48
|
|
49
49
|
# The version info for the project you're documenting, acts as replacement for
|
50
50
|
# |version| and |release|, also used in various other places throughout the
|
@@ -14,23 +14,22 @@ authors = [
|
|
14
14
|
]
|
15
15
|
description = "Information for completing the Astronomical League's Lunar and Lunar II observing programs."
|
16
16
|
readme = "README.rst"
|
17
|
+
license = "BSD-3-Clause"
|
17
18
|
classifiers = [
|
18
19
|
"Development Status :: 4 - Beta",
|
19
20
|
"Intended Audience :: Developers",
|
20
|
-
"License :: OSI Approved :: BSD License",
|
21
21
|
"Natural Language :: English",
|
22
22
|
"Programming Language :: Python :: 3",
|
23
|
-
"Programming Language :: Python :: 3.8",
|
24
23
|
"Programming Language :: Python :: 3.9",
|
25
24
|
"Programming Language :: Python :: 3.10",
|
26
25
|
"Programming Language :: Python :: 3.11",
|
27
26
|
"Programming Language :: Python :: 3.12",
|
27
|
+
"Programming Language :: Python :: 3.13",
|
28
28
|
]
|
29
29
|
dependencies = [
|
30
|
-
"ephem==4.
|
31
|
-
"importlib-resources==6.
|
32
|
-
"typing-extensions==4.
|
33
|
-
"pytz==2024.2"
|
30
|
+
"ephem==4.2",
|
31
|
+
"importlib-resources==6.5.2;python_version<'3.10'",
|
32
|
+
"typing-extensions==4.13.2;python_version<'3.10'",
|
34
33
|
]
|
35
34
|
|
36
35
|
[project.urls]
|
@@ -40,25 +39,24 @@ Repository = "https://github.com/mareuter/pylunar"
|
|
40
39
|
[project.optional-dependencies]
|
41
40
|
dev = [
|
42
41
|
"pylunar[build,docs,lint,test]",
|
43
|
-
"scriv==1.
|
44
|
-
"tox==4.
|
42
|
+
"scriv==1.6.2",
|
43
|
+
"tox==4.25.0"
|
45
44
|
]
|
46
45
|
test = [
|
47
|
-
"coverage[toml]==7.
|
48
|
-
"
|
49
|
-
"pytest==8.3.3",
|
46
|
+
"coverage[toml]==7.8.0",
|
47
|
+
"pytest==8.3.5",
|
50
48
|
]
|
51
49
|
lint = [
|
52
|
-
"pre-commit==
|
53
|
-
"pre-commit==3.8.0;python_version>='3.9'"
|
50
|
+
"pre-commit==4.2.0"
|
54
51
|
]
|
55
52
|
build = [
|
56
53
|
"build==1.2.2.post1",
|
57
|
-
"twine==
|
54
|
+
"twine==6.1.0"
|
58
55
|
]
|
59
56
|
docs = [
|
60
|
-
"sphinx~=7.
|
61
|
-
"
|
57
|
+
"sphinx~=7.4;python_version<'3.11'",
|
58
|
+
"sphinx~=8.2;python_version>='3.11'",
|
59
|
+
"sphinx_rtd_theme==3.0.2"
|
62
60
|
]
|
63
61
|
|
64
62
|
[tool.setuptools_scm]
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"enabled": true,
|
3
|
+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
4
|
+
"extends": [
|
5
|
+
"config:best-practices",
|
6
|
+
":rebaseStalePrs"
|
7
|
+
],
|
8
|
+
"packageRules": [
|
9
|
+
{
|
10
|
+
"description": "Automerge non-major updates",
|
11
|
+
"matchUpdateTypes": [
|
12
|
+
"minor",
|
13
|
+
"patch"
|
14
|
+
],
|
15
|
+
"automerge": true
|
16
|
+
}
|
17
|
+
],
|
18
|
+
"timezone": "America/Phoenix",
|
19
|
+
"schedule": ["* * 12,24 * *"]
|
20
|
+
}
|
@@ -13,7 +13,6 @@
|
|
13
13
|
from __future__ import annotations
|
14
14
|
|
15
15
|
import sys
|
16
|
-
from typing import Dict
|
17
16
|
|
18
17
|
if sys.version_info >= (3, 10):
|
19
18
|
from importlib.resources import files
|
@@ -28,7 +27,7 @@ from .moon_info import MoonInfo
|
|
28
27
|
__all__ = ["AltitudeDict"]
|
29
28
|
|
30
29
|
|
31
|
-
class AltitudeDict(
|
30
|
+
class AltitudeDict(dict[str, float]):
|
32
31
|
"""Dictionary for the Lunar II features requiring solar altitude."""
|
33
32
|
|
34
33
|
def load(self, moon_info: MoonInfo) -> None:
|
@@ -15,8 +15,8 @@ from __future__ import annotations
|
|
15
15
|
__all__ = ["LunarFeatureContainer"]
|
16
16
|
|
17
17
|
import collections
|
18
|
+
from collections.abc import Generator
|
18
19
|
import sys
|
19
|
-
from typing import Generator
|
20
20
|
|
21
21
|
if sys.version_info >= (3, 10):
|
22
22
|
from importlib.resources import files
|
@@ -81,7 +81,7 @@ class LunarFeatureContainer:
|
|
81
81
|
self.features = collections.OrderedDict()
|
82
82
|
|
83
83
|
cur = self.conn.cursor()
|
84
|
-
sql = f'select * from Features where Lunar_Code = "{self.club_name}" or
|
84
|
+
sql = f'select * from Features where Lunar_Code = "{self.club_name}" or Lunar_Code = "Both"'
|
85
85
|
if limit is not None:
|
86
86
|
sql += f" limit {limit}"
|
87
87
|
cur.execute(sql)
|
@@ -14,13 +14,13 @@ from __future__ import annotations
|
|
14
14
|
|
15
15
|
__all__ = ["MoonInfo"]
|
16
16
|
|
17
|
-
from datetime import datetime
|
17
|
+
from datetime import datetime, timezone
|
18
18
|
from enum import Enum
|
19
19
|
import math
|
20
20
|
from operator import itemgetter
|
21
|
+
import zoneinfo
|
21
22
|
|
22
23
|
import ephem
|
23
|
-
import pytz
|
24
24
|
|
25
25
|
from .helpers import mjd_to_date_tuple, tuple_to_string
|
26
26
|
from .lunar_feature import LunarFeature
|
@@ -495,13 +495,13 @@ class MoonInfo:
|
|
495
495
|
"""
|
496
496
|
return math.degrees(self.moon.ra)
|
497
497
|
|
498
|
-
def rise_set_times(self,
|
498
|
+
def rise_set_times(self, timezone_name: str) -> MoonPhases:
|
499
499
|
"""Calculate the rise, set and transit times in the local time system.
|
500
500
|
|
501
501
|
Parameters
|
502
502
|
----------
|
503
|
-
|
504
|
-
The
|
503
|
+
timezone_name : str
|
504
|
+
The timezone_name identifier for the calculations.
|
505
505
|
|
506
506
|
Returns
|
507
507
|
-------
|
@@ -509,11 +509,11 @@ class MoonInfo:
|
|
509
509
|
Set of rise, set, and transit times in the local time system. If
|
510
510
|
event does not happen, 'Does not xxx' is tuple value.
|
511
511
|
"""
|
512
|
-
|
512
|
+
tz: zoneinfo.ZoneInfo | timezone
|
513
513
|
try:
|
514
|
-
tz =
|
515
|
-
except
|
516
|
-
tz = utc
|
514
|
+
tz = zoneinfo.ZoneInfo(timezone_name)
|
515
|
+
except zoneinfo.ZoneInfoNotFoundError:
|
516
|
+
tz = timezone.utc
|
517
517
|
|
518
518
|
func_map = {"rise": "rising", "transit": "transit", "set": "setting"}
|
519
519
|
|
@@ -524,20 +524,22 @@ class MoonInfo:
|
|
524
524
|
self.observer.pressure = 0
|
525
525
|
self.observer.horizon = "-0:34"
|
526
526
|
|
527
|
-
current_date_utc = datetime(
|
527
|
+
current_date_utc = datetime(
|
528
|
+
*mjd_to_date_tuple(self.observer.date, round_off=True), tzinfo=timezone.utc
|
529
|
+
) # type: ignore
|
528
530
|
current_date = current_date_utc.astimezone(tz)
|
529
531
|
current_day = current_date.day
|
530
532
|
times = {}
|
531
533
|
does_not = None
|
532
534
|
for time_type in ("rise", "transit", "set"):
|
533
535
|
mjd_time = getattr(self.observer, "{}_{}".format("next", func_map[time_type]))(self.moon)
|
534
|
-
utc_time = datetime(*mjd_to_date_tuple(mjd_time, round_off=True), tzinfo=utc) # type: ignore
|
536
|
+
utc_time = datetime(*mjd_to_date_tuple(mjd_time, round_off=True), tzinfo=timezone.utc) # type: ignore
|
535
537
|
local_date = utc_time.astimezone(tz)
|
536
538
|
if local_date.day == current_day:
|
537
539
|
times[time_type] = local_date
|
538
540
|
else:
|
539
541
|
mjd_time = getattr(self.observer, "{}_{}".format("previous", func_map[time_type]))(self.moon)
|
540
|
-
utc_time = datetime(*mjd_to_date_tuple(mjd_time, round_off=True), tzinfo=utc) # type: ignore
|
542
|
+
utc_time = datetime(*mjd_to_date_tuple(mjd_time, round_off=True), tzinfo=timezone.utc) # type: ignore
|
541
543
|
local_date = utc_time.astimezone(tz)
|
542
544
|
if local_date.day == current_day:
|
543
545
|
times[time_type] = local_date
|
@@ -19,13 +19,13 @@ if sys.version_info >= (3, 10):
|
|
19
19
|
else:
|
20
20
|
from typing_extensions import TypeAlias
|
21
21
|
|
22
|
-
from typing import
|
22
|
+
from typing import Union
|
23
23
|
|
24
|
-
DateTimeTuple: TypeAlias =
|
25
|
-
MoonPhases: TypeAlias =
|
26
|
-
DmsCoordinate: TypeAlias =
|
27
|
-
Range: TypeAlias =
|
28
|
-
LunarFeatureList: TypeAlias =
|
24
|
+
DateTimeTuple: TypeAlias = Union[tuple[int, ...], tuple[int, int, int, int, int, float]]
|
25
|
+
MoonPhases: TypeAlias = list[tuple[str, Union[DateTimeTuple, str]]]
|
26
|
+
DmsCoordinate: TypeAlias = tuple[int, int, int]
|
27
|
+
Range: TypeAlias = tuple[float, float]
|
28
|
+
LunarFeatureList: TypeAlias = tuple[
|
29
29
|
str, float, float, float, float, float, str, str, str, str, Union[str, None]
|
30
30
|
]
|
31
|
-
FeatureRow: TypeAlias =
|
31
|
+
FeatureRow: TypeAlias = tuple[int, str, float, float, float, float, float, str, str, str, str, str]
|
File without changes
|
@@ -1,44 +1,43 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: pylunar
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.10.0
|
4
4
|
Summary: Information for completing the Astronomical League's Lunar and Lunar II observing programs.
|
5
5
|
Author-email: Michael Reuter <mareuternh@gmail.com>
|
6
|
+
License-Expression: BSD-3-Clause
|
6
7
|
Project-URL: Documentation, http://pylunar.readthedocs.io
|
7
8
|
Project-URL: Repository, https://github.com/mareuter/pylunar
|
8
9
|
Classifier: Development Status :: 4 - Beta
|
9
10
|
Classifier: Intended Audience :: Developers
|
10
|
-
Classifier: License :: OSI Approved :: BSD License
|
11
11
|
Classifier: Natural Language :: English
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
14
13
|
Classifier: Programming Language :: Python :: 3.9
|
15
14
|
Classifier: Programming Language :: Python :: 3.10
|
16
15
|
Classifier: Programming Language :: Python :: 3.11
|
17
16
|
Classifier: Programming Language :: Python :: 3.12
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
18
18
|
Description-Content-Type: text/x-rst
|
19
19
|
License-File: LICENSE
|
20
20
|
License-File: AUTHORS.rst
|
21
|
-
Requires-Dist: ephem==4.
|
22
|
-
Requires-Dist: importlib-resources==6.
|
23
|
-
Requires-Dist: typing-extensions==4.
|
24
|
-
Requires-Dist: pytz==2024.2
|
21
|
+
Requires-Dist: ephem==4.2
|
22
|
+
Requires-Dist: importlib-resources==6.5.2; python_version < "3.10"
|
23
|
+
Requires-Dist: typing-extensions==4.13.2; python_version < "3.10"
|
25
24
|
Provides-Extra: dev
|
26
25
|
Requires-Dist: pylunar[build,docs,lint,test]; extra == "dev"
|
27
|
-
Requires-Dist: scriv==1.
|
28
|
-
Requires-Dist: tox==4.
|
26
|
+
Requires-Dist: scriv==1.6.2; extra == "dev"
|
27
|
+
Requires-Dist: tox==4.25.0; extra == "dev"
|
29
28
|
Provides-Extra: test
|
30
|
-
Requires-Dist: coverage[toml]==7.
|
31
|
-
Requires-Dist:
|
32
|
-
Requires-Dist: pytest==8.3.3; extra == "test"
|
29
|
+
Requires-Dist: coverage[toml]==7.8.0; extra == "test"
|
30
|
+
Requires-Dist: pytest==8.3.5; extra == "test"
|
33
31
|
Provides-Extra: lint
|
34
|
-
Requires-Dist: pre-commit==
|
35
|
-
Requires-Dist: pre-commit==3.8.0; python_version >= "3.9" and extra == "lint"
|
32
|
+
Requires-Dist: pre-commit==4.2.0; extra == "lint"
|
36
33
|
Provides-Extra: build
|
37
34
|
Requires-Dist: build==1.2.2.post1; extra == "build"
|
38
|
-
Requires-Dist: twine==
|
35
|
+
Requires-Dist: twine==6.1.0; extra == "build"
|
39
36
|
Provides-Extra: docs
|
40
|
-
Requires-Dist: sphinx~=7.
|
41
|
-
Requires-Dist:
|
37
|
+
Requires-Dist: sphinx~=7.4; python_version < "3.11" and extra == "docs"
|
38
|
+
Requires-Dist: sphinx~=8.2; python_version >= "3.11" and extra == "docs"
|
39
|
+
Requires-Dist: sphinx_rtd_theme==3.0.2; extra == "docs"
|
40
|
+
Dynamic: license-file
|
42
41
|
|
43
42
|
=============================
|
44
43
|
Python Lunar
|
@@ -26,6 +26,7 @@ src/pylunar/lunar_feature.py
|
|
26
26
|
src/pylunar/lunar_feature_container.py
|
27
27
|
src/pylunar/moon_info.py
|
28
28
|
src/pylunar/pkg_types.py
|
29
|
+
src/pylunar/py.typed
|
29
30
|
src/pylunar.egg-info/PKG-INFO
|
30
31
|
src/pylunar.egg-info/SOURCES.txt
|
31
32
|
src/pylunar.egg-info/dependency_links.txt
|
@@ -0,0 +1,30 @@
|
|
1
|
+
ephem==4.2
|
2
|
+
|
3
|
+
[:python_version < "3.10"]
|
4
|
+
importlib-resources==6.5.2
|
5
|
+
typing-extensions==4.13.2
|
6
|
+
|
7
|
+
[build]
|
8
|
+
build==1.2.2.post1
|
9
|
+
twine==6.1.0
|
10
|
+
|
11
|
+
[dev]
|
12
|
+
pylunar[build,docs,lint,test]
|
13
|
+
scriv==1.6.2
|
14
|
+
tox==4.25.0
|
15
|
+
|
16
|
+
[docs]
|
17
|
+
sphinx_rtd_theme==3.0.2
|
18
|
+
|
19
|
+
[docs:python_version < "3.11"]
|
20
|
+
sphinx~=7.4
|
21
|
+
|
22
|
+
[docs:python_version >= "3.11"]
|
23
|
+
sphinx~=8.2
|
24
|
+
|
25
|
+
[lint]
|
26
|
+
pre-commit==4.2.0
|
27
|
+
|
28
|
+
[test]
|
29
|
+
coverage[toml]==7.8.0
|
30
|
+
pytest==8.3.5
|
@@ -58,7 +58,7 @@ class TestMoonInfo:
|
|
58
58
|
assert self.mi.dec() == 10.129795616523591
|
59
59
|
assert self.mi.earth_distance() == 386484.25078267464
|
60
60
|
assert self.mi.angular_size() == 0.5159071519639757
|
61
|
-
assert self.mi.magnitude() == -12.
|
61
|
+
assert self.mi.magnitude() == -12.68
|
62
62
|
assert self.mi.subsolar_lat() == -0.3366501792590513
|
63
63
|
assert self.mi.elongation() == 178.56298828125
|
64
64
|
|
pylunar-0.8.0/renovate.json
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"enabled": true,
|
3
|
-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
4
|
-
"extends": [
|
5
|
-
"config:best-practices",
|
6
|
-
":rebaseStalePrs"
|
7
|
-
],
|
8
|
-
"timezone": "America/Phoenix",
|
9
|
-
"schedule": [
|
10
|
-
"on the 26th day of the month before 8am"
|
11
|
-
]
|
12
|
-
}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
ephem==4.1.6
|
2
|
-
pytz==2024.2
|
3
|
-
|
4
|
-
[:python_version < "3.10"]
|
5
|
-
importlib-resources==6.4.5
|
6
|
-
typing-extensions==4.12.2
|
7
|
-
|
8
|
-
[build]
|
9
|
-
build==1.2.2.post1
|
10
|
-
twine==5.1.1
|
11
|
-
|
12
|
-
[dev]
|
13
|
-
pylunar[build,docs,lint,test]
|
14
|
-
scriv==1.5.1
|
15
|
-
tox==4.23.2
|
16
|
-
|
17
|
-
[docs]
|
18
|
-
sphinx~=7.1
|
19
|
-
sphinx_rtd_theme==2.0.0
|
20
|
-
|
21
|
-
[lint]
|
22
|
-
|
23
|
-
[lint:python_version < "3.9"]
|
24
|
-
pre-commit==3.5.0
|
25
|
-
|
26
|
-
[lint:python_version >= "3.9"]
|
27
|
-
pre-commit==3.8.0
|
28
|
-
|
29
|
-
[test]
|
30
|
-
pytest==8.3.3
|
31
|
-
|
32
|
-
[test:python_version < "3.9"]
|
33
|
-
coverage[toml]==7.6.1
|
34
|
-
|
35
|
-
[test:python_version >= "3.9"]
|
36
|
-
coverage[toml]==7.6.4
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|