Skip to content

Commit

Permalink
Deploy to pypi on tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffFranklin committed Dec 21, 2018
1 parent e8954d9 commit c9618e0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
19 changes: 15 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
language: python
python:
- "2.7"
- "3.6"
- '2.7'
- '3.6'
install:
- pip install -r requirements.txt
- set | grep TRAVIS
- set | grep GIT
before_script:
- pip install coverage
- pip install pep8
script:
- pep8 --max-line-length=120 resttools
- nosetests --with-coverage --cover-package=resttools
- nosetests --with-coverage --cover-package=resttools
after_script:
- coverage report

before_deploy:
- git describe --tags > resttools/VERSION
deploy:
provider: pypi
user: jeffrouw
password:
secure: Hk16fdmiYvODsFjQl6hVF8LwphRUzIXOO7KA8bD3m2xM6hw9a01Tf0sv37wSUEJSJOURv1K8MBSOdE7yFGaYB5it7DvGI3ozGX2RMcCdkKWD6wtRHxTy1r8iOpQXEaOkYo32ZbVYQGAjVoJHlIf5U/IkyJAV2khJwiWd66PTX/8=
on:
tags: true
python: '3.6'
2 changes: 2 additions & 0 deletions resttools/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Updated by CI at deploy-time
0.0.1
16 changes: 12 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# from distutils.core import setup
from setuptools import setup, find_packages
setup(name='resttools',
version='1.0',
description='UW-IT REST library',

VERSION_FILE = os.path.join(BASE_DIR, 'resttools', 'VERSION')
with open(VERSION_FILE) as f:
VERSION = f.read_lines()[-1].strip()

setup(name='uw-iam-resttools',
version=VERSION,
url='https://github.com/UWIT-IAM/iam-resttools',
author='UW-IT Identity and Access Management',
author_email='help@uw.edu',
description='UW-IT REST library for IAM APIs',
license='Apache License, Version 2.0',
packages=find_packages(),
include_package_data=True,
install_requires=['lxml', 'python-dateutil', 'urllib3', 'jinja2', 'six']
Expand Down

0 comments on commit c9618e0

Please sign in to comment.