diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-04-30 08:13:23 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-04-30 08:13:23 -0400 |
commit | 9e040522b817710e6a01d5c995972e57fde0cb5f (patch) | |
tree | 44dc4ad406f60898d0495a1e5d0ada52b5828ae8 | |
parent | 3057176c813a922e0c57660259c801929ac85b7c (diff) | |
download | cherrypy-9e040522b817710e6a01d5c995972e57fde0cb5f.tar.gz |
Replace release script with Travis integrated deployment. Ref #1416.
-rw-r--r-- | .travis.yml | 22 | ||||
-rw-r--r-- | release.py | 62 |
2 files changed, 22 insertions, 62 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..19f7ab67 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +language: python +python: +- 2.6 +- 2.7 +- 3.2 +- 3.3 +- 3.4 +- 3.5 +- pypy +- pypy3 +script: +- nosetests -s . +deploy: + provider: pypi + on: + tags: true + all_branches: true + python: 3.5 + user: jaraco + password: + secure: jWITC3NYIFEts9ssH6ILy4BmloZ9pA0R7xIgR0L++2GUXkViIDb0DGgyTr0Godiu1fiip661Ur6L+Bu9hDYcEFG5otvOf3Mg2on+2bURXyfH/MaLU6+BZmYy3lG4EISgRHevhynWYiKOftXdSZcEEjUNTa+YTBw2nnYCFt9l2Ow= + distributions: sdist bdist_wheel diff --git a/release.py b/release.py deleted file mode 100644 index 14af0069..00000000 --- a/release.py +++ /dev/null @@ -1,62 +0,0 @@ -""" -Use jaraco.packaging with this script to cut a release. After installing -jaraco.packaging, invoke: - -python -m jaraco.packaging.release -""" - -from __future__ import print_function - -import sys -import os -import shutil -import importlib -import textwrap - -files_with_versions = ( - 'setup.py', - 'cherrypy/__init__.py', - 'cherrypy/wsgiserver/wsgiserver2.py', - 'cherrypy/wsgiserver/wsgiserver3.py', -) - - -def check_wheel(): - """ - Ensure 'wheel' is installed (required for bdist_wheel). - """ - try: - importlib.import_module('wheel') - except ImportError: - print("CherryPy requires 'wheel' be installed to produce wheels.", - file=sys.stderr) - raise SystemExit(5) - - -def before_upload(): - check_wheel() - remove_files() - -test_info = textwrap.dedent(""" - Run tests with `nosetests -s ./` on Windows, Linux, and Mac on at least - Python 2.4, 2.5, 2.7, and 3.2. - """).lstrip() - -dist_commands = 'sdist', 'bdist_wheel' - - -def remove_files(): - if os.path.isfile('MANIFEST'): - os.remove('MANIFEST') - if os.path.isdir('dist'): - shutil.rmtree('dist') - - -def announce(): - print('Distributions have been uploaded.') - print('Please ask in IRC for others to help you test this release.') - print("Please confirm that the distro installs properly " - "with `easy_install CherryPy=={version}`.".format(**globals())) - print("Please change the Wiki: Home page (news), CherryPyDownload") - print("Please announce the release on newsgroups, mailing lists, " - "and IRC /topic.") |