Skip to content

Commit

Permalink
Support for PyPI (#44)
Browse files Browse the repository at this point in the history
* Add support to Travis for Python 2/3 and enable automatic upload to PyPI
  • Loading branch information
mottosso committed Jun 8, 2016
1 parent 430976a commit c1e9bf5
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 14 deletions.
51 changes: 37 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,49 @@
language: python

sudo: required
dist: trusty

python:
- 2.7
- 3.4

addons:
apt:
packages:
- qt4-qmake
- libqt4-dev
services:
- docker

env:
QT_VERBOSE=true

virtualenv:
# apt-install ends up amongst system packages
system_site_packages: true

install:
- pip install --upgrade pip

# Preferred PySide installation, it is faster
# Based on http://stackoverflow.com/a/24545890/478949
- pip install PySide --no-index --find-links https://parkin.github.io/python-wheelhouse/;
- python ~/virtualenv/python${TRAVIS_PYTHON_VERSION}/bin/pyside_postinstall.py -install

- pip install -r requirements.txt
- sudo apt-get install -y qt4-qmake libqt4-dev
- sudo apt-get install -y python-pyside python3-pyside
- python -c "import PySide;print(PySide)"
- pip install pyblish-base

# Enable virtual framebuffer, this way we can instantiate
# a QApplication and create widgets.
# https://docs.travis-ci.com/user/gui-and-headless-browsers/
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start

script:
- python run_tests.py
- python run_tests.py

after_success:
- coveralls
- coveralls

deploy:
provider: pypi
user: mottosso
password:
secure: IEY2MxMpwdoq8JbAZsX9VTrlpmBmh82ZJl2v4+mWNj9FxP8T76LhhfSwr2+P0GwFwx4I2z8wvzqz7lu+CQN/jRylsDyrFayac89+XH0OMaCk/yNk7VBmcigDJus1HZ3nzgTrP/hmxUf51i0wYvLYPqO9d77DIrv918BmNy+lMQIHjJ7tIQYtm3vWxmA84HVsZxdNUCDyEbFLg0DwV9xtw20j7txd0SrQnPO3gygKJOFOVRaYNB1r79FXNObQKAH8yh5t1viuz4DuCWIlvdHRuPs+/NUZDjQIWZHo4OdSr921oK19xr1q9NyF2RruII+rttBo2g2wMIQ9+QrmVfq7JSy79wbPcsBeqUEOGLV5sPrHsP6bbPn902rBoI0q6rLeLgvutHckcr9sqmGJz1wpIhqQGfISbQ9ZoyJIxlOXoEewi/d9XsZiROXqjHWHUmT1HJHL0nxQ6lLJyYVz4WIkrkIEuTL5X64gHwcxFf1UQsYkBf89lKVomxOWwIZsf/ttiLt2eUzE8dW45E6jFrlaUJBGE/It8TYHZ1VcTNdsyt369wKCgnQwb+6Cj4uHYaXLDsRxjllKAApbVFCfO1fWANhGeC0H7jgcf/qFl1kVOvb4o71/lzWpR9qzKe7uswUo9GXvKRe8GkO1W+BgHcAyDfu6GSR1q1QIlafDp82JIZU=
on:
tags: true
repo: pyblish/pyblish-lite
python: 2.7
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ Python 2.6+ and Python 3.x+
<br>
<br>

### Installation

You can install via pip, or clone manually.

```bash
$ pip install pyblish-lite
$ python -m pyblish_lite --debug # Test install
```

Requires [pyblish-base](https://github.com/pyblish/pyblish-base).

### Usage

Pyblish Lite runs both standalone and from a host and requires either PySide of PyQt bindings to be readily available.
Expand Down

0 comments on commit c1e9bf5

Please sign in to comment.