refactor structure and add basic config

This commit is contained in:
Prodesire 2017-09-29 21:33:48 +08:00
parent cb24476c1c
commit 4644c93e96
10 changed files with 41 additions and 1 deletions

15
.travis.yml Normal file
View File

@ -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

View File

@ -1,2 +1,2 @@
# pylib
Useful utils, data structure for Python
Useful utils, data structure for Python 2 and 3.

0
pylib/__init__.py Normal file
View File

2
requirements-dev.txt Normal file
View File

@ -0,0 +1,2 @@
pytest
coveralls

2
setup.cfg Normal file
View File

@ -0,0 +1,2 @@
[aliases]
test=pytest

11
setup.py Normal file
View File

@ -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(),
)

10
tox.ini Normal file
View File

@ -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