-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from metaodi/develop
Release 2.0.1
- Loading branch information
Showing
24 changed files
with
10,861 additions
and
416 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ MANIFEST | |
.coverage | ||
.tox | ||
.pycache/* | ||
.pytest_cache/* |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.DEFAULT_GOAL := help | ||
.PHONY: coverage deps help lint test docs | ||
|
||
coverage: ## Run tests with coverage | ||
python -m coverage erase | ||
python -m coverage run --include=osmapi/* -m pytest -ra | ||
python -m coverage report -m | ||
|
||
deps: ## Install dependencies | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
python -m pip install -r test-requirements.txt | ||
|
||
docs: ## Generate documentation | ||
python -m pdoc -o docs osmapi | ||
|
||
lint: ## Linting of source code | ||
python -m flake8 --statistics --show-source . | ||
|
||
test: ## Run tests | ||
python -m pytest --cov=osmapi tests/ | ||
|
||
help: SHELL := /bin/bash | ||
help: ## Show help message | ||
@IFS=$$'\n' ; \ | ||
help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##/:/'`); \ | ||
printf "%s\n\n" "Usage: make [task]"; \ | ||
printf "%-20s %s\n" "task" "help" ; \ | ||
printf "%-20s %s\n" "------" "----" ; \ | ||
for help_line in $${help_lines[@]}; do \ | ||
IFS=$$':' ; \ | ||
help_split=($$help_line) ; \ | ||
help_command=`echo $${help_split[0]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \ | ||
help_info=`echo $${help_split[2]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \ | ||
printf '\033[36m'; \ | ||
printf "%-20s %s" $$help_command ; \ | ||
printf '\033[0m'; \ | ||
printf "%s\n" $$help_info; \ | ||
done |
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = '2.0.0' | ||
__version__ = '2.0.1' | ||
|
||
from .OsmApi import * # noqa | ||
from .errors import * # noqa |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# This file lists the dependencies of this extension. | ||
# Install with a command like: pip install -r pip-requirements.txt | ||
pdoc==8.0.1 | ||
Pygments==2.10.0 | ||
pypandoc==1.6.4 | ||
requests==2.26.0 | ||
Unidecode==1.3.2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from codecs import open | ||
from setuptools import setup | ||
from setuptools import setup, find_packages | ||
import re | ||
|
||
with open('osmapi/__init__.py', 'r') as fd: | ||
|
@@ -11,22 +11,16 @@ | |
if not version: | ||
raise RuntimeError('Cannot find version information') | ||
|
||
try: | ||
import pypandoc | ||
from unidecode import unidecode | ||
description = open('README.md', encoding='utf-8').read() | ||
description = unidecode(description) | ||
description = pypandoc.convert(description, 'rst', format='md') | ||
except (IOError, OSError, ImportError): | ||
description = 'Python wrapper for the OSM API' | ||
with open('README.md', 'r', encoding="utf-8") as f: | ||
long_description = f.read() | ||
|
||
setup( | ||
name='osmapi', | ||
packages=['osmapi'], | ||
packages=find_packages(), | ||
version=version, | ||
install_requires=['requests'], | ||
description='Python wrapper for the OSM API', | ||
long_description=description, | ||
long_description=long_description, | ||
author='Etienne Chové', | ||
author_email='[email protected]', | ||
maintainer='Stefan Oderbolz', | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
coverage | ||
coveralls | ||
flake8 | ||
mock | ||
nose | ||
tox | ||
virtualenv | ||
xmltodict | ||
pytest | ||
pytest-cov | ||
coverage |
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
Oops, something went wrong.