[Git][debian-gis-team/pyosmium][master] 5 commits: New upstream version 3.1.1

Bas Couwenberg gitlab at salsa.debian.org
Tue Jan 12 16:46:40 GMT 2021



Bas Couwenberg pushed to branch master at Debian GIS Project / pyosmium


Commits:
fe39e491 by Bas Couwenberg at 2021-01-12T17:29:16+01:00
New upstream version 3.1.1
- - - - -
8f043c58 by Bas Couwenberg at 2021-01-12T17:29:21+01:00
Update upstream source from tag 'upstream/3.1.1'

Update to upstream version '3.1.1'
with Debian dir 2b85d5bae118e576bf386fde0e5df28c54657355
- - - - -
205ced86 by Bas Couwenberg at 2021-01-12T17:29:36+01:00
New upstream release.

- - - - -
85604710 by Bas Couwenberg at 2021-01-12T17:31:01+01:00
Bump minimum required libosmium2-dev to 2.16.0.

- - - - -
871c4837 by Bas Couwenberg at 2021-01-12T17:31:13+01:00
Set distribution to unstable.

- - - - -


10 changed files:

- .github/workflows/ci.yml
- CHANGELOG.md
- CMakeLists.txt
- README.md
- + cmake/FindLZ4.cmake
- cmake/FindOsmium.cmake
- debian/changelog
- debian/control
- setup.py
- src/osmium/version.py


Changes:

=====================================
.github/workflows/ci.yml
=====================================
@@ -19,7 +19,7 @@ jobs:
                   python-version: ${{ matrix.python-version }}
 
             - name: Install packages
-              run: sudo apt-get install -y -qq libboost-dev libexpat1-dev zlib1g-dev libbz2-dev libproj-dev libgeos-dev
+              run: sudo apt-get install -y -qq libboost-dev libexpat1-dev zlib1g-dev libbz2-dev libproj-dev libgeos-dev liblz4-dev
 
             - uses: ./.github/actions/install-dependencies
 
@@ -48,7 +48,7 @@ jobs:
                   python-version: 3.5
 
             - name: Install packages
-              run: sudo apt-get install -y -qq libboost-dev libexpat1-dev zlib1g-dev libbz2-dev libproj-dev libgeos-dev
+              run: sudo apt-get install -y -qq libboost-dev libexpat1-dev zlib1g-dev libbz2-dev libproj-dev libgeos-dev liblz4-dev
 
             - uses: ./.github/actions/install-dependencies
 
@@ -88,7 +88,7 @@ jobs:
                   python-version: 3.9
 
             - name: Install packages
-              run: sudo apt-get install -y -qq libboost-dev libexpat1-dev zlib1g-dev libbz2-dev libproj-dev libgeos-dev
+              run: sudo apt-get install -y -qq libboost-dev libexpat1-dev zlib1g-dev libbz2-dev libproj-dev libgeos-dev liblz4-dev
 
             - uses: ./.github/actions/install-dependencies
 
@@ -124,7 +124,7 @@ jobs:
                   python-version: 3
 
             - name: Install packages
-              run: brew install boost geos
+              run: brew install boost geos lz4
               shell: bash
 
             - uses: ./.github/actions/install-dependencies


