Skip to content

Commit

Permalink
Merge pull request #3 from uw-it-aca/develop
Browse files Browse the repository at this point in the history
adds travis config for pypi
  • Loading branch information
jlaney committed Feb 6, 2018
2 parents 95ef2be + 5a993fb commit 8aab8d3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
18 changes: 14 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,28 @@ sudo: false
language: python
python:
- '2.7'
- '3.4'
- '3.5'
- '3.6'
before_script:
- pip install -e .
- pip install pep8
- pip install pycodestyle
- pip install nose2
- pip install coverage
- pip install commonconf
- pip install python-coveralls
script:
- pep8 uw_hrp/ --exclude=uw_hrp/tests
- pycodestyle uw_hrp/ --exclude=uw_hrp/tests
- coverage run --source=uw_hrp uw_hrp/test.py -v
after_script:
- coveralls
before_deploy:
- find uw_hrp/ -name \*.pyc -exec rm {} \;
- echo $TRAVIS_TAG > uw_hrp/VERSION
deploy:
provider: pypi
user: uw-it-aca
skip_cleanup: true
password:
secure: FB6G0rAIAf56r4ZqPqqOiW2zMTPU8FkDrxkE63x9nnU8LNs9HJn7guAGszyZ00vXfwouM3PdOID4bqIsd0hSIo73F2Mo+DphwjxOgt0zrlXh8UQjLi4uWnrJVTi/3tw6TOa9FlElFzRM3w/LkJEFaX4h3hHAc2cCdSS6l+3cTtcP94I2xyVvscFXKkqCnkaNI7LtBE08wi1lqHs1j0nxHhfMuco6aGB73U8MiZGhOrnpmE+ymQ+EZ1E+KwpkK/U3brLp6yizXs3fLzOzy+vJj0o0QINldV04b7xaF+59mh/3JSzBXu9BOOtTdEj+/MEcK42QGaBrZ2PcJvPtuj4VN4JhoTYweQ6wE9i0e9YKPCtHEtzdZuL1m0DgOlKD5FfbzYxkMz3erGrTqImvsk0QXUMVAShMNwhsgSrsJCkDsO6AxHvbqAVDG73os8jo9dV9FePiV4uXcX//gYxVBxVgh8GrbxchXTKoNNIDM0tV+Ic2aGSNeFKUTqmWtNDkvwzUidbTO+uGKlqjdAuKUSBVmBcun/QdzAWV8QDAskZ4RSqPvtEwizefcrcewSHOEyMpvKowdeF2J2HpxJEklp/uJkW7zUZjsAmBP82sumYPk0d8CtLHou3XurMCmbNNIuFsaKRMCviUO4Gcq11oIL7ej61OZB7AFoSAdUwkO0uH8jk=
on:
tags: true
python: '3.6'
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
author="UW-IT AXDD",
author_email="aca-it@uw.edu",
include_package_data=True,
install_requires=['UW-RestClients-Core>0.8,<1.0',
'UW-RestClients-PWS>=0.1,<1.0',
'simplejson',
],
install_requires=[
'UW-RestClients-Core>=0.9.6,<1.0',
'UW-RestClients-PWS>=0.6,<1.0',
],
license='Apache License, Version 2.0',
description=('A library for connecting to the UW Human Resources API'),
long_description=README,
Expand All @@ -35,6 +35,6 @@
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.6',
],
)
2 changes: 1 addition & 1 deletion uw_hrp/appointee.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from datetime import datetime
import logging
import simplejson as json
import json
from restclients_core.exceptions import InvalidRegID, InvalidNetID,\
InvalidEmployeeID
from uw_pws import PWS
Expand Down
1 change: 0 additions & 1 deletion uw_hrp/tests/test_appointee.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def test_get_appointee(self):
self.eval(get_appointee_by_regid(
"9136CCB8F66711D5BE060004AC494FFE"))


def eval(self, ap):
self.assertTrue(ap.is_active_emp_status())
self.assertEqual(ap.netid,
Expand Down

0 comments on commit 8aab8d3

Please sign in to comment.