gpstime 0.8.2__tar.gz → 0.8.3__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.
@@ -1,26 +1,24 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: gpstime
3
- Version: 0.8.2
3
+ Version: 0.8.3
4
4
  Summary: GPS-aware datetime module
5
- Home-page: https://git.ligo.org/cds/gpstime
6
- Author: Jameson Graef Rollins
7
- Author-email: jameson.rollins@ligo.org
8
- License: GPL-3.0-or-later
5
+ Author-email: Jameson Graef Rollins <jameson.rollins@ligo.org>
6
+ License-Expression: GPL-3.0-or-later
7
+ Project-URL: Homepage, https://git.ligo.org/cds/software/gpstime
9
8
  Classifier: Development Status :: 5 - Production/Stable
10
- Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
11
9
  Classifier: Natural Language :: English
12
10
  Classifier: Operating System :: OS Independent
13
11
  Classifier: Programming Language :: Python
14
- Classifier: Programming Language :: Python :: 2.7
15
- Classifier: Programming Language :: Python :: 3.5
16
- Classifier: Programming Language :: Python :: 3.6
17
- Classifier: Programming Language :: Python :: 3.7
12
+ Classifier: Programming Language :: Python :: 3
13
+ Requires-Python: >=3.6
18
14
  Description-Content-Type: text/markdown
19
15
  License-File: COPYING
20
16
  License-File: COPYING-GPL-3
21
- Requires-Dist: appdirs
17
+ Requires-Dist: platformdirs; python_version >= "3.10"
18
+ Requires-Dist: appdirs; python_version < "3.10"
22
19
  Requires-Dist: python-dateutil
23
20
  Requires-Dist: requests
21
+ Dynamic: license-file
24
22
 
25
23
  GPS-aware datetime module
26
24
  =========================
@@ -1,8 +1,13 @@
1
- # file generated by setuptools_scm
1
+ # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
3
6
  TYPE_CHECKING = False
4
7
  if TYPE_CHECKING:
5
- from typing import Tuple, Union
8
+ from typing import Tuple
9
+ from typing import Union
10
+
6
11
  VERSION_TUPLE = Tuple[Union[int, str], ...]
7
12
  else:
8
13
  VERSION_TUPLE = object
@@ -12,5 +17,5 @@ __version__: str
12
17
  __version_tuple__: VERSION_TUPLE
13
18
  version_tuple: VERSION_TUPLE
14
19
 
15
- __version__ = version = '0.8.2'
16
- __version_tuple__ = version_tuple = (0, 8, 2)
20
+ __version__ = version = '0.8.3'
21
+ __version_tuple__ = version_tuple = (0, 8, 3)
@@ -6,10 +6,11 @@ import warnings
6
6
  from tempfile import NamedTemporaryFile
7
7
  from functools import lru_cache
8
8
 
9
- import appdirs
10
-
11
-
12
- CACHE_DIR = appdirs.user_cache_dir('gpstime')
9
+ try:
10
+ from platformdirs import user_cache_dir
11
+ except ImportError:
12
+ from appdirs import user_cache_dir
13
+ CACHE_DIR = user_cache_dir('gpstime')
13
14
 
