From 0d63128c40aec15a958dddf181c13e0db1c7908b Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 28 Jul 2018 17:42:41 -0700 Subject: [PATCH] Preparing v0.2, first release to PyPI --- .travis.yml | 18 ++++++++++++++++++ setup.py | 4 +++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b239bb3..bdc2635 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,3 +13,21 @@ script: cache: directories: - $HOME/.cache/pip + +jobs: + include: + - stage: release tagged version + if: tag IS present + language: python + python: 3.6 + script: + - pip install -U pip wheel + deploy: + - provider: pypi + user: simonw + distributions: bdist_wheel + password: ${PYPI_PASSWORD} + on: + branch: master + tags: true + repo: simonw/sqlite-utils diff --git a/setup.py b/setup.py index 64d9979..b6c3809 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,8 @@ from setuptools import setup, find_packages import io import os +VERSION = "0.2" + def get_long_description(): with io.open( @@ -17,7 +19,7 @@ setup( long_description=get_long_description(), long_description_content_type="text/markdown", author="Simon Willison", - version="0.2", + version=VERSION, license="Apache License, Version 2.0", packages=find_packages(), install_requires=["click==6.7"],