=====================================
CHANGELOG.md
=====================================
@@ -4,6 +4,17 @@
 All notable changes to this project will be documented in this file.
 This project adheres to [Semantic Versioning](http://semver.org/).
 
+## [3.1.1] - 2021-01-12
+
+### Added
+
+- support for lz4 compression (compled in when library is found)
+
+### Changed
+
+- update to libosmium 2.16.0
+- update to pybind11 2.6.1
+
 ## [3.1.0] - 2020-11-03
 
 ### Added


=====================================
CMakeLists.txt
=====================================
@@ -2,9 +2,27 @@ cmake_minimum_required(VERSION 2.8.12)
 project(pyosmium)
 set(PACKAGE_VERSION 3.0.1)
 
+option(WITH_LZ4 "Build with lz4 support for PBF files" ON)
+
 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
 
-find_package(Osmium 2.15 REQUIRED COMPONENTS io pbf xml)
+find_package(Osmium 2.16 REQUIRED COMPONENTS io pbf xml)
+
+if(WITH_LZ4)
+find_package(LZ4)
+
+    if(LZ4_FOUND)
+        message(STATUS "lz4 library found, compiling with it")
+        add_definitions(-DOSMIUM_WITH_LZ4)
+        include_directories(SYSTEM ${LZ4_INCLUDE_DIRS})
+        list(APPEND OSMIUM_LIBRARIES ${LZ4_LIBRARIES})
+    else()
+        message(WARNING "lz4 library not found, compiling without it")
+    endif()
+else()
+    message(STATUS "Building without lz4 support: Set WITH_LZ4=ON to change this")
+endif()
+
 include_directories(SYSTEM ${OSMIUM_INCLUDE_DIRS} ${PROTOZERO_INCLUDE_DIR})
 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib)
 


=====================================
README.md
=====================================
@@ -34,7 +34,7 @@ command installs all required packages:
 
 pyosmium has the following dependencies:
 
