189 Commits

Author SHA1 Message Date
Bas Couwenberg
51175d3e15
Vendor click-plugins, PyPI package no longer maintained. (#3367) 2025-12-06 08:17:28 -06:00
Adam J. Stewart
0433b47c08
Add missing test dependencies (#3434)
Signed-off-by: Adam J. Stewart <ajstewart426@gmail.com>
2025-12-05 11:43:40 -06:00
Alan D. Snow
9880c5c40f
DEP: Python 3.10+ & GDAL 3.6+ (#3440) 2025-12-05 08:47:04 -06:00
Alan D. Snow
648599b65d
ENH: Enable free threading python & support Python 3.14 (#3425)
* CI: Python 3.14

* ENH: Enable free threading python
2025-11-06 14:37:41 -06:00
Elliott Sales de Andrade
0b1c39eba7
BLD: Avoid click 8.2.* (#3393)
Due to pallets/click#2939, input from a file is broken. This should be
fixed by pallets/click#2940, which is scheduled to be in click 8.3.0.
2025-09-06 20:32:23 -05:00
Sean Gillies
64474c1795
Introducing cache.invalidate() and invalidate_all() (#3276)
* Introducing cache.invalidate() and invalidate_all()

Resolves #3275

* Improve documentation of cache module

* Even more documentation
2024-12-14 19:03:25 -07:00
Sean Gillies
df409de086
Rel 1.4.1 (#3199)
* This is the maint-1.4 branch

* Check for lowerCase netCDF instead of NetCDF (#3189)

Some tests were accidentally skipped even though netCDF driver was installed due to incorrect capitalization.

* Return ints from dataset index() (#3195)

Resolves #3192

* Mark additional tests that use the network (#3193)

The network marker is already used in other places, but these tests are
new.

* Restore xy transform of grid coordinates (#3198)

Resolves #3191

* Add fsspec to test dependencies (#3197)

Resolve #3190

* This is 1.4.1

* Configuration for our internal use of MEM:: datasets

---------

Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
2024-10-01 10:31:19 -06:00
Alan D. Snow
fd4163d4b5
DEP: GDAL 3.5+, numpy 1.24+ (#3166)
* DEP: Python 3.10+, GDAL 3.5+, numpy 1.24+

* Apply suggestions from code review

* DEP: GDAL 3.5+, numpy 1.24+

* Fix

* remove python 3.13 from conda matrix

---------

Co-authored-by: Sean Gillies <sean.gillies@gmail.com>
2024-09-09 21:59:11 -06:00
Sean Gillies
48513a07b4
This is 1.4b2 (#3159)
* This is 1.4b2

* Bump version
2024-09-09 09:05:40 -06:00
Mike Taves
4b74365873
BLD: remove pkg_resources.parse_version (#3154) 2024-08-29 15:54:52 -06:00
Sean Gillies
5d65401be8
Port of Pyopener VSI plugin improvements in Fiona 1.10b2 (#3113)
* Port of Pyopener VSI plugin improvements in Fiona 1.10b2

* Don't use cpp flags for _vsiopener

* Update change log

* Update rasterio/_vsiopener.pyx

Co-authored-by: Alan D. Snow <alansnow21@gmail.com>

* Add threading and registration tests

---------

Co-authored-by: Alan D. Snow <alansnow21@gmail.com>
2024-07-12 16:00:23 -06:00
Adam J. Stewart
fe48b1ea9d
Remove run-time dependency on setuptools (#3071) 2024-04-17 08:56:09 -06:00
Sean Gillies
93346404c4
Update change log and version for 1.4a3 (#3065)
* Update change log and version for 1.4a3

* xfail complex merge test with GDAL 3.8+

* Remove can_cast, add some debug logging to read()

* Add importlib-metadata to requirements for Python 3.9

* Rename VSI prefix to vsiriopener

* Update version
2024-04-16 16:03:51 -06:00
Sean Gillies
64b6fe03b7
Numpy 2 compatibility (#3061)
* Numpy 2 compatibility

* Update PR ref in change log

* Add missing vsiopener test dependencies

* Change log update
2024-04-08 16:04:02 -06:00
Sean Gillies
3a04244a97
Rel 1.4a1 (#3037)
* Rasterio 1.4a1

* Add an __init__.py to _vendor/

* Explicitly mention rasterio._vendor in package config

* Add missing pyparsing dependency (vendored snuggs)

* Update metadata and change log

* Set new release date

* use nodata value when provided in boundless vrt doc (#3026)

* Add some debugging output

* Temporarily increase log level

* Don't assert on dtype in rasterize

* New pre-release date

* Version is 1.4dev

---------

Co-authored-by: Sean Gillies <seangillies@Seans-MacBook-Air.local>
Co-authored-by: Vincent Sarago <vincent.sarago@gmail.com>
2024-03-01 15:57:38 -07:00
Alan D. Snow
1b1ff51129
DEP: Use numpy in pyproject.toml & numpy<2 (#3002) 2024-01-09 11:33:54 -07:00
Sean Gillies
61e66e2748
Vendor snuggs (#2956)
* Vendor snuggs

Resolves #2918

* Remove unused import.

* Update CHANGES.txt

---------

Co-authored-by: Sean Gillies <seangillies@Seans-MacBook-Air.local>
2023-12-30 17:05:21 -07:00
Sean Gillies
1c003d1986 Merge tag '1.3.9' 2023-10-19 08:37:44 -06:00
Sean Gillies
01d778ad96
Release 1.3.8.post1 (#2923)
* Update version and change log

* RTD version 2

* Require Cython < 3

* Remove extra _matches function

* Skip a few tests if shapely cannot be imported.

Add "python_version < '3.12'" to test's shapely requirement. There
are no shapely wheels for 3.12 yet.

* Relax numpy requirement for installation

* Add a backend section

* With build isolation

* Require setuptools >= 67.8

* Update change log, this is 1.3.8.post1

* Bump to next dev version

* Add sphinx-rtd-theme dependency

---------

Co-authored-by: Sean Gillies <seangillies@Seans-MacBook-Air.local>
2023-10-10 10:02:12 -06:00
Sean Gillies
b9716ce3c9
Python file opener VSI plugin (#2898)
* Rough draft of a new VSI plugin

Resolves #2888 maybe

* Getting closer

* Working implementation!

The missing piece was keeping a reference to opened files.

* Add more tests

* Add more documentation about opener

* Improvements based on feedback from @rouault

* Update docstrings

* Update the VSI topic in docs

* Don't accept fsspec OpenFile instances as opener

Instead, we'll make a way for rasterio.open to accept them as the
"fp" positional argument

* Store contexts of vsipyopener file objects

Eliminates the fsspec OpenFile special case

* Strip file mode for the zipfile case

* Update rasterio/_vsiopener.pyx

Co-authored-by: Alan D. Snow <alansnow21@gmail.com>

---------

Co-authored-by: Sean Gillies <seangillies@Seans-MacBook-Air.local>
Co-authored-by: Alan D. Snow <alansnow21@gmail.com>
2023-08-31 11:46:00 -06:00
Alan D. Snow
9a711f1f06
DEP: Add Python 3.11 metadata (#2786) 2023-03-10 20:50:36 -06:00
Alan D. Snow
f6b7b7636d
DEP: GDAL 3.3+, numpy 1.21+, Python 3.9+ (#2779)
* DEP: GDAL 3.3+, numpy 1.21+, Python 3.9+

* CI: Remove .travis.yml
2023-03-06 17:23:18 -07:00
Alan D. Snow
713a751197
DOC: Use sphinx-click for CLI documentation (#2574) 2022-08-29 12:43:26 -06:00
Alan D. Snow
21a1622086
ENH: Add support for PROJ_DATA environment variable (#2530) (#2557) 2022-08-19 09:11:40 -06:00
Alan D. Snow
7cf19395f7
ENH: Add support for PROJ_DATA environment variable (#2530) 2022-08-02 17:24:30 -04:00
Adam J. Stewart
0e3f1f0540
DOC: Consistently document dependency versions (#2506) 2022-07-06 19:42:01 -06:00
Alan D. Snow
07d05c5586
DEP: GDAL 3.1+ (#2448) 2022-05-10 08:13:43 -06:00
Sean Gillies
eb2a24221a This is 1.3a4 2022-04-20 17:29:59 -06:00
Alan D. Snow
ceff246f87
ENH: Add PROJ & GEOS version information (#2444) 2022-04-19 14:25:34 -05:00
Alan D. Snow
220d03f46f
DEP: Require GDAL 3+ (#2443) 2022-04-19 07:18:39 -05:00
Alan D. Snow
75faabebd7
DEP: Python 3.7+ in setup.py (#2442) 2022-04-19 07:18:01 -05:00
Sean Gillies
8bff8a70b4
Merge _crs with crs (#2335)
* Merge _crs into crs

CRS is an extension class now, with improved documentation. The
test__crs.py file is obsolete and has been deleted.

I piggy-backed some API doc changes onto this. We now generate
API docs from scratch every time and have removed the .rst files
from the repo. The crs module now uses the embedsignature Cython
directive, which we should do for other extension modules.

* Include private modules

* Restore API docs

We'll remove them in a different branch.

* Update docs/index.rst

* Handle OverflowError from <int>code

Also repair chunks missed in rebase
2022-03-31 19:19:21 -06:00
vincentsarago
7b5953cd2d move entrypoints in setup.cfg 2022-02-28 14:03:43 +01:00
David Hoese
80a67d6275
Add Python file-like VSI Plugin (#2141)
* Initial proof of concept for Python file-like VSI handler

* Add GDAL VSI Plugin definitions to gdal.pxi [skip ci]

* Add proof of concept pyvsi with GDAL Plugin API [skip ci]

* Add global filesystem state to PyVSI plugin

* Add close function handler to pyvsi plugin

* Move cython language definition to cython module

* Switch _pyvsi extension to use cpp compile options

* Add pyvsi_ prefix to GDAL callback functions to avoid collisions

* Add basic information to _pyvsi module docstring

* Remove ability to open PyVSIFile as writable

* Remove unnecessary code from PythonVSIFile

* Match new code style used in MemoryFile

* Fix PythonVSIFile argument passing to __init__

* Update memoryfile tests to use pytest fixtures instead of hardcoded paths

* Add read method to PythonVSIFile

* Add PythonVSIFile tests

* Fix xfail reason on pyvsi test

* Add concurrent pyvsi test

* Add flexible PythonVSIFile plugin importing for GDAL<3.0

* Remove legacy 'ext' keyword argument for PythonVSIFile interface

* Rename "PyVSI" to "FilePath" and remove unnecessary methods

* Rename other instances of pyvsi to filepath

* Rename other instances of pyvsi to filepath
2021-11-13 12:25:57 -07:00
Vincent Sarago
ba5e90c487
mapbox -> rasterio (#2321) 2021-10-22 09:04:05 -06:00
Alan D. Snow
e16206791d
REF: set language level in cythonize options in setup.py (#2241) 2021-07-19 14:43:18 -06:00
Alan D. Snow
dec6ee53a6
BUG: Fix setup.py clean (#2214) (#2217) 2021-06-21 20:43:45 -06:00
Sean Gillies
9b82b111fe
Revert "BUG: Fix setup.py clean (#2214)" (#2216)
This reverts commit cda2242f346a05e7d54ec4fa165043d7bf6ce36c.
2021-06-21 15:22:46 -06:00
Alan D. Snow
cda2242f34
BUG: Fix setup.py clean (#2214) 2021-06-21 10:49:50 -06:00
Sean Gillies
2de62d2ead Merge tag '1.2.4' 2021-05-31 16:26:51 -06:00
Sean Gillies
61ff96232f Change comparisons of nodata to IgnoreOption for click 8.0
Resolves #2188
2021-05-28 15:08:36 -06:00
Sean Gillies
53a6a06074 Explicitly require setuptools 2021-04-28 11:25:41 -06:00
Tomáš Hrnčiar
b17b2e330e
Require setuptools, rasterio/rio/main.py and tests/test_cli_main.py import pkg_resources (#2168) 2021-04-28 11:21:16 -06:00
Alan D. Snow
99511e4069
Use compile_time_env in place of shims (#2016)
* Use compile_time_env in place of shims

* Update setup.py to require cython

* remove sdist_fill

* update MANIFEST

* Remove support for GDAL < 2.3

* Remove rasterfill.cpp
2021-02-18 12:11:25 -07:00
Sean Gillies
c41243abe7 Replace hyphens with dashes
Resolves #2081
2021-01-12 12:30:50 -07:00
Sean Gillies
2db2a41c77 Fix classifier 2021-01-10 19:34:32 -07:00
Sean Gillies
176c09d65b
Use cython's language level 3 and update README and setup.py (#2077)
Resolves #2064
2021-01-08 12:32:12 -07:00
Alan D. Snow
2a1cf0f9ea
Update setup.py supported python versions (#2068) 2020-12-11 21:37:19 -07:00
Sean Gillies
264ccaa838
Make feature extraction tests robust with respect to noding (#2066)
* Make feature extraction tests robust with respect to noding

Resolves #2034

* Install test extras

* Add shapely

* Finish adjusting tests and tweaking build matrix
2020-12-11 15:44:59 -07:00
Sean Gillies
d7b2dd3ae6 Depend on certifi for certs
Resolves #2009

If a user wants to use their system's bundle or keychain, they can
uninstall certifi.
2020-10-06 16:06:02 -06:00