Skip to content

Commit

Permalink
CI template
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Aug 15, 2018
1 parent cd9b9d4 commit ef7cdf6
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 46 deletions.
14 changes: 7 additions & 7 deletions .appveyor.yml
Expand Up @@ -5,16 +5,16 @@ image:
stack: python 3

environment:
PY_DIR: C:\Python36-x64
PY_DIR: C:\Python37-x64

clone_depth: 3

before_build:
build: off

init:
- cmd: set PATH=%PY_DIR%;%PY_DIR%\Scripts;%PATH%

build_script:
- pip install -e .[tests]

after_build:
- pytest -sv
install: pip install -e .[tests]

test_script: pytest -rsv

13 changes: 0 additions & 13 deletions .coveragerc

This file was deleted.

37 changes: 19 additions & 18 deletions .travis.yml
@@ -1,29 +1,30 @@
language: python
fast_finish: true

python:
- 3.6
- 3.7-dev

os:
- linux

sudo: required
dist: xenial
group: travis_latest

git:
depth: 3
quiet: true

python:
- 3.6
- 3.7

os:
- linux


install: pip install -e .[tests]

script:
- pytest -sv
- flake8
- mypy . --ignore-missing-imports
script:
- pytest -rsv
- flake8
- mypy . --ignore-missing-imports

after_success:
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
pytest --cov;
coveralls;
fi
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 3.6* ]]; then
pytest --cov --cov-config=setup.cfg;
coveralls;
fi

42 changes: 36 additions & 6 deletions setup.cfg
@@ -1,36 +1,66 @@
[metadata]
name = maidenhead
version = 1.1.6
description = Maidenhead Locator, Lat Lon coordinate convertor
author = Michael Hirsch; Henri Kuiper
description = Maidenhead Locator, Lat Lon coordinate convertor
url = https://github.com/scivision/maidenhead
keywords =
keywords =
location
maidenhead
classifiers =
Development Status :: 4 - Beta
Environment :: Console
Operating System :: OS Independent
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Topic :: Scientific/Engineering :: GIS
license_file = LICENSE
long_description = file: README.md
long_description_content_type = text/markdown
license_file = LICENSE
scripts = Maidenhead.py

[options]
python_requires = >= 3.6
setup_requires =
setuptools >= 38.6
pip >= 10
twine >= 1.11
include_package_data = True
packages = find:
install_requires =

[options.extras_require]
tests =
tests =
pytest
pytest-cov
coveralls
flake8
mypy

[options.entry_points]
console_scripts =
Maidenhead = Maidenhead:main

[flake8]
max-line-length = 132
exclude = .git,__pycache__,doc/,docs/,build/,dist/,archive/
exclude = .git,__pycache__,.eggs/,doc/,docs/,build/,dist/,archive/

[coverage:run]
cover_pylib = false
omit =
/home/travis/virtualenv/*
*/site-packages/*
*/bin/*

[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
except RuntimeError
except NotImplementedError
except ImportError
except FileNotFoundError
except CalledProcessError
logging.warning
logging.error
logging.critical
if __name__ == .__main__.:
3 changes: 1 addition & 2 deletions setup.py
@@ -1,4 +1,3 @@
#!/usr/bin/env python
from setuptools import setup

setup(python_requires='>=3.6')
setup()

0 comments on commit ef7cdf6

Please sign in to comment.