python-fitparse 2.12.0__tar.gz → 2.13.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.
Files changed (19) hide show
  1. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/PKG-INFO +5 -4
  2. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/fitparse/__init__.py +6 -1
  3. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/pyproject.toml +10 -4
  4. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/scripts/generate_profile.py +4 -2
  5. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/.gitignore +0 -0
  6. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/LICENSE +0 -0
  7. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/README.md +0 -0
  8. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/fitparse/base.py +0 -0
  9. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/fitparse/fitdump.py +0 -0
  10. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/fitparse/processors.py +0 -0
  11. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/fitparse/profile.py +0 -0
  12. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/fitparse/records.py +0 -0
  13. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/fitparse/utils.py +0 -0
  14. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/patches/message_types/location.py +0 -0
  15. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/patches/message_types/record.py +0 -0
  16. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/patches/message_types/skin_temp_sample.py +0 -0
  17. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/patches/message_types/stress_level.py +0 -0
  18. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/scripts/profile_diff.py +0 -0
  19. {python_fitparse-2.12.0 → python_fitparse-2.13.0}/scripts/unit_tool.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: python-fitparse
3
- Version: 2.12.0
3
+ Version: 2.13.0
4
4
  Summary: Python library to parse ANT/Garmin .FIT files
5
5
  Project-URL: Homepage, https://github.com/nbr23/python-fitparse
6
6
  Project-URL: Repository, https://github.com/nbr23/python-fitparse
@@ -34,13 +34,14 @@ Classifier: Development Status :: 5 - Production/Stable
34
34
  Classifier: Intended Audience :: Developers
35
35
  Classifier: License :: OSI Approved :: MIT License
36
36
  Classifier: Programming Language :: Python :: 3
37
- Classifier: Programming Language :: Python :: 3.8
38
- Classifier: Programming Language :: Python :: 3.9
39
37
  Classifier: Programming Language :: Python :: 3.10
40
38
  Classifier: Programming Language :: Python :: 3.11
41
39
  Classifier: Programming Language :: Python :: 3.12
40
+ Classifier: Programming Language :: Python :: 3.13
41
+ Classifier: Programming Language :: Python :: 3.14
42
+ Classifier: Programming Language :: Python :: 3.15
42
43
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
43
- Requires-Python: >=3.8
44
+ Requires-Python: >=3.10
44
45
  Provides-Extra: generate
45
46
  Requires-Dist: openpyxl==3.1.5; extra == 'generate'
46
47
  Requires-Dist: requests; extra == 'generate'
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env python
2
2
 
3
+ import importlib.metadata
4
+
3
5
  # Make classes available
4
6
  from fitparse.base import FitFile, FitFileDecoder, UncachedFitFile, \
5
7
  FitParseError, CacheMixin, DataProcessorMixin
@@ -7,4 +9,7 @@ from fitparse.records import DataMessage
7
9
  from fitparse.processors import FitFileDataProcessor, StandardUnitsDataProcessor
8
10
 
9
11
 
10
- __version__ = '1.2.0'
12
+ try:
13
+ __version__ = importlib.metadata.version("python-fitparse")
14
+ except importlib.metadata.PackageNotFoundError:
15
+ __version__ = "unknown"
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "python-fitparse"
7
- version = "2.12.0"
7
+ version = "2.13.0"
8
8
  description = "Python library to parse ANT/Garmin .FIT files"
9
9
  authors = [
10
10
  {name = "David Cooper", email = "dave@kupesoft.com"},
@@ -12,17 +12,18 @@ authors = [
12
12
  ]
13
13
  license = {file = "LICENSE"}
14
14
  readme = "README.md"
15
- requires-python = ">=3.8"
15
+ requires-python = ">=3.10"
16
16
  classifiers = [
17
17
  "Development Status :: 5 - Production/Stable",
18
18
  "Intended Audience :: Developers",
19
19
  "License :: OSI Approved :: MIT License",
20
20
  "Programming Language :: Python :: 3",
21
- "Programming Language :: Python :: 3.8",
22
- "Programming Language :: Python :: 3.9",
23
21
  "Programming Language :: Python :: 3.10",
24
22
  "Programming Language :: Python :: 3.11",
25
23
  "Programming Language :: Python :: 3.12",
24
+ "Programming Language :: Python :: 3.13",
25
+ "Programming Language :: Python :: 3.14",
26
+ "Programming Language :: Python :: 3.15",
26
27
  "Topic :: Software Development :: Libraries :: Python Modules",
27
28
  ]
28
29
  keywords = ["ant", "garmin", "fit", "files", "parse"]
@@ -68,3 +69,8 @@ omit = [
68
69
  "*/tmp/*",
69
70
  "/tmp/*",
70
71
  ]
72
+
73
+ [tool.pytest.ini_options]
74
+ testpaths = ["tests"]
75
+ python_files = ["test*.py"]
76
+ python_functions = ["test_*"]
@@ -24,10 +24,8 @@ import re
24
24
  import sys
25
25
  import zipfile
26
26
  from itertools import islice
27
- import requests
28
27
  import tempfile
29
28
 
30
- import openpyxl # Dev requirement for parsing Excel spreadsheet
31
29
  import importlib.util
32
30
  import glob
33
31
 
@@ -375,6 +373,8 @@ def parse_csv_fields(data, num_expected):
375
373
 
376
374
 
377
375
  def parse_spreadsheet(xls_file, *sheet_names):
376
+ import openpyxl
377
+
378
378
  workbook = openpyxl.load_workbook(xls_file)
379
379
 
380
380
  for sheet_name in sheet_names:
@@ -742,6 +742,8 @@ def apply_patches(type_list, message_list):
742
742
 
743
743
 
744
744
  def download_latest_sdk(path):
745
+ import requests
746
+
745
747
  repo_url = 'https://api.github.com/repos/garmin/fit-sdk-tools/releases/latest'
746
748
  print("Fetching latest SDK release from GitHub...")
747
749