diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f635a30 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: python +python: + - "2.7" + - "3.5" + - "3.6" +install: + - pip install tox-travis +script: + - tox +notifications: + email: + recipients: + - wangbinxin001@126.com + on_success: never + on_failure: always diff --git a/README.md b/README.md index 1669a64..77c5132 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # pylib -Useful utils, data structure for Python +Useful utils, data structure for Python 2 and 3. diff --git a/pylib/__init__.py b/pylib/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/py3helpers.py b/pylib/py3helpers.py similarity index 100% rename from py3helpers.py rename to pylib/py3helpers.py diff --git a/structures.py b/pylib/structures.py similarity index 100% rename from structures.py rename to pylib/structures.py diff --git a/utils.py b/pylib/utils.py similarity index 100% rename from utils.py rename to pylib/utils.py diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..60551a5 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,2 @@ +pytest +coveralls \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..b7e4789 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[aliases] +test=pytest diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..a5b3f4d --- /dev/null +++ b/setup.py @@ -0,0 +1,11 @@ +from setuptools import setup, find_packages + +setup( + name="pylib", + version="0.0.1", + description="pylib", + author="Prodesire", + url="https://github.com/Prodesire/pylib", + setup_requires=['pytest-runner'], + packages=find_packages(), +) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..3d5415c --- /dev/null +++ b/tox.ini @@ -0,0 +1,10 @@ +[tox] +envlist = py{27,35,36} + +[testenv] +passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH +platform=linux +deps=-rrequirements-dev.txt +commands= + coverage run --source=apollo setup.py test + coveralls