Skip to content

Commit

Permalink
refactor structure and add basic config
Browse files Browse the repository at this point in the history
  • Loading branch information
Prodesire committed Sep 29, 2017
1 parent cb24476 commit 4644c93
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: python
python:
- "2.7"
- "3.5"
- "3.6"
install:
- pip install tox-travis
script:
- tox
notifications:
email:
recipients:
- [email protected]
on_success: never
on_failure: always
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# pylib
Useful utils, data structure for Python
Useful utils, data structure for Python 2 and 3.
Empty file added pylib/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pytest
coveralls
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[aliases]
test=pytest
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4644c93

Please sign in to comment.