Skip to content

Commit

Permalink
cleanup for release
Browse files Browse the repository at this point in the history
  • Loading branch information
btb committed Oct 16, 2018
1 parent a95549f commit 961d59d
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 15 deletions.
37 changes: 28 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
sudo: false
language: python
python:
- "2.7"
- "3.7-dev"
install:
- if [ $TRAVIS_PYTHON_VERSION = 2.7 ]; then pip install git+https://github.com/suds-community/suds.git#egg=suds-community ; fi
- if [ $TRAVIS_PYTHON_VERSION = 2.7 ]; then pip install 'commonconf<1.0' ; fi
- pip install -e .
- pip install pycodestyle nose2 coverage python-coveralls
- '2.7'
- '3.6'
- "3.7-dev"
before_script:
- if [ $TRAVIS_PYTHON_VERSION = 2.7 ]; then pip install git+https://github.com/suds-community/suds.git#egg=suds-community ; fi
- if [ $TRAVIS_PYTHON_VERSION = 2.7 ]; then pip install 'commonconf<1.0' ; fi
- pip install -e .
- pip install pycodestyle
- pip install nose2
- pip install coverage
- pip install coveralls
script:
- pycodestyle ems_client
- coverage run ems_client/test.py -v
- pycodestyle ems_client
- coverage run ems_client/test.py -v
after_script:
- coveralls
before_deploy:
- find ems_client/ -name \*.pyc -exec rm {} \;
- echo $TRAVIS_TAG > ems_client/VERSION
deploy:
provider: pypi
user: bradleyb
skip_cleanup: true
password:
secure: MVSYfaxEdIQTyHPL29F/OGuoaBStoUibuUQHrEWmkCEMWvNxH6hg7UR4iAJTq+FPmyo0PTXGhaFdmup7F0AQ6vGk+WUkXp2kNG9n8dFYr9JVJ22X1M4XlAal3BVQBgRPkIxraxe6ogaUCfhmwSYzJs2RIkdbAuEPvUGNEjS2/T/ZEFuHmNb5IGzHgSH6FSz1fAC3YW71BP9EDNd1H56U6DrycurXdfzpFNKcsn2Rb98UiKwA/7RKVCeskWUBNdyLSl267oy2bJ+Tk43K/t/GeaTWnpI5CjbKNHSajGXyv9gvCmjKOlz6UPiaBGf8rFBMg19D0kVgAXLSiYmrCAEyNDI/ZQeVmBEUqxZNKyXBDsA1hhACb7OIB64P3bzLKGifZl1xLeerGPhubSChXNQXItl8KQb72369b72YghbnpRvO9DsdNPrSiQh8NVEGgErUHg1wBK2PkYJZE+BhWaWM64WsaUrEuHCMDk0HSSEnqxq7UE/7aVEtS2wZzeT4RAqJQ9TkN7A2rya2cVYejk0vtpV8oNmVe+mwpIO3Wk3vxBuSvs3V+kIwh0NnYn8vr+/EcjQSqbh1Iwe+BIWmSC1iiTVaKqn1UJ1L7BD30raKYsgDQ1wRPIlNsh4sQ2ky1Gr7hgQoXttab3TQ9wQnbC8VEv7uHeLiD8wymKsmm4Midmw=
on:
tags: true
python: '2.7'
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include ems_client/VERSION
recursive-include ems_client *
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
# ems-client
UW EMS SOAP API Client
===========================

A client for the EMS SOAP API

Installation
------------

**Project directory**

Install uw-ems-client in your project.

$ cd [project]
$ pip install UW-EMS-Client

Project settings.py
------------------

**EMS API settings**

EMS_API_HOST = '<EMS Server URL>'
EMS_API_USERNAME = '<EMS API user>'
EMS_API_PASSWORD = '<EMS API password>'
1 change: 1 addition & 0 deletions ems_client/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1
32 changes: 27 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
from setuptools import find_packages, setup
import os
from setuptools import setup

# The VERSION file is created by travis-ci, based on the tag name
version_path = 'ems_client/VERSION'
VERSION = open(os.path.join(os.path.dirname(__file__), version_path)).read()
VERSION = VERSION.replace("\n", "")

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

setup(
name='ems_client',
version='0.1',
description='EMS client',
packages=find_packages(),
name='UW-EMS-Client',
version=VERSION,
packages=['ems_client'],
include_package_data=True,
install_requires=[
'commonconf>=0.6',
'lxml',
Expand All @@ -13,5 +22,18 @@
'UW-RestClients-Core',
],
license='Apache License, Version 2.0',
description='A client for the EMS SOAP API',
long_description='README.md',
url='https://github.com/uw-it-cte/uw-ems-client',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Topic :: Office/Business :: Scheduling',
],
test_suite='runtests.runtests',
)

0 comments on commit 961d59d

Please sign in to comment.