Skip to content

Commit

Permalink
Merge pull request #21 from pycontribs/develop
Browse files Browse the repository at this point in the history
v0.2.10
  • Loading branch information
ssbarnea authored Oct 6, 2017
2 parents 250f3c9 + 1d8899d commit 22cebd9
Show file tree
Hide file tree
Showing 8 changed files with 170 additions and 233 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ pytestdebug.log
test-distribute.sh
.idea/misc.xml
.idea/tendo.iml
/ChangeLog
/AUTHORS
123 changes: 76 additions & 47 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,86 @@
language: python
sudo: false
matrix:
fast_finish: false
os:
- linux
python:
- '2.6'
- '2.7'
- '3.4'
- '3.5'
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: 3.4
env: TOXENV=py34
- python: 3.5
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36
- python: pypy
env: TOXENV=pypy
- python: 2.7
env: TOXENV=docs
branches:
only:
- master
- develop
install:
- pip -q install -r requirements.txt
- pip -q install -r requirements-dev.txt
- pip -q install -r requirements-opt.txt || echo "skipped"
- pip -q install coveralls
- pip -q --log dist/pip.log install --upgrade pip setuptools tox-travis py wheel
- python setup.py sdist bdist_wheel install
- pip install ./dist/*.whl
- pip --version
script:
- curl --silent -Lo travis_after_all.py https://raw.github.com/pycontribs/travis_after_all/master/travis_after_all.py
- travis_wait python setup.py test
- export PACKAGE_NAME=$(python setup.py --name)
- export PACKAGE_VERSION=$(python setup.py --version)
- python setup.py --version
- tox --installpkg ./dist/*.whl --travis-after
# validates that the build source distribution is installable using the old easy_install
- pip uninstall -y $PACKAGE_NAME && easy_install ./dist/$PACKAGE_NAME-*.tar.gz
after_success:
- python travis_after_all.py
- export $(cat .to_export_back)
- |
if [ "$BUILD_LEADER" = "YES" ]; then
if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
echo "All jobs succeeded! PUBLISHING..."
else
echo "Some jobs failed"
fi
fi
- coveralls
- python setup.py build_sphinx upload_docs release
after_failure:
- python travis_after_all.py
- export $(cat .to_export_back)
- |
if [ "$BUILD_LEADER" = "YES" ]; then
if [ "$BUILD_AGGREGATE_STATUS" = "others_failed" ]; then
echo "All jobs failed"
else
echo "Some jobs failed"
fi
fi
after_script:
- echo leader=$BUILD_LEADER status=$BUILD_AGGREGATE_STATUS
branches:
only:
- master
- coveralls
- bash <(curl -s https://codecov.io/bash)
- requires.io update-site -t ac3bbcca32ae03237a6aae2b02eb9411045489bb -r
notifications:
hipchat: 7d72ba6ba0bf07248f17e0a6a1a899@DevOps
email:
- pycontribs@googlegroups.com
- sorin.sbarnea@gmail.com

deploy:
provider: pypi
- provider: releases
api_key:
secure: G19YtkGAX0aJ1oyd/7eRj1KYdsmAkjkfU2UISvsjh/68ec1+9qtPpN7BbkFYZYMjSx0BtS0SEEA7Vdl4F9DI9Zzqahbj7WzDLFe9/4aZKM/ztfKWR6CNAYaMazAKS5W7r9pPkBBDIIJ9zCqvV7FRzjewEpfTwFzwUdY+IpxEsAM=
file:
- dist/$PACKAGE_NAME-$PACKAGE_VERSION.tar.gz
- dist/$PACKAGE_NAME-$PACKAGE_VERSION-py2.py3-none-any.whl
- ChangeLog
skip_cleanup: true
on:
repo: pycontribs/tendo
tags: true
python: 2.7
condition: $TOXENV != docs
- provider: pypi
user: sorin
password:
secure: "E0cjANF7SLBdYrsnWLK8X/xWznqkF0JrP/DVfDazPzUYH6ynFeneyofzNJQPLTLsqe1eKXhuUJ/Sbl+RHFB0ySo/j/7NfYd/9pm8hpUkGCvR09IwtvMLgWKp3k10NWab03o2GOkSJSrLvZofyZBGR40wwu2O9uXPCb2rvucCGbw="
distributions: "bdist_wheel"
before_deploy:
- echo "before deploy..."
after_deploy:
- echo "after deploy..."
secure: E0cjANF7SLBdYrsnWLK8X/xWznqkF0JrP/DVfDazPzUYH6ynFeneyofzNJQPLTLsqe1eKXhuUJ/Sbl+RHFB0ySo/j/7NfYd/9pm8hpUkGCvR09IwtvMLgWKp3k10NWab03o2GOkSJSrLvZofyZBGR40wwu2O9uXPCb2rvucCGbw=
distributions: sdist bdist_wheel
skip_cleanup: true
on:
tags: true
python: 2.7
condition: $TOXENV != docs
branch: master
- provider: pypi
server: https://testpypi.python.org/pypi
user: sorins
password:
secure: E0cjANF7SLBdYrsnWLK8X/xWznqkF0JrP/DVfDazPzUYH6ynFeneyofzNJQPLTLsqe1eKXhuUJ/Sbl+RHFB0ySo/j/7NfYd/9pm8hpUkGCvR09IwtvMLgWKp3k10NWab03o2GOkSJSrLvZofyZBGR40wwu2O9uXPCb2rvucCGbw=
distributions: sdist bdist_wheel
skip_cleanup: true
on:
tags: false
python: 2.7
condition: $TOXENV != docs
branch: develop
env:
global:
- secure: fuXwQL+KHQ96XkAFl2uQc8eK8dAjrgkup46tck/UGjVpdv1PT/yHmBKrvpFjDa50ueGbtBwTdKAwhyAmYuiZCk2IYHzdvBylCZBBji2FSpaTM59CVwgkVT6tx3HHO83X0mEX6ih9TJvZD5XhX+YUjopnseRXRq3ey3JZJXWN4RM=
- secure: "pGQGM5YmHvOgaKihOyzb3k6bdqLQnZQ2OXO9QrfXlXwtop3zvZQi80Q+01l230x2psDWlwvqWTknAjAt1w463fYXPwpoSvKVCsLSSbjrf2l56nrDqnoir+n0CBy288+eIdaGEfzcxDiuULeKjlg08zrqjcjLjW0bDbBrlTXsb5U="
40 changes: 32 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,43 @@
tendo
======

Tendo is a python module that adds basic functionality that is
not (yet) provided by Python.
Tendo is a python module that adds basic functionality that is
not (yet) provided by Python.

.. image:: https://img.shields.io/pypi/v/tendo.svg
:target: https://pypi.python.org/pypi/tendo/

.. image:: https://img.shields.io/pypi/l/tendo.svg
:target: https://pypi.python.org/pypi/tendo/

.. image:: https://img.shields.io/pypi/wheel/tendo.svg
:target: https://pypi.python.org/pypi/tendo/

.. image:: https://img.shields.io/codeclimate/github/pycontribs/tendo.svg
:target: https://codeclimate.com/github/pycontribs/tendo

------------

.. image:: https://readthedocs.org/projects/tendo/badge/?version=master
:target: http://tendo.readthedocs.io

.. image:: https://api.travis-ci.org/pycontribs/tendo.svg?branch=master
:target: https://travis-ci.org/pycontribs/tendo

.. image:: https://img.shields.io/bountysource/team/pycontribs/activity.svg
:target: https://www.bountysource.com/teams/pycontribs/issues?tracker_ids=3650997

.. image:: https://requires.io/github/pycontribs/tendo/requirements.svg?branch=master
:target: https://requires.io/github/pycontribs/tendo/requirements/?branch=master
:alt: Requirements Status

[![Build Status](https://drone.io/github.com/pycontribs/tendo/status.png)](https://drone.io/github.com/pycontribs/tendo/latest)
[![Build Status](https://travis-ci.org/pycontribs/tendo.svg?branch=master)](https://travis-ci.org/pycontribs/tendo)

* [transparent Unicode support for text file operations (BOM detection)](https://tendo.readthedocs.org/en/latest/#module-tendo.singleton)
* [console logging coloring](https://tendo.readthedocs.org/en/latest/#module-tendo.colorer)
* enable you to use symlinks under windows
* [python tee implementation](https://tendo.readthedocs.org/en/latest/#module-tendo.colorer) for executing extenal programs and redirecting their output to both console/file)
* [python tee implementation](https://tendo.readthedocs.org/en/latest/#module-tendo.colorer) for executing external programs and redirecting their output to both console/file)
* [improved execfile](https://tendo.readthedocs.org/en/latest/#module-tendo.execfile2)

Documentation
------------------------------
Check:
Expand All @@ -22,7 +47,7 @@ Check:

Requirements and compatibility
------------------------------
* python 2.5-3.2
* python 2.7-3.6
* distribute (for installation)
* tox for running tests

Expand All @@ -37,4 +62,3 @@ TODO
----
* implement testing, see test frameworks http://pycheesecake.org/wiki/PythonTestingToolsTaxonomy
* implement all PEP8 recomandations

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pbr
pip
six>=1.7.2
setuptools
45 changes: 43 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,43 @@
[metadata]
description-file = README
name = tendo

author = Sorin Sbarnea
author-email = sorin.sbarnea@gmail.com
maintainer = Sorin Sbarnea
maintainer-email = sorin.sbarnea@gmail.com
summary = A Python library that extends some core functionality
description-file = README.rst
home-page = https://github.com/pycontribs/tendo
license = BSD
classifier =
Development Status :: 5 - Production/Stable
Environment :: Other Environment
Intended Audience :: Developers
Intended Audience :: Information Technology
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Internet :: WWW/HTTP

keywords =
tendo
tee
unicode
colorer
singleton

[files]
packages =
tendo

[entry_points]
pbr.config.drivers =
plain = pbr.cfg.driver:Plain
[bdist_wheel]
universal = 1

Expand All @@ -12,7 +49,7 @@ all_files = 1
[upload_sphinx]
upload-dir = docs/build/html

[pytest]
[tool:pytest]
norecursedirs = . .svn _build tmp* lib/third lib *.egg bin distutils build docs demo
python_files = *.py
addopts = -p no:xdist --ignore=setup.py --tb=long --capture=fd -rxX --maxfail=10 --pep8 tendo
Expand All @@ -25,6 +62,10 @@ addopts = -p no:xdist --ignore=setup.py --tb=long --capture=fd -rxX --maxfail=1
rsyncdirs = . tendo demo docs
rsyncignore = .hg .git
pep8ignore = E501 E265 E127 E901 E128 E402
filterwarnings = default
ignore:.*mode is deprecated:Warning
ignore:unclosed file.*:Warning
ignore:can't resolve package from.*:Warning
[flake8]
exclude = migrations,__pycache__,build,bmll/config.py,env,src,.tox
Expand Down
Loading

0 comments on commit 22cebd9

Please sign in to comment.