From a5ff81b2a2349d002311b4a4a854b0e36ccc0858 Mon Sep 17 00:00:00 2001 From: jrconlin Date: Wed, 27 Apr 2016 10:22:33 -0700 Subject: [PATCH] feat: adding travis --- .coveragerc | 2 ++ .editorconfig | 12 ++++++++++++ .travis.yml | 11 +++++++++++ CHANGELOG.md | 4 ++++ README.md | 2 ++ {webpush => pywebpush}/__init__.py | 0 {webpush => pywebpush}/tests/test_webpush.py | 2 +- requirements.txt | 1 + setup.cfg | 2 +- setup.py | 4 ++-- 10 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 .coveragerc create mode 100644 .editorconfig create mode 100644 .travis.yml rename {webpush => pywebpush}/__init__.py (100%) rename {webpush => pywebpush}/tests/test_webpush.py (98%) diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..de5541b --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[report] +omit = *noseplugin* diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..6baf07d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig helps developers define and maintain consistent +# coding styles between different editors and IDEs +# editorconfig.org +root = true + +[*.{py,rst,txt}] +indent_style = space +trim_trailing_whitespace = true +indent_size = 4 +end_of_line = LF +charset = utf-8 +insert_final_newline = true diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..9208482 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: python +python: +- "2.7" +install: +- pip install -r requirements.txt +- pip install -r test-requirements.txt +script: +- nosetests +- flake8 pywebpush +after_success: +- codecov diff --git a/CHANGELOG.md b/CHANGELOG.md index 59c94e9..0de46b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.3 (2016-04-27) +feat: added travis, normalized directories + + ## 0.2 (2016-04-27) feat: Added tests, restructured code diff --git a/README.md b/README.md index ad685c1..33461bb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build_Status](https://travis-ci.org/jrconlin/pywebpush.svg?branch=master)](https://travis-ci.org/jrconlin/pywebpush) + # Webpush Data encryption library for Python This is a work in progress. diff --git a/webpush/__init__.py b/pywebpush/__init__.py similarity index 100% rename from webpush/__init__.py rename to pywebpush/__init__.py diff --git a/webpush/tests/test_webpush.py b/pywebpush/tests/test_webpush.py similarity index 98% rename from webpush/tests/test_webpush.py rename to pywebpush/tests/test_webpush.py index 7b8fabb..406a4a1 100644 --- a/webpush/tests/test_webpush.py +++ b/pywebpush/tests/test_webpush.py @@ -7,7 +7,7 @@ from mock import patch from nose.tools import eq_, ok_ import pyelliptic -from webpush import WebPusher, WebPushException +from pywebpush import WebPusher, WebPushException class WebpushTestCase(unittest.TestCase): diff --git a/requirements.txt b/requirements.txt index f903d09..34435b1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ http-ece==0.5.0 python-jose==0.5.6 requests==2.9.1 +flake8 diff --git a/setup.cfg b/setup.cfg index ef10905..7691509 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,4 +5,4 @@ cover-tests=True cover-erase=True with-coverage=True detailed-errors=True -cover-package=webpush +cover-package=pywebpush diff --git a/setup.py b/setup.py index 39480f7..1791acf 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import os from setuptools import setup -__version__ = "0.2" +__version__ = "0.3" def read_from(file): @@ -25,7 +25,7 @@ with io.open(os.path.join(here, 'CHANGELOG.md'), encoding='utf8') as f: CHANGES = f.read() setup(name="pywebpush", - version="0.2", + version=__version__, description='WebPush publication library', long_description=README + '\n\n' + CHANGES, classifiers=["Topic :: Internet :: WWW/HTTP",