From 6aa18462014e9c6327b84bf39108dd5f56db37e5 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sun, 4 Nov 2012 17:49:37 -0500 Subject: Upped version to 2.2.1. --- fabfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fabfile.py') diff --git a/fabfile.py b/fabfile.py index 472c769..ea5ba06 100644 --- a/fabfile.py +++ b/fabfile.py @@ -10,7 +10,7 @@ from sys import platform def _get_versions(): """ Find and comfirm all supported versions of Python. """ vs = [] - for v in ['2.4', '2.5', '2.6', '2.7', '3.1', '3.2']: + for v in ['2.5', '2.6', '2.7', '3.1', '3.2']: with settings( hide('warnings', 'running', 'stdout', 'stderr'), warn_only=True -- cgit v1.2.3 From e57b954a1f964ec0635d189c16d130c4e6ba5479 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Wed, 5 Dec 2012 11:30:06 -0500 Subject: Upped version to 2.3.dev. Also refactored the version info to force PEP 386 compliance and to avoid the need to change the version in both the source and setup.py --- fabfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fabfile.py') diff --git a/fabfile.py b/fabfile.py index ea5ba06..16ceb1d 100644 --- a/fabfile.py +++ b/fabfile.py @@ -95,7 +95,7 @@ def build_envs(): def build_release(): """ Build a package for distribution. """ - ans = prompt('Have you updated the version in both setup.py and __init__.py?', default='Y') + ans = prompt('Have you updated the version_info in __version__.py?', default='Y') if ans.lower() == 'y': local('./setup.py sdist --formats zip,gztar') if platform == 'win32': -- cgit v1.2.3 From 9bcd7b8763627c64184b0bf147ec1830fde0a5dc Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 14 Dec 2012 13:31:41 -0500 Subject: Testing framework now runs on Python 2 & 3 unmodified. --- fabfile.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fabfile.py') diff --git a/fabfile.py b/fabfile.py index 16ceb1d..f9333e0 100644 --- a/fabfile.py +++ b/fabfile.py @@ -58,8 +58,7 @@ def build_tests(version=_pyversion[:3]): if version.startswith('3'): # Do 2to3 conversion local('2to3-%s -w -d build/test.%s/markdown' % (version, version)) - local('2to3-%s -w build/test.%s/tests' % (version, version)) - local('2to3-%s -w build/test.%s/run-tests.py' % (version, version)) + def generate_test(file): """ Generate a given test. """ -- cgit v1.2.3 From 1d43f17d0503812c2ee215fcdda3ae4ba9332da6 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 10 Jan 2013 20:20:16 -0500 Subject: Github no longer offers Downloads - no need to upload any. --- fabfile.py | 62 -------------------------------------------------------------- 1 file changed, 62 deletions(-) (limited to 'fabfile.py') diff --git a/fabfile.py b/fabfile.py index f9333e0..b50f007 100644 --- a/fabfile.py +++ b/fabfile.py @@ -107,65 +107,3 @@ def deploy_release(): build_release() local('./setup.py register') local('./setup.py upload') - upload_to_github() - -def upload_to_github(): - """ Upload release to Github. """ - # We need github API v3 but no python lib exists yet. So do it manually. - import os - import urllib2 - import base64 - import simplejson - import getpass - # Setup Auth - url = 'https://api.github.com/repos/waylan/Python-Markdown/downloads' - user = prompt('Github username:', default=getpass.getuser()) - password = prompt('Github password:') - authstring = base64.encodestring('%s:%s' % (user, password)) - # Loop through files and upload - base = 'dist/' - for file in os.listdir(base): - file = os.path.join(base, file) - if os.path.isfile(file): - ans = prompt('Upload: %s' % file, default='Y') - if ans.lower() == 'y': - # Create document entry on github - desc = prompt('Description for %s:' % file) - data1 = simplejson.dumps({ - 'name': os.path.basename(file), - 'size': os.path.getsize(file), - 'description' : desc, - #'content_type': 'text/plain' # <- let github determine - }) - req = urllib2.Request(url, data1, - {'Content-type': 'application/json'}) - req.add_header('Authorization', 'Basic %s' % authstring) - try: - response = urllib2.urlopen(req) - except urllib2.HTTPError, e: - error = simplejson.loads(e.read()) - if error['errors'][0]['code'] == 'already_exists': - print 'Already_exists, skipping...' - continue - else: - print e.read() - raise - data2 = simplejson.loads(response.read()) - response.close() - # Upload document (using curl because it is easier) - data2['file'] = file - curl = """curl \\ - -F "key=%(path)s" \\ - -F "acl=%(acl)s" \\ - -F "success_action_status=201" \\ - -F "Filename=%(name)s" \\ - -F "AWSAccessKeyId=%(accesskeyid)s" \\ - -F "Policy=%(policy)s" \\ - -F "Signature=%(signature)s" \\ - -F "Content-Type=%(mime_type)s" \\ - -F "file=@%(file)s" \\ - %(s3_url)s""" % data2 - print 'Uploading...' - local(curl) - else: - print 'Skipping...' -- cgit v1.2.3