[Git][debian-gis-team/pyosmium][master] 6 commits: New upstream version 2.14.0
Bas Couwenberg
gitlab at salsa.debian.org
Sat Mar 31 20:30:51 UTC 2018
Bas Couwenberg pushed to branch master at Debian GIS Project / pyosmium
Commits:
6d33f9a5 by Bas Couwenberg at 2018-03-31T21:51:43+02:00
New upstream version 2.14.0
- - - - -
f273841b by Bas Couwenberg at 2018-03-31T21:51:46+02:00
Merge tag 'upstream/2.14.0'
Upstream version 2.14.0
- - - - -
f7fb0be8 by Bas Couwenberg at 2018-03-31T21:51:58+02:00
New upstream release.
- - - - -
30dfab75 by Bas Couwenberg at 2018-03-31T21:52:19+02:00
Bump minimum required libosmium2-dev to 2.14.0.
- - - - -
70153390 by Bas Couwenberg at 2018-03-31T22:20:35+02:00
Update pybuild build directory path.
- - - - -
9ad40bcb by Bas Couwenberg at 2018-03-31T22:20:35+02:00
Set distribution to unstable.
- - - - -
9 changed files:
- .travis.yml
- CHANGELOG.md
- README.md
- appveyor.yml
- debian/changelog
- debian/control
- debian/rules
- setup.py
- src/osmium/version.py
Changes:
=====================================
.travis.yml
=====================================
--- a/.travis.yml
+++ b/.travis.yml
@@ -23,22 +23,6 @@ matrix:
- os: linux
compiler: gcc
env: USE_PYTHON_VERSION=3
- - os: osx
- osx_image: xcode6.4
- compiler: clang
- env: USE_PYTHON_VERSION=2 PYTHON_SUFFIX=2 BOOST_PYTHON_OPTION=
- - os: osx
- osx_image: xcode6.4
- compiler: clang
- env: USE_PYTHON_VERSION=3 PYTHON_SUFFIX=3 BOOST_PYTHON_OPTION="--with-python3 --without-python"
- - os: osx
- osx_image: xcode7
- compiler: clang
- env: USE_PYTHON_VERSION=2 PYTHON_SUFFIX= BOOST_PYTHON_OPTION=
- - os: osx
- osx_image: xcode7
- compiler: clang
- env: USE_PYTHON_VERSION=3 PYTHON_SUFFIX=3 BOOST_PYTHON_OPTION="--with-python3 --without-python"
# http://docs.travis-ci.com/user/apt/
addons:
@@ -61,7 +45,9 @@ addons:
install:
- git clone --quiet --depth 1 https://github.com/osmcode/libosmium.git ../libosmium
+ - git clone --quiet --depth 1 https://github.com/mapbox/protozero.git ../protozero
- if [ "$TRAVIS_OS_NAME" = 'osx' ]; then
+ brew update;
brew install python$PYTHON_SUFFIX google-sparsehash;
brew install boost-python $BOOST_PYTHON_OPTION;
pip$PYTHON_SUFFIX install -q nose mock;
=====================================
CHANGELOG.md
=====================================
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,18 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
+## [2.14.0] - 2018-03-31
+
+### Added
+
+### Changed
+
+- use current libosmium
+- install protozero separately from libosmium
+- installation documentation updated
+
+### Fixed
+
## [2.13.0] - 2017-08-31
### Added
=====================================
README.md
=====================================
--- a/README.md
+++ b/README.md
@@ -7,28 +7,55 @@ manner.
[](http://travis-ci.org/osmcode/pyosmium)
[](https://ci.appveyor.com/project/Mapbox/pyosmium)
-
## Dependencies
Python >= 2.7 is supported but a version >= 3.3 is strongly recommended.
-You'll need Python setuptools. On Debian/Ubuntu install `python-setuptools`.
-
-pyosmium uses [Boost.Python](http://www.boost.org/doc/libs/1_56_0/libs/python/doc/index.html)
-to create the bindings. On Debian/Ubuntu install `libboost-python-dev`. OS X run
-`brew install boost-python` or `brew install boost-python --with-python3`
-depending on which python version you want to use. You can also (re)install
-both.
+Other requirements are:
-Other dependencies are expat, libz, libbz2 and Boost iterator.
-See [Libosmium dependencies](http://osmcode.org/libosmium/manual.html#dependencies)
-for required packages for various distributions.
+ * Python setuptools
+ * [Boost.Python](http://www.boost.org/doc/libs/1_56_0/libs/python/doc/index.html)
+ * protozero, expat, libz, libbz2 and Boost iterator
+ (see also [Libosmium dependencies](http://osmcode.org/libosmium/manual.html#dependencies))
+ * a recent C++ compiler (Clang 3.4+, GCC 4.8+)
-You have to compile with the same compiler version python is compiled with on
+You have to compile with the same compiler version that Python is compiled with on
your system, otherwise it might not work.
+### Debian/Ubuntu
+
+On Debian/Ubuntu systems all required dependencies can be installed with:
+
+ sudo apt-get install build-essential libboost-python-dev \
+ libexpat1-dev zlib1g-dev libbz2-dev
+
+### Homebrew (OS X)
+
+On OS x Boost.Python needs to be installed with
+`brew install boost-python` or `brew install boost-python3`
+depending on which Python version you want to use. You can also (re)install
+both.
+
## Installation
+### Using Pip
+
+The recommended way to install pyosmium is via pip:
+
+ pip install osmium
+
+There are also experimental binary wheels for Windows available.
+
+### Compiling from Source
+
+When compiling from source, you need to get the latest libosmium version
+first. It is recommended to put it next to the pyosmium source. The setup
+script uses per default either a globally installed libosmium or
+looks for the source in `../libosmium`. You can set a custom location with
+`LIBOSMIUM_PREFIX`.
+
+To use a custom boost installation, set `BOOST_PREFIX`.
+
To compile the bindings, run
python setup.py build
@@ -43,11 +70,6 @@ to install only for your user, or
to install globally.
-The setup script uses per default either a globally installed libosmium or
-looks for the source in `../libosmium`. You can set a custom location with
-`LIBOSMIUM_PREFIX`.
-
-To use a custom boost installation, set `BOOST_PREFIX`.
## Examples
=====================================
appveyor.yml
=====================================
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -20,6 +20,7 @@ install:
- python --version
- cd c:\dev
- git clone --depth 10 https://github.com/osmcode/libosmium.git
+ - git clone --depth 10 https://github.com/mapbox/protozero.git
- dir c:\dev
- IF NOT EXIST pyosmium_libs_Release.7z ECHO downloading dependencies pack... && powershell Invoke-WebRequest https://github.com/alex85k/pyosmium_libs/releases/download/0.3/%DEVPACK% -OutFile %DEVPACK%
- cd c:\
=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,13 @@
-pyosmium (2.13.0-2) UNRELEASED; urgency=medium
+pyosmium (2.14.0-1) unstable; urgency=medium
+ * New upstream release.
* Update copyright-format URL to use HTTPS.
* Update Vcs-* URLs for Salsa.
* Bump Standards-Version to 4.1.3, no changes.
+ * Bump minimum required libosmium2-dev to 2.14.0.
+ * Update pybuild build directory path.
- -- Bas Couwenberg <sebastic at debian.org> Sun, 21 Jan 2018 10:31:11 +0100
+ -- Bas Couwenberg <sebastic at debian.org> Sat, 31 Mar 2018 21:54:05 +0200
pyosmium (2.13.0-1) unstable; urgency=medium
=====================================
debian/control
=====================================
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ Build-Depends: debhelper (>= 9),
libexpat1-dev,
libgdal-dev,
libgeos++-dev,
- libosmium2-dev (>= 2.13.1),
+ libosmium2-dev (>= 2.14.0),
libsparsehash-dev,
python-all-dev,
python-setuptools,
=====================================
debian/rules
=====================================
--- a/debian/rules
+++ b/debian/rules
@@ -21,8 +21,8 @@ override_dh_clean:
override_dh_auto_build-indep:
dh_auto_build --indep
- (cd doc && PYTHONPATH=$(CURDIR)/.pybuild/pythonX.Y_`py3versions -vd`/build make html)
- (cd doc && PYTHONPATH=$(CURDIR)/.pybuild/pythonX.Y_`py3versions -vd`/build make man)
+ (cd doc && PYTHONPATH=$(CURDIR)/.pybuild/cpython3_`py3versions -vd`_pyosmium/build make html)
+ (cd doc && PYTHONPATH=$(CURDIR)/.pybuild/cpython3_`py3versions -vd`_pyosmium/build make man)
override_dh_auto_test:
PYBUILD_SYSTEM=custom \
=====================================
setup.py
=====================================
--- a/setup.py
+++ b/setup.py
@@ -18,6 +18,10 @@ class My_sdist(orig_sdist):
tarball = 'https://github.com/osmcode/libosmium/archive/v%s.tar.gz' % libosmium_version
print("Downloading and adding libosmium sources from", tarball)
call('cd %s && wget -O - -q %s | tar xz' % (base_dir, tarball), shell=True)
+ # checkout protozero in the required version
+ tarball = 'https://github.com/mapbox/protozero/archive/v%s.tar.gz' % protozero_version
+ print("Downloading and adding protozero sources from", tarball)
+ call('cd %s && wget -O - -q %s | tar xz' % (base_dir, tarball), shell=True)
def get_versions():
""" Read the version file.
@@ -31,9 +35,9 @@ def get_versions():
# Execute the code in version.py.
exec(compile(version_file.read(), version_py, 'exec'), v)
- return v['pyosmium_release'], v['libosmium_version']
+ return v['pyosmium_release'], v['libosmium_version'], v['protozero_version']
-pyosmium_release, libosmium_version = get_versions()
+pyosmium_release, libosmium_version, protozero_version = get_versions()
## boost dependencies
boost_prefix = os.environ.get('BOOST_PREFIX',
@@ -110,6 +114,12 @@ else:
else:
print("Using global libosmium.")
+### protozero dependencies
+for prefix in [ 'protozero-' + protozero_version, '../protozero' ]:
+ if os.path.isfile(os.path.join(prefix, 'include/protozero/version.hpp')):
+ print("protozero found in '%s'" % prefix)
+ includes.insert(0, os.path.join(prefix, 'include'))
+
if osplatform == "win32" :
osmium_libs = ('expat', 'zlib', 'bzip2', 'ws2_32')
extra_compile_args = [ '-DWIN32_LEAN_AND_MEAN', '-D_CRT_SECURE_NO_WARNINGS', '-DNOMINMAX', '/wd4996', '/EHsc' ]
=====================================
src/osmium/version.py
=====================================
--- a/src/osmium/version.py
+++ b/src/osmium/version.py
@@ -3,9 +3,11 @@ Version information.
"""
# the major version
-pyosmium_major = '2.13'
+pyosmium_major = '2.14'
# current release (Pip version)
-pyosmium_release = '2.13.0'
+pyosmium_release = '2.14.0'
# libosmium version shipped with the Pip release
-libosmium_version = '2.13.1'
+libosmium_version = '2.14.0'
+# protozero version shipped with the Pip release
+protozero_version = '1.6.2'
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyosmium/compare/5d7954a2127e7a812a7a7d3961ff1e6bffce51f0...9ad40bcba878a87fc184047eb202b96ec450a94b
---
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyosmium/compare/5d7954a2127e7a812a7a7d3961ff1e6bffce51f0...9ad40bcba878a87fc184047eb202b96ec450a94b
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20180331/a9a72364/attachment-0001.html>
More information about the Pkg-grass-devel
mailing list