You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,10 @@ pip install fgdb-to-gpkg
24
24
25
25
1. Clone the repository: `git clone https://github.com/philiporlando/fgdb_to_gdb.git`
26
26
2. Navigate to the repository directory: `cd fgdb_to_gdb`
27
-
3. Install the package and its dependencies with [poetry](https://python-poetry.org/): `poetry install`
27
+
3. Install the package and its dependencies with [uv](https://astral.sh/uv):
28
+
```bash
29
+
uv sync --extra dev
30
+
```
28
31
4. Optionally, install the package to be run globally with pipx: `pipx install --editable .`
29
32
30
33
## Usage
@@ -69,34 +72,33 @@ help(fgdb_to_gpkg)
69
72
Unit tests can be performed by the developers of this package using the following command:
70
73
71
74
```bash
72
-
poetry run pytest tests
75
+
uv run pytest
73
76
```
74
77
75
78
Test coverage can be assessed using the following command:
76
79
77
80
```bash
78
-
poetry run pytest --cov=fgdb_to_gpkg --cov-report term-missing
81
+
uv run pytest --cov=fgdb_to_gpkg --cov-report term-missing
79
82
```
80
83
81
84
#### Handling the Fiona GDAL compilation error
82
85
83
86
The unit tests within this package depend on `gdal=^3.6.0`, but the current version of `fiona` ships with `gdal=3.5.3`. The fiona package must be installed using the `--no-binary` flag to test this package. If this is not configured properly, then you will see the following error:
84
87
85
88
```bash
86
-
poetry run pytest tests
89
+
uv run tests
87
90
# fiona.errors.DriverError: OpenFileGDB driver requires at least GDAL 3.6.0 for mode 'w', Fiona was compiled against: 3.5.3
88
91
```
89
92
90
-
The `poetry.toml` file should contain all of the config needed to tell poetry how to handle this issue. However, if `poetry install` does not resolve the issue, then try the following:
93
+
If you encounter errors related to GDAL or Fiona compatibility, ensure you have the correct versions installed and that your environment is synced using `uv`. If you still encounter issues, try reinstalling Fiona with:
91
94
92
95
```bash
93
-
poetry run pip install --force-reinstall fiona --no-binary fiona
0 commit comments