- * [libosmium](https://github.com/osmcode/libosmium)
+ * [libosmium](https://github.com/osmcode/libosmium) >= 2.16.0
  * [protozero](https://github.com/mapbox/protozero)
  * [cmake](https://cmake.org/)
  * [Pybind11](https://github.com/pybind/pybind11) >= 2.2


=====================================
cmake/FindLZ4.cmake
=====================================
@@ -0,0 +1,38 @@
+find_path(LZ4_INCLUDE_DIR
+  NAMES lz4.h
+  DOC "lz4 include directory")
+mark_as_advanced(LZ4_INCLUDE_DIR)
+find_library(LZ4_LIBRARY
+  NAMES lz4 liblz4
+  DOC "lz4 library")
+mark_as_advanced(LZ4_LIBRARY)
+
+if (LZ4_INCLUDE_DIR)
+  file(STRINGS "${LZ4_INCLUDE_DIR}/lz4.h" _lz4_version_lines
+    REGEX "#define[ \t]+LZ4_VERSION_(MAJOR|MINOR|RELEASE)")
+  string(REGEX REPLACE ".*LZ4_VERSION_MAJOR *\([0-9]*\).*" "\\1" _lz4_version_major "${_lz4_version_lines}")
+  string(REGEX REPLACE ".*LZ4_VERSION_MINOR *\([0-9]*\).*" "\\1" _lz4_version_minor "${_lz4_version_lines}")
+  string(REGEX REPLACE ".*LZ4_VERSION_RELEASE *\([0-9]*\).*" "\\1" _lz4_version_release "${_lz4_version_lines}")
+  set(LZ4_VERSION "${_lz4_version_major}.${_lz4_version_minor}.${_lz4_version_release}")
+  unset(_lz4_version_major)
+  unset(_lz4_version_minor)
+  unset(_lz4_version_release)
+  unset(_lz4_version_lines)
+endif ()
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(LZ4
+  REQUIRED_VARS LZ4_LIBRARY LZ4_INCLUDE_DIR
+  VERSION_VAR LZ4_VERSION)
+
+if (LZ4_FOUND)
+  set(LZ4_INCLUDE_DIRS "${LZ4_INCLUDE_DIR}")
+  set(LZ4_LIBRARIES "${LZ4_LIBRARY}")
+
+  if (NOT TARGET LZ4::LZ4)
+    add_library(LZ4::LZ4 UNKNOWN IMPORTED)
+    set_target_properties(LZ4::LZ4 PROPERTIES
+      IMPORTED_LOCATION "${LZ4_LIBRARY}"
+      INTERFACE_INCLUDE_DIRECTORIES "${LZ4_INCLUDE_DIR}")
+  endif ()
+endif ()


=====================================
cmake/FindOsmium.cmake
=====================================
@@ -34,6 +34,7 @@
 #      gdal       - include if you want to use any of the OGR functions
 #      proj       - include if you want to use any of the Proj.4 functions
 #      sparsehash - include if you use the sparsehash index
+#      lz4        - include support for LZ4 compression of PBF files
 #
 #    You can check for success with something like this:
 #
@@ -116,14 +117,21 @@ if(Osmium_USE_PBF)
     find_package(Threads)
     find_package(Protozero 1.6.3)
 
+    if(Osmium_USE_LZ4)
+        find_package(LZ4 REQUIRED)
+        add_definitions(-DOSMIUM_WITH_LZ4)
+    endif()
+
     list(APPEND OSMIUM_EXTRA_FIND_VARS ZLIB_FOUND Threads_FOUND PROTOZERO_INCLUDE_DIR)
     if(ZLIB_FOUND AND Threads_FOUND AND PROTOZERO_FOUND)
         list(APPEND OSMIUM_PBF_LIBRARIES
             ${ZLIB_LIBRARIES}
+            ${LZ4_LIBRARIES}
             ${CMAKE_THREAD_LIBS_INIT}
         )
         list(APPEND OSMIUM_INCLUDE_DIRS
             ${ZLIB_INCLUDE_DIR}
+            ${LZ4_INCLUDE_DIRS}
             ${PROTOZERO_INCLUDE_DIR}
         )
     else()


=====================================
debian/changelog
=====================================
@@ -1,8 +1,10 @@
-pyosmium (3.1.0-2) UNRELEASED; urgency=medium
+pyosmium (3.1.1-1) unstable; urgency=medium
 
+  * New upstream release.
   * Bump Standards-Version to 4.5.1, no changes.
+  * Bump minimum required libosmium2-dev to 2.16.0.
 
- -- Bas Couwenberg <sebastic at debian.org>  Sat, 28 Nov 2020 14:12:47 +0100
+ -- Bas Couwenberg <sebastic at debian.org>  Tue, 12 Jan 2021 17:31:04 +0100
 
 pyosmium (3.1.0-1) unstable; urgency=medium
 


=====================================
debian/control
=====================================
@@ -11,7 +11,7 @@ Build-Depends: cmake (>= 2.8.12),
                libexpat1-dev,
                libgdal-dev,
                libgeos++-dev,
-               libosmium2-dev (>= 2.15.6),
+               libosmium2-dev (>= 2.16.0),
                libsparsehash-dev,
                pybind11-dev,
                python3-all-dev,


=====================================
setup.py
=====================================
@@ -144,6 +144,7 @@ setup(
         "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
+        "Programming Language :: Python :: 3.9",
         "Programming Language :: Python :: Implementation :: CPython",
         "Programming Language :: C++",
         ],


=====================================
src/osmium/version.py
=====================================
@@ -5,11 +5,11 @@ Version information.
 # the major version
 pyosmium_major = '3.1'
 # current release (Pip version)
-pyosmium_release = '3.1.0'
+pyosmium_release = '3.1.1'
 
 # libosmium version shipped with the Pip release
 libosmium_version = '2.15.6'
 # protozero version shipped with the Pip release
 protozero_version = '1.7.0'
 # pybind11 version shipped with the Pip release
-pybind11_version = '2.6.0'
+pybind11_version = '2.6.1'



View it on GitLab: https://salsa.debian.org/debian-gis-team/pyosmium/-/compare/56f60981c5ba949a5c71b48a7be5f81b7a96ef92...871c48376e5b025cd5f1484aaad49160478c5bff

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyosmium/-/compare/56f60981c5ba949a5c71b48a7be5f81b7a96ef92...871c48376e5b025cd5f1484aaad49160478c5bff
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20210112/5ac6e83e/attachment-0001.html>


More information about the Pkg-grass-devel mailing list