From f42857f44ef9a7ac85fe8ccefe1966c069fe0ce2 Mon Sep 17 00:00:00 2001 From: Akshay Nanavati Date: Thu, 25 Aug 2016 14:23:30 -0700 Subject: [PATCH 1/4] Update README.rst --- README.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.rst b/README.rst index c091de9..25e9296 100644 --- a/README.rst +++ b/README.rst @@ -17,8 +17,7 @@ Build Status Useful Links ------------ -- `Developer Documentation `_ - - TODO fill in with public doc link +- `Developer Documentation `_ - `Blog Post `_ with more in depth design decisions From 4128ca93a60051957d17553e418cf6be47045e5b Mon Sep 17 00:00:00 2001 From: Akshay Nanavati Date: Thu, 25 Aug 2016 15:05:08 -0700 Subject: [PATCH 2/4] Set up travis for pip builds --- .travis.yml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8200481..c53c027 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,26 @@ language: python python: - - 2.7.8 - - 2.7 +- 2.7.8 +- 2.7 env: - - SA_VERSION=1.0.0 - - SA_VERSION=1.0.4 - - SA_VERSION=1.0.14 +- SA_VERSION=1.0.0 +- SA_VERSION=1.0.4 +- SA_VERSION=1.0.14 cache: directories: - - $HOME/.cache/pip - - $HOME/.pyenv + - "$HOME/.cache/pip" + - "$HOME/.pyenv" install: - - make clean install - - pip install SQLAlchemy==$SA_VERSION +- make clean install +- pip install SQLAlchemy==$SA_VERSION script: - - make lint tests +- make lint tests +deploy: + provider: pypi + user: akshayn + password: + secure: WpxFwuCDT0+iwjEi4MBXQkJZjHwO7H8p9tnepWCoIYWMUV/lK6i4VTWT9M43sTgXn6ICVM30DNfjxQ1zVfHnuhmWmhfIL2Zk9w+KL56aCNXvAH4eLUIp1daemi5NxVn+Yb6hB8eRs2po1KdFBBd1sTHhFDHECIqNqmQ/EtswALqLcp2pNko9ridCOPZDSD6w4qUkq9BHbZPHwqXRYnCdl7OFOchpCa0PvWPGkBc3QYYrgOw/2RNAamzg3bMLI0Qjz3r4SE3z1YlIf31UyeTDToYRdTKklMmj69vFsFg8IPWVB2wh6vEt+WaulLgDEios9vALwePJGeHMuX/zEfymaTN7uwUpZGkcnWNXYv6JNAoFzlM9E3MTqjnwex5kqaRCPqtQ9S5uywkF9UCeXWC8pw50D31RjQLPnsyjxqwweNaG1YYcHRJGkiRa8wJhpYJ8TSm2wROs44bPYC9FmD039MsSlIUg9OtpqzzO2X/uEg1dNbehMfyz8eYg5yuGtcvfhbg8VVTUvw0Eif2IjWDclW7T43FAXOOMPaFJX4LbI3iug6AwX1owOSBw09ffX0wJ4ny4jQdr1wfU/M45AqOSlRGR2+heyTp6Q/svalK9jjSpgDfY+HUzVR3oW/6vL3fN4T6VHZLRTm7K0tkx3IMKhFyDcqe3xYQOK5G3ZkknB3Y= + on: + tags: true + distributions: sdist bdist_wheel + repo: NerdWallet/versionalchemy From f75379bfc7830104ca2a66e112fd52f407b25c01 Mon Sep 17 00:00:00 2001 From: Akshay Nanavati Date: Thu, 25 Aug 2016 15:05:19 -0700 Subject: [PATCH 3/4] Update setup files for pypi --- setup.cfg | 3 +++ setup.py | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index df48e61..7480697 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,3 +2,6 @@ max-complexity = 10 max-line-length = 100 exclude = *env,docs + +[metadata] +description_file = README.rst diff --git a/setup.py b/setup.py index b4e8212..fde6c92 100644 --- a/setup.py +++ b/setup.py @@ -1,16 +1,17 @@ from setuptools import setup -install_requires = [ +VERSION = '0.1.0' +INSTALL_REQUIRES = [ 'SQLAlchemy>=1.0.0', 'simplejson', ] setup( name='versionalchemy', - version='0.1.0', + version=VERSION, packages=['versionalchemy', 'versionalchemy/api', 'versionalchemy/models'], - install_requires=install_requires, + install_requires=INSTALL_REQUIRES, include_package_data=True, author='Akshay Nanavati', author_email='akshay@nerdwallet.com', @@ -18,4 +19,5 @@ description='Versioning library for relational data', long_description='', url='https://github.com/NerdWallet/versionalchemy', + download_url='https://github.com/NerdWallet/versionalchemy/tarball/{}'.format(VERSION), ) From fed10eb0ef4633928c656d3f776384b8ab5d9933 Mon Sep 17 00:00:00 2001 From: Akshay Nanavati Date: Thu, 25 Aug 2016 15:10:34 -0700 Subject: [PATCH 4/4] Update README.rst --- README.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.rst b/README.rst index 25e9296..9509c51 100644 --- a/README.rst +++ b/README.rst @@ -40,6 +40,11 @@ Contributing - Respond to any comments. The PR will be merged if the travis CI build passes and the code changes are deemed sufficient by the admin +Style +~~~~~ +- Follow PEP8 with a line length of 100 characters +- Prefer parenthesis to ``\`` for line breaks + License ------- `MIT License `_