keplemon 0.2.0__cp39-cp39-macosx_11_0_arm64.whl → 0.2.1__cp39-cp39-macosx_11_0_arm64.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.

Potentially problematic release.


This version of keplemon might be problematic. Click here for more details.

keplemon/__init__.py CHANGED
@@ -6,19 +6,16 @@ from keplemon._keplemon import ( # type: ignore
6
6
  get_license_file_path,
7
7
  )
8
8
  from pathlib import Path
9
- from shutil import copyfile
10
9
 
11
- current_dir = Path(__file__).parent
12
10
 
13
- # Copy the license file to the current working directory if it doesn't exist
14
- LICENSE_PATH = current_dir / "SGP4_Open_License.txt"
15
- local_path = Path.cwd() / "SGP4_Open_License.txt"
16
- if not local_path.exists():
17
- copyfile(LICENSE_PATH, local_path)
18
- set_license_file_path(LICENSE_PATH.as_posix())
11
+ PACKAGE_DIRECTORY = Path(__file__).parent
12
+ ASSETS_DIRECTORY = PACKAGE_DIRECTORY / "assets"
13
+
14
+ # Set the license file directory to the package directory
15
+ set_license_file_path(ASSETS_DIRECTORY.as_posix())
19
16
 
20
17
  # Load the time constants from the assets directory
21
- TIME_CONSTANTS_PATH = current_dir / "assets" / "time_constants.dat"
18
+ TIME_CONSTANTS_PATH = ASSETS_DIRECTORY / "time_constants.dat"
22
19
  load_time_constants(TIME_CONSTANTS_PATH.as_posix())
23
20
 
24
21
  __all__ = [
@@ -26,6 +23,7 @@ __all__ = [
26
23
  "set_thread_count",
27
24
  "TIME_CONSTANTS_PATH",
28
25
  "set_license_file_path",
29
- "LICENSE_PATH",
26
+ "PACKAGE_DIRECTORY",
27
+ "ASSETS_DIRECTORY",
30
28
  "get_license_file_path",
31
29
  ]
keplemon/__init__.pyi CHANGED
@@ -29,9 +29,13 @@ Path to the default time constants file required by the SAAL binaries
29
29
  This path should never be modified and is only exposed to allow inspection of current data.
30
30
  """
31
31
 
32
- #: Path to the license file
33
- LICENSE_PATH: Path
34
- """Path to the license file required by the SAAL binaries"""
32
+ #: Path to the parent directory of the package
33
+ PACKAGE_DIRECTORY: Path
34
+ """Path to the parent directory of the package"""
35
+
36
+ #: Path to the assets directory containing supporting data files for the package
37
+ ASSETS_DIRECTORY: Path
38
+ """Path to the assets directory containing supporting data files for the package"""
35
39
 
36
40
  def set_license_file_path(path: str) -> None:
37
41
  """
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: keplemon
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Requires-Dist: requests
5
5
  Requires-Dist: click
6
6
  Requires-Dist: maturin>=1.0,<2.0 ; extra == 'dev'
@@ -1,11 +1,10 @@
1
- keplemon-0.2.0.dist-info/METADATA,sha256=cmEwjecg6patmw1F2UazhYceZOTJqHkGRWve5_qL05o,3792
2
- keplemon-0.2.0.dist-info/WHEEL,sha256=5np0d7x-7kt6D57DGSlveM66NC2wkco59Nr54y1zQcg,102
3
- keplemon-0.2.0.dist-info/entry_points.txt,sha256=eYbCkvQvWfRDQ0LzaCELov1xeLAxQEHlfdgNq-LXyb0,49
4
- keplemon/SGP4_Open_License.txt,sha256=0WofOXQb5YJqnYhXWXnBdCajiTJQAT60UAkSeHsxyr8,8509
5
- keplemon/__init__.py,sha256=kpXzIPykuhSr8WIAkh2QmV1O2e9HRWZfFtKwOXBB52I,947
6
- keplemon/__init__.pyi,sha256=GfQncAsWnriz9fQVW2xP7jQ5xFvHbGrknUw-2hRoIVg,1093
1
+ keplemon-0.2.1.dist-info/METADATA,sha256=bncXm0xVjRXq6_20nfZwVx5uc7ooEEukjfPa_Faj6Qw,3792
2
+ keplemon-0.2.1.dist-info/WHEEL,sha256=5np0d7x-7kt6D57DGSlveM66NC2wkco59Nr54y1zQcg,102
3
+ keplemon-0.2.1.dist-info/entry_points.txt,sha256=eYbCkvQvWfRDQ0LzaCELov1xeLAxQEHlfdgNq-LXyb0,49
4
+ keplemon/__init__.py,sha256=WbSkCGu2zpYEemTr-QtRXWnH7amDTQ7OSVD59BxI9ig,812
5
+ keplemon/__init__.pyi,sha256=uE60ln_KJgcfvKburVmbcKT0h_wLPgjBWuyNLgI8ETI,1295
7
6
  keplemon/__main__.py,sha256=-3GVkDOA0lV0MIqU9gPb4zbVimg2lA8HMkvdPDw1O28,669
8
- keplemon/_keplemon.cpython-39-darwin.so,sha256=hJD7RVCs1-64VscuX2C9wOCgNXQXevwcgnxnTDJ7qI8,1689232
7
+ keplemon/_keplemon.cpython-39-darwin.so,sha256=3RAamqMgzIx61qUWhfEoJg1wcCekdmD4n_TrJ-Lfzps,1705664
9
8
  keplemon/assets/EGM-2008.GEO,sha256=K2nG8HGLATIHZYMfw3GSClYOTCuZ7rq4RdCeUNgCw5A,148770
10
9
  keplemon/assets/EGM-96.GEO,sha256=VBkILuvEMwAPuWmUHy2PeyEfULOwJ4PEJLNf5hr84mU,148770
11
10
  keplemon/assets/GEM_5-22.GEO,sha256=stemYLn1ChXa-VdLGHYfa15AXZa_xxGZQ65p4c3gffI,6852
@@ -14,6 +13,7 @@ keplemon/assets/JGM2-70.GEO,sha256=7NCW-clrb7PddiBOf_GWrJ0Qf_ZjM823jU9mDIOVLG0,1
14
13
  keplemon/assets/JPLcon_1950_2050.405,sha256=IRfVZmBTDAKGdMGTyZr06KSBY0N5PxRgEcljPrZB_iU,31222725
15
14
  keplemon/assets/NWL8C-12.GEO,sha256=ZwDKiFC5AxrSIkDPBUnQMmZeSaA5272V-z8yn6bKjOs,4788
16
15
  keplemon/assets/SEM68R-8.GEO,sha256=vJTCLrviQ9HonN9BojX8PbH0vPkL4qgpBxUc9X43sjI,2482
16
+ keplemon/assets/SGP4_Open_License.txt,sha256=0WofOXQb5YJqnYhXWXnBdCajiTJQAT60UAkSeHsxyr8,8509
17
17
  keplemon/assets/WGS84-70.GEO,sha256=ARjEC_5s2SVd0Kh9udbTy1ztBwTeuBYPOhUVJgIqit8,148510
18
18
  keplemon/assets/time_constants.dat,sha256=qDpJ2UrQvIDfxsBc4P2AdLS-b2lyR7RCzjqmeG4Ypl8,1226736
19
19
  keplemon/bodies.py,sha256=XnaY6XTuj8CHM3XOwOSY3E8nSo0RWwCcAY0FGxAVWa8,208
@@ -52,4 +52,4 @@ keplemon/saal/__init__.py,sha256=aoTB13q7IvXuQ80jgGCnwXA29yjpOqLiTdrtyjyRqLE,123
52
52
  keplemon/saal/obs_interface.py,sha256=EtsaPKixjMWfCUpMd79SvhCs3f9sRcBaal6-ickj3Vs,248
53
53
  keplemon/time.py,sha256=rFefwGP2deAeyzMQcaK5D7dIpiQDklr9eBKT6yVK7Ac,2872
54
54
  keplemon/time.pyi,sha256=f6MxNpscs3jje0zo5yilyMBj8b0U7TVFnU6bt6NAJl0,6255
55
- keplemon-0.2.0.dist-info/RECORD,,
55
+ keplemon-0.2.1.dist-info/RECORD,,