- Change version numbers in
__init__.py
andsetup.py
- Run tests:
nosetests --with-coverage --cover-erase --cover-package=openrouteservice --cover-html -v
- Amend
*.rst
files if new modules were created - Check if installation works for current Python version via
python -m venv .venv' and
pip install -e ../openrouteservice-py` - Check if
conda
installs in new environment Python v.x env:conda install --yes -f openrouteservice-py/requirements.py
- Add tag after commit:
git tag vX.Y.Z
- Build dist and wheel:
python setup.py sdist bdist_wheel --universal
orpython3 setup.py sdist bdist_wheel
- Check if PyPI can parse all:
python -m twine check dist/*
- Upload:
twine upload dist/*
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> | |
<style> | |
body { padding: 0; margin: 0; } | |
html, body, #map { height: 100%; } | |
</style> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
ors { | |
info: { | |
base_url: "https://openrouteservice.org/", | |
support_mail: "[email protected]", | |
author_tag: "openrouteservice", | |
content_licence: "LGPL 3.0" | |
}, | |
services: { | |
matrix: { |
this assumes you have installed Python 3 via Anaconda distribution.
- open a terminal and create a new python 2 environment:
conda create -n py27 python=2.7
- activate the environment: linux
source activate py27
or windowsactivate py27
- install the kernel in the env:
conda install notebook ipykernel
- install the kernel for outside the env:
ipython kernel install --user
- close the env:
source deactivate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE relations.*, taxes.*, terms.* | |
FROM wp_term_relationships AS relations | |
INNER JOIN wp_term_taxonomy AS taxes | |
ON relations.term_taxonomy_id=taxes.term_taxonomy_id | |
INNER JOIN wp_terms AS terms | |
ON taxes.term_id=terms.term_id | |
WHERE object_id IN (SELECT ID FROM wp_posts WHERE post_type='product'); | |
DELETE FROM wp_postmeta WHERE post_id IN (SELECT ID FROM wp_posts WHERE post_type = 'product'); | |
DELETE FROM wp_posts WHERE post_type = 'product'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable camelcase */ | |
import axios from 'axios' | |
import OAuth from 'oauth-1.0a' | |
import crypto from 'crypto-browserify' | |
import * as R from 'ramda' | |
import queryString from 'query-string' | |
/** | |
* WooCommerce REST API wrappercat | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable camelcase */ | |
import axios from 'axios' | |
import OAuth from 'oauth-1.0a' | |
import crypto from 'crypto-browserify' | |
import * as R from 'ramda' | |
import queryString from 'query-string' | |
/** | |
* WooCommerce REST API wrappercat | |
* |
Boost is easy when you are using headers or pre-compiled binaries for visual studio, but it can be a pain to compile from source on windows, especially when you want the 64-bit version of MinGW to use gcc/g++. This installation process should be thorough enough to simply copy and paste commands, but robust enough to install everything you need.
Note: if you need to install any of the libraries that need dependencies, see this great answer from stack overflow
Get the MinGW installer mingw-w64-install.exe from Sourceforge
Get the boost_1_68_0.zip source from Sourceforge
__Note: This should work perfectly w
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM fedora:rawhide | |
LABEL [email protected] | |
RUN echo all > /etc/rpm/macros.image-language-conf && \ | |
dnf install -y \ | |
mingw64-protobuf \ | |
protobuf-compiler | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Author: Nils Nolde <[email protected]> | |
# Updated: 15-12-2020 | |
# License: MIT | |
# | |
# Update OSM PBF files in batch by specifying a folder and a fixed update interval. For planet updates rather check https://docs.osmcode.org/pyosmium/latest/tools_uptodate.html. | |
# | |
# Requires: | |
# - jq |
OlderNewer