Skip to content

Commit

Permalink
Merge branch 'release/0.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
erichiggins committed Apr 29, 2016
2 parents 5de6ef5 + ec37c24 commit 484da0d
Show file tree
Hide file tree
Showing 11 changed files with 83 additions and 119 deletions.
32 changes: 17 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
sudo: false
language: python
python:
- "2.7"
- "pypy"

# command to install dependencies
- '2.7'
- pypy
before_install:
- ./setup.sh
- source .dev_env/bin/activate
install:
- pip install .
- pip install -r requirements.txt

# environment dependencies
before_script:
- curl -O https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.27.zip
- unzip -q google_appengine_1.9.27.zip
- ln -s google_appengine/google google

# command to run tests
- pip install --upgrade setuptools
- pip install .
- pip install -r requirements.txt
script:
- python setup.py test
- python setup.py test
deploy:
provider: pypi
user: erichiggins
on:
tags: true
password:
secure: Ilet7Gy13l3rHmYDe35uxtGdhj1L3Q9p4KTTe/Q4Oo6CobvvsYgctfDGOFgwrNzy+vYDm9P4usUxu3Em//X46CQ5510YZXkYYQV57CPEbgWRx0Bz1ki221PMtuZkA38PEj5SWBQtQxvseDY7bKbP48XBvrI2GRzcJ8MXBKaPPBI=
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.2.2
=====
- Build and file clean-ups.
- Configure Travis CI to auto-deploy to PyPi.


0.2.1
=====
- Patch version in order to replace uploaded sdist files on PyPi.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.1
0.2.2
21 changes: 0 additions & 21 deletions gaek/.editorconfig

This file was deleted.

43 changes: 0 additions & 43 deletions gaek/.gitignore

This file was deleted.

16 changes: 0 additions & 16 deletions gaek/.travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion gaek/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = 'Eric Higgins'
__email__ = 'erichiggins@gmail.com'
__version__ = '0.2.1'
__version__ = '0.2.2'
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
python-dateutil>=2.4.2
PyYAML==3.10
PyYAML~=3.10
1 change: 1 addition & 0 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nose~=1.3.7
52 changes: 31 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,45 @@
from setuptools import setup
from setuptools import find_packages

# https://bugs.python.org/issue15881
try:
import multiprocessing
except ImportError:
pass

with open('VERSION') as version_file:
VERSION = version_file.readline().rstrip('\n')

with open('requirements.txt') as requirements_file:
requirements = requirements_file.read()
def readme():
with open('README.md') as fp:
return fp.read()


def version():
with open('VERSION') as fp:
return fp.readline().rstrip('\n')


def requirements():
with open('requirements.txt') as fp:
return fp.read()


def test_requirements():
with open('requirements_test.txt') as fp:
return fp.read()

with open('test_requirements.txt') as test_requirements_file:
test_requirements = test_requirements_file.read()

setup(
name='gaek',
version=VERSION,
version=version(),
description="A collection of useful tools for Python apps running on Google App Engine.",
long_description=readme(),
author="Eric Higgins",
author_email='erichiggins@gmail.com',
url='https://github.com/erichiggins/gaek',
packages=find_packages(exclude=['tests']),
install_requires=requirements,
license="BSD",
keywords='gaek',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
],
test_suite='tests',
tests_require=test_requirements
)
packages=find_packages(exclude=['tests', 'google']),
include_package_data=True,
install_requires=requirements(),
test_suite='nose.collector',
tests_require=test_requirements(),
zip_safe=False)
25 changes: 25 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

GAE_SDK_SHA1='abe54d95c4ce6ffc35452e027ca701f5d21dd56a'
GAE_SDK_FILE='google_appengine_1.9.35.zip'

# Create virtual environment.
echo 'Creating virtual environment...'
virtualenv .dev_env
source .dev_env/bin/activate
pip install --upgrade ndg-httpsclient
pip install --upgrade pip

# Download the App Engine SDK.
echo "Downloading $GAE_SDK_FILE..."
curl -O https://storage.googleapis.com/appengine-sdks/featured/$GAE_SDK_FILE

echo "Verifying $GAE_SDK_FILE..."
shasum $GAE_SDK_FILE

echo "Unzipping $GAE_SDK_FILE..."
unzip -q $GAE_SDK_FILE -d .dev_env/
rm $GAE_SDK_FILE
cd .dev_env/lib/python2.7/site-packages/
ln -s ../../../google_appengine/google google
cd ../../../../

0 comments on commit 484da0d

Please sign in to comment.