-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from 4Catalyzer/freshen
Drop six. Add some love.
- Loading branch information
Showing
12 changed files
with
113 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
sudo: false | ||
|
||
language: python | ||
python: | ||
- "2.7" | ||
- "3.4" | ||
- "3.5" | ||
- "pypy" | ||
|
||
env: | ||
- TOXENV=py-base | ||
- TOXENV=py-s3 | ||
|
||
cache: | ||
directories: | ||
- $HOME/.cache/pip | ||
|
||
before_install: | ||
- pip install -U pip | ||
install: | ||
- pip install -U tox | ||
|
||
script: | ||
- python setup.py test | ||
|
||
branches: | ||
only: | ||
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# flask-annex | ||
Efficient integration of external storage services for Flask. | ||
# Flask-Annex [![PyPI][pypi-badge]][pypi] | ||
Efficient integration of external storage services for | ||
[Flask](http://flask.pocoo.org/). | ||
|
||
[![PyPI version](https://badge.fury.io/py/Flask-Annex.svg)](http://badge.fury.io/py/Flask-Annex) | ||
[pypi-badge]: https://img.shields.io/pypi/v/Flask-Annex.svg | ||
[pypi]: https://pypi.python.org/pypi/Flask-Annex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import sys | ||
|
||
# ----------------------------------------------------------------------------- | ||
|
||
PY2 = sys.version_info[0] == 2 | ||
|
||
# ----------------------------------------------------------------------------- | ||
|
||
if PY2: | ||
string_types = (str, unicode) # flake8: noqa | ||
else: | ||
string_types = (str,) | ||
|
||
|
||
# From six. | ||
def with_metaclass(meta, *bases): | ||
"""Create a base class with a metaclass.""" | ||
# This requires a bit of explanation: the basic idea is to make a dummy | ||
# metaclass for one level of class instantiation that replaces itself with | ||
# the actual metaclass. | ||
class metaclass(meta): | ||
def __new__(cls, name, this_bases, d): | ||
return meta(name, bases, d) | ||
return type.__new__(metaclass, 'temporary_class', (), {}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[metadata] | ||
description-file = README.md | ||
[wheel] | ||
universal=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[tox] | ||
envlist = py{27,35}-{base,s3} | ||
|
||
[testenv] | ||
deps = | ||
flake8 | ||
|
||
commands = | ||
s3: pip install .[s3] | ||
|
||
flake8 . |