From aa70c8f2abc3b6e40550c5952d23cebe8ec43876 Mon Sep 17 00:00:00 2001 From: Ross Karchner Date: Thu, 21 Sep 2017 15:16:02 -0400 Subject: [PATCH] Configure travis to build wheels --- .travis.yml | 23 ++++++++++++++++------- setup.py | 11 ++++++----- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 28ee7d0..feba5f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,20 @@ language: python sudo: false python: - - "2.7" -install: - - pip install -r requirements.txt - - pip install -r requirements_test.txt +- '2.7' +install: +- pip install -r requirements.txt +- pip install -r requirements_test.txt script: - python manage.py test -after_success: - coveralls + - python manage.py test + - python setup.py bdist_wheel +after_success: coveralls +deploy: + provider: releases + skip_cleanup: true + api_key: + secure: MTnPUQhwYSgaTSWw6/TKhqwOnwtBj5ahRIpze6D7Rqy4551TWNNF/BmMxy1k30ml6y3/GRk2xMSbLoHkB0yQ8cVFflJvznE6Bv4dAI/iyB4Hgy977a3x2Jw6fIa4e+hGiS8BkkQFyUb/PFWUM0oKQ9xdYLa6WSIXbuaH3tUzQy4= + file_glob: true + file: dist/*.whl + on: + tags: true diff --git a/setup.py b/setup.py index a72622d..b693f05 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,12 @@ from setuptools import setup, find_packages setup( - name = "regcore", - version = "1.2.1", - license = "public domain", - packages = find_packages(), + name="regcore", + version_format='{tag}.dev{commitcount}+{gitsha}', + license="public domain", + packages=find_packages(), include_package_data=True, - package_data = { + package_data={ 'regcore': ['templates/search/indexes/regcore/regulation_text.txt'], }, install_requires=[ @@ -14,6 +14,7 @@ 'django-haystack', 'jsonschema', ], + setup_requires=['setuptools-git-version==1.0.3'], classifiers=[ 'License :: Public Domain', 'License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication'