From 2b297aa11db3efc3dc334ea9064b0bf7a664f8f3 Mon Sep 17 00:00:00 2001 From: FABallemand Date: Tue, 5 Dec 2023 12:06:47 +0100 Subject: [PATCH] #8 #11 Work in progress: -Add XML schema files [ci skip] --- docs/tutorials/parsing.rst | 2 +- ezgpx/gpx_parser/gpx_parser.py | 4 ---- ezgpx/xml_parser/xml_parser.py | 1 - notes.md | 2 ++ setup.py | 1 + 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/tutorials/parsing.rst b/docs/tutorials/parsing.rst index 7fd60c7..4b2581e 100644 --- a/docs/tutorials/parsing.rst +++ b/docs/tutorials/parsing.rst @@ -53,7 +53,7 @@ In order to parse a KMZ file, simply create a new :py:class:`~ezgpx.gpx.GPX` obj from ezGPX import GPX - # Parse KML file + # Parse KMZ file gpx = GPX("file.kmz") diff --git a/ezgpx/gpx_parser/gpx_parser.py b/ezgpx/gpx_parser/gpx_parser.py index 7f3337e..99ea092 100644 --- a/ezgpx/gpx_parser/gpx_parser.py +++ b/ezgpx/gpx_parser/gpx_parser.py @@ -27,10 +27,6 @@ def __init__(self, file_path: Optional[str] = None, check_schemas: bool = True, {"topo": "http://www.topografix.com/GPX/1/1"}, check_schemas, extensions_schemas) - - print(f"GPX FILE PATH = {self.file_path}") - print(f"GPX NAME SPACE = {self.name_space}") - print(f"GPX TIME FORMAT = {self.time_format}") if self.file_path is not None and os.path.exists(self.file_path): self.parse() diff --git a/ezgpx/xml_parser/xml_parser.py b/ezgpx/xml_parser/xml_parser.py index 999de80..4a39036 100644 --- a/ezgpx/xml_parser/xml_parser.py +++ b/ezgpx/xml_parser/xml_parser.py @@ -27,7 +27,6 @@ def __init__(self, file_path: Optional[str] = None, name_space: Optional[dict] = self.name_space = {} else: self.name_space = name_space - print(f"XML NAME SPACE = {self.name_space}") self.check_schemas: bool = check_schemas self.extensions_schemas: bool = extensions_schemas diff --git a/notes.md b/notes.md index e930be7..b219d11 100644 --- a/notes.md +++ b/notes.md @@ -48,6 +48,8 @@ ## 🧭 Other Python GPX Library - [gpxpy](https://github.com/tkrajina/gpxpy) +- [PyGPX](https://github.com/sgraaf/gpx) +- [gpxcsv](https://github.com/astrowonk/gpxcsv) # 📝 TO DO LIST !! - Change to project.toml (https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html) diff --git a/setup.py b/setup.py index 7b96367..81d08e2 100644 --- a/setup.py +++ b/setup.py @@ -40,6 +40,7 @@ 'Operating System :: OS Independent' ], packages=find_packages(), + package_data={"": ["*.xsd"]}, include_package_data=True, install_requires=[ 'xmlschema',