Skip to content

Releases: osmcode/pyosmium

Version 3.4.1

Compare
Choose a tag to compare

Fixed

  • allow building docs from built sources in PYTHONPATH again

Version 3.4.0

Compare
Choose a tag to compare

Fixed

  • finding the build directory when newer versions of setuptools are used

Changed

  • improve error message when writing to a writer that is already closed
  • update to pybind 2.10.0
  • drop support for Python 3.5

Version 3.3.0

Compare
Choose a tag to compare

With this release the recommended way of using ReplicationServer changes: use it now as a context manager with the with statement:

with rserv.ReplicationServer('https://planet.osm.org/replication/hour/', 'osc.gz') as svr:
    print(svr.get_state_info())

The old way of simply calling the constructor still works but it won't make use of requests.Sessions. Downloads will be a bit slower.

This is the last version to support Python 3.5.

Added

  • add_box() for osmium.osm.Header for setting the bbox in a OSM file
  • SimpleWriter now can receive a customized header in its constructor
  • SimpleWriter now accepts a list of RelationMember in then member parameter
    of add_relation()
  • more tests for replication server and osm base types

Fixed

  • AttributeError when using pyosmium-get-changes with cookies (thanks @wiktorn)
  • avoid memory leak in apply_buffer() functions in
    SimpleHandler and MergeInputReader
  • maek sure close() is called for requests.Session and requests.Response
  • documentation for open_url() now reflects its new behaviour
  • build issue with raw ssize_t on Windows since Python 3.10

Changed

  • ReplicationServer is now a context manager
  • allow any string-like object for apply_file()
  • switch tests from nose to pytest
  • use Python libraries instead of wget for downloading contrib packages
  • update to libosmium 2.18.0 (requires now C++14)
  • update to pybind11 2.9.1

Release 3.2.0

Compare
Choose a tag to compare

Please note that this release adds a dependency to the requests library.

Fixed

  • merge change files correctly so that latest applied object comes first

Changed

  • switch to requests library for downloading files (thanks @jocelynj)
  • update to libosmium 2.17.0
  • update to pybind11 2.7.1

Release 3.1.3

Compare
Choose a tag to compare

Fixed

  • up-to-date: check if any updates are available before starting download
  • AttributeError when writing replication headers and network is unreachable

Changed

  • update to pybind11 2.6.2

Release 3.1.2

Compare
Choose a tag to compare

Fixed

  • package pypi source wheel with correct libosmium version

Release 3.1.1

Compare
Choose a tag to compare

Added

  • support for lz4 compression (compiled in when library is found)

Changed

  • update to libosmium 2.16.0
  • update to pybind11 2.6.1

Release 3.1.0

Compare
Choose a tag to compare

Changed

  • improved help messages for update tools
  • update to pybind11 2.6

Fixed

  • pyosmium-up-to-date: fix missing flag when applying changes to history files
  • smaller linting and documentation issues

When compiling against pybind11 2.6, you need at least CMake 3.4. Older versions of pybind11 are still supported and work together with older CMake versions.

Release 3.0.1

Compare
Choose a tag to compare

Added

  • allow to set user in mutable object

Changed

  • use current libosmium and protozero

Fixed

  • avoid leaking Python handle in timestamp conversion

Version 3.0.0

Compare
Choose a tag to compare

Starting with this release, pyosmium no longer follows version numbering of libosmium.

Added

  • socket timeouts for pyosmium-get-changes and pyosmium-up-to-date
  • pyosmium-up-to-date: allow writing the diff to stdout (requires format option)

Changed

  • remove support for Python2 and Python 3.3