14
15
  LEAP_FILES = [
15
16
  '/usr/share/zoneinfo/leap-seconds.list',
@@ -1,26 +1,24 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: gpstime
3
- Version: 0.8.2
3
+ Version: 0.8.3
4
4
  Summary: GPS-aware datetime module
5
- Home-page: https://git.ligo.org/cds/gpstime
6
- Author: Jameson Graef Rollins
7
- Author-email: jameson.rollins@ligo.org
8
- License: GPL-3.0-or-later
5
+ Author-email: Jameson Graef Rollins <jameson.rollins@ligo.org>
6
+ License-Expression: GPL-3.0-or-later
7
+ Project-URL: Homepage, https://git.ligo.org/cds/software/gpstime
9
8
  Classifier: Development Status :: 5 - Production/Stable
10
- Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
11
9
  Classifier: Natural Language :: English
12
10
  Classifier: Operating System :: OS Independent
13
11
  Classifier: Programming Language :: Python
14
- Classifier: Programming Language :: Python :: 2.7
15
- Classifier: Programming Language :: Python :: 3.5
16
- Classifier: Programming Language :: Python :: 3.6
17
- Classifier: Programming Language :: Python :: 3.7
12
+ Classifier: Programming Language :: Python :: 3
13
+ Requires-Python: >=3.6
18
14
  Description-Content-Type: text/markdown
19
15
  License-File: COPYING
20
16
  License-File: COPYING-GPL-3
21
- Requires-Dist: appdirs
17
+ Requires-Dist: platformdirs; python_version >= "3.10"
18
+ Requires-Dist: appdirs; python_version < "3.10"
22
19
  Requires-Dist: python-dateutil
23
20
  Requires-Dist: requests
21
+ Dynamic: license-file
24
22
 
25
23
  GPS-aware datetime module
26
24
  =========================
@@ -3,7 +3,6 @@ COPYING-GPL-3
3
3
  MANIFEST.in
4
4
  README.md
5
5
  pyproject.toml
6
- setup.py
7
6
  bin/gpstime
8
7
  gpstime/__init__.py
9
8
  gpstime/__main__.py
@@ -0,0 +1,8 @@
1
+ python-dateutil
2
+ requests
3
+
4
+ [:python_version < "3.10"]
5
+ appdirs
6
+
7
+ [:python_version >= "3.10"]
8
+ platformdirs
@@ -0,0 +1,58 @@
1
+ [build-system]
2
+ requires = [
3
+ "setuptools>=42",
4
+ "setuptools_scm[toml]>=3.4",
5
+ "wheel",
6
+ ]
7
+ build-backend = "setuptools.build_meta"
8
+
9
+ [project]
10
+ name = "gpstime"
11
+ dynamic = ["version"]
12
+ description = "GPS-aware datetime module"
13
+ readme = "README.md"
14
+ license = "GPL-3.0-or-later"
15
+ license-files = ["COPYING", "COPYING-GPL-3"]
16
+ authors = [
17
+ { name = "Jameson Graef Rollins", email = "jameson.rollins@ligo.org" },
18
+ ]
19
+ classifiers = [
20
+ "Development Status :: 5 - Production/Stable",
21
+ "Natural Language :: English",
22
+ "Operating System :: OS Independent",
23
+ "Programming Language :: Python",
24
+ "Programming Language :: Python :: 3",
25
+ ]
26
+ requires-python = ">=3.6"
27
+ dependencies = [
28
+ 'platformdirs; python_version >= "3.10"',
29
+ 'appdirs; python_version < "3.10"',
30
+ "python-dateutil",
31
+ "requests",
32
+ ]
33
+
34
+ [project.urls]
35
+ Homepage = "https://git.ligo.org/cds/software/gpstime"
36
+
37
+ [tool.setuptools]
38
+ packages = ["gpstime"]
39
+ script-files = ["bin/gpstime"]
40
+
41
+ [tool.setuptools_scm]
42
+ write_to = "gpstime/__version__.py"
43
+
44
+ [tool.coverage.run]
45
+ source = ["gpstime"]
46
+ omit = [
47
+ "__version__.py",
48
+ "test.py",
49
+ ]
50
+
51
+ [tool.coverage.report]
52
+ # print report with one decimal point
53
+ precision = 1
54
+ show_missing = true
55
+ omit = [
56
+ "__version__.py",
57
+ "test.py",
58
+ ]
@@ -1,3 +0,0 @@
1
- appdirs
2
- python-dateutil
3
- requests
@@ -1,10 +0,0 @@
1
- [build-system]
2
- requires = [
3
- "setuptools>=42",
4
- "setuptools_scm[toml]>=3.4",
5
- "wheel",
6
- ]
7
- build-backend = "setuptools.build_meta"
8
-
9
- [tool.setuptools_scm]
10
- write_to = "gpstime/__version__.py"
gpstime-0.8.2/setup.py DELETED
@@ -1,61 +0,0 @@
1
- from setuptools import setup
2
-
3
-
4
- with open('README.md', 'rb') as f:
5
- longdesc = f.read().decode().strip()
6
-
7
-
8
- setup(
9
- setup_requires=[
10
- 'setuptools_scm',
11
- ],
12
-
13
- use_scm_version={
14
- 'write_to': 'gpstime/__version__.py',
15
- },
16
-
17
- name='gpstime',
18
- description='GPS-aware datetime module',
19
- long_description=longdesc,
20
- long_description_content_type='text/markdown',
21
- author='Jameson Graef Rollins',
22
- author_email='jameson.rollins@ligo.org',
23
- url='https://git.ligo.org/cds/gpstime',
24
- license='GPL-3.0-or-later',
25
- classifiers=[
26
- 'Development Status :: 5 - Production/Stable',
27
- ('License :: OSI Approved :: '
28
- 'GNU General Public License v3 or later (GPLv3+)'),
29
- 'Natural Language :: English',
30
- 'Operating System :: OS Independent',
31
- 'Programming Language :: Python',
32
- 'Programming Language :: Python :: 2.7',
33
- 'Programming Language :: Python :: 3.5',
34
- 'Programming Language :: Python :: 3.6',
35
- 'Programming Language :: Python :: 3.7',
36
- ],
37
-
38
- packages=[
39
- 'gpstime',
40
- ],
41
-
42
- tests_require=[
43
- 'python-dateutil',
44
- ],
45
- test_suite='gpstime.test',
46
-
47
- install_requires=[
48
- 'appdirs',
49
- 'python-dateutil',
50
- 'requests',
51
- ],
52
-
53
- # entry_points={
54
- # 'console_scripts': [
55
- # 'gpstime = gpstime.__main__:main',
56
- # ],
57
- # },
58
- scripts=[
59
- 'bin/gpstime',
60
- ],
61
- )
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