gpstime 0.9.0__tar.gz → 0.9.2__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.
@@ -2,4 +2,4 @@ include README.md
2
2
  include COPYING COPYING-GPL-3
3
3
  global-exclude *.gitignore
4
4
  exclude .gitlab-ci.yml
5
- exclude release
5
+ exclude bin/*
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gpstime
3
- Version: 0.9.0
3
+ Version: 0.9.2
4
4
  Summary: GPS-aware datetime module
5
5
  Author-email: Jameson Graef Rollins <jameson.rollins@ligo.org>
6
6
  License-Expression: GPL-3.0-or-later
@@ -238,7 +238,7 @@ class GPSTimeParseAction(argparse.Action):
238
238
  # single string
239
239
  if isinstance(values, list):
240
240
  values = ' '.join(values)
241
- if namespace.nano:
241
+ if hasattr(namespace, "nano") and namespace.nano:
242
242
  try:
243
243
  gps = gpstime.fromgpsns(values)
244
244
  except GPSTimeException as e:
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.9.0'
32
- __version_tuple__ = version_tuple = (0, 9, 0)
31
+ __version__ = version = '0.9.2'
32
+ __version_tuple__ = version_tuple = (0, 9, 2)
33
33
 
34
- __commit_id__ = commit_id = 'gbfcac2c49'
34
+ __commit_id__ = commit_id = 'gfa330f139'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gpstime
3
- Version: 0.9.0
3
+ Version: 0.9.2
4
4
  Summary: GPS-aware datetime module
5
5
  Author-email: Jameson Graef Rollins <jameson.rollins@ligo.org>
6
6
  License-Expression: GPL-3.0-or-later
@@ -3,7 +3,6 @@ COPYING-GPL-3
3
3
  MANIFEST.in
4
4
  README.md
5
5
  pyproject.toml
6
- bin/gpstime
7
6
  gpstime/__init__.py
8
7
  gpstime/__main__.py
9
8
  gpstime/__version__.py
@@ -12,5 +11,6 @@ gpstime/test.py
12
11
  gpstime.egg-info/PKG-INFO
13
12
  gpstime.egg-info/SOURCES.txt
14
13
  gpstime.egg-info/dependency_links.txt
14
+ gpstime.egg-info/entry_points.txt
15
15
  gpstime.egg-info/requires.txt
16
16
  gpstime.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ gpstime = gpstime.__main__:main
@@ -34,9 +34,11 @@ dependencies = [
34
34
  [project.urls]
35
35
  Homepage = "https://git.ligo.org/cds/software/gpstime"
36
36
 
37
+ [project.scripts]
38
+ gpstime = "gpstime.__main__:main"
39
+
37
40
  [tool.setuptools]
38
41
  packages = ["gpstime"]
39
- script-files = ["bin/gpstime"]
40
42
 
41
43
  [tool.setuptools_scm]
42
44
  write_to = "gpstime/__version__.py"
gpstime-0.9.0/bin/gpstime DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env python3
2
- # DON'T DELETE ME! setuptool entry_points adds way too much overhead
3
- # causing execution times to be much longer than they should be
4
- from gpstime.__main__ import main
5
- main()
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes