maps4fs 2.8.7__tar.gz → 2.8.9__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.

Potentially problematic release.


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

Files changed (35) hide show
  1. {maps4fs-2.8.7 → maps4fs-2.8.9}/PKG-INFO +1 -1
  2. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/component/config.py +2 -0
  3. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/component/satellite.py +1 -0
  4. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/config.py +2 -0
  5. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/statistics.py +10 -0
  6. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs.egg-info/PKG-INFO +1 -1
  7. {maps4fs-2.8.7 → maps4fs-2.8.9}/pyproject.toml +1 -1
  8. {maps4fs-2.8.7 → maps4fs-2.8.9}/LICENSE.md +0 -0
  9. {maps4fs-2.8.7 → maps4fs-2.8.9}/README.md +0 -0
  10. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/__init__.py +0 -0
  11. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/__init__.py +0 -0
  12. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/component/__init__.py +0 -0
  13. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/component/background.py +0 -0
  14. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/component/base/__init__.py +0 -0
  15. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/component/base/component.py +0 -0
  16. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/component/base/component_image.py +0 -0
  17. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/component/base/component_mesh.py +0 -0
  18. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/component/base/component_xml.py +0 -0
  19. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/component/dem.py +0 -0
  20. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/component/grle.py +0 -0
  21. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/component/i3d.py +0 -0
  22. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/component/layer.py +0 -0
  23. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/component/texture.py +0 -0
  24. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/game.py +0 -0
  25. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/map.py +0 -0
  26. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/qgis.py +0 -0
  27. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/settings.py +0 -0
  28. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/generator/utils.py +0 -0
  29. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs/logger.py +0 -0
  30. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs.egg-info/SOURCES.txt +0 -0
  31. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs.egg-info/dependency_links.txt +0 -0
  32. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs.egg-info/requires.txt +0 -0
  33. {maps4fs-2.8.7 → maps4fs-2.8.9}/maps4fs.egg-info/top_level.txt +0 -0
  34. {maps4fs-2.8.7 → maps4fs-2.8.9}/setup.cfg +0 -0
  35. {maps4fs-2.8.7 → maps4fs-2.8.9}/tests/test_generator.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maps4fs
3
- Version: 2.8.7
3
+ Version: 2.8.9
4
4
  Summary: Generate map templates for Farming Simulator from real places.
5
5
  Author-email: iwatkot <iwatkot@gmail.com>
6
6
  License: GNU Affero General Public License v3.0
@@ -368,6 +368,8 @@ class Config(XMLComponent, ImageComponent):
368
368
 
369
369
  self.logger.info(
370
370
  "Updating license plates for country: %s, EU format: %s",
371
+ country_name,
372
+ eu_format,
371
373
  )
372
374
 
373
375
  license_plates_prefix = self.map.i3d_settings.license_plate_prefix
@@ -87,6 +87,7 @@ class Satellite(ImageComponent):
87
87
  from_center=True,
88
88
  logger=self.logger,
89
89
  tiles_dir=mfscfg.SAT_CACHE_DIR,
90
+ show_progress=not mfscfg.TQDM_DISABLE,
90
91
  )
91
92
 
92
93
  except Exception as e:
@@ -9,6 +9,8 @@ from osmnx import settings as ox_settings
9
9
 
10
10
  from maps4fs.logger import Logger
11
11
 
12
+ TQDM_DISABLE = os.getenv("TQDM_DISABLE", "0") == "1"
13
+
12
14
  logger = Logger()
13
15
 
14
16
  MFS_TEMPLATES_DIR = os.path.join(os.getcwd(), "templates")
@@ -70,3 +70,13 @@ def send_advanced_settings(data: dict[str, Any]) -> None:
70
70
  """
71
71
  endpoint = f"{STATS_HOST}/receive_advanced_settings"
72
72
  post(endpoint, data)
73
+
74
+
75
+ def send_survey(data: dict[str, Any]) -> None:
76
+ """Send survey data to the statistics server.
77
+
78
+ Arguments:
79
+ data (dict[str, Any]): The survey data to send.
80
+ """
81
+ endpoint = f"{STATS_HOST}/receive_survey"
82
+ post(endpoint, data)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maps4fs
3
- Version: 2.8.7
3
+ Version: 2.8.9
4
4
  Summary: Generate map templates for Farming Simulator from real places.
5
5
  Author-email: iwatkot <iwatkot@gmail.com>
6
6
  License: GNU Affero General Public License v3.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "maps4fs"
7
- version = "2.8.7"
7
+ version = "2.8.9"
8
8
  description = "Generate map templates for Farming Simulator from real places."
9
9
  authors = [{name = "iwatkot", email = "iwatkot@gmail.com"}]
10
10
  license = {text = "GNU Affero General Public License v3.0"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes