From 6d26f563e58b4b6bbb5e1e5058186e5261c0ea7b Mon Sep 17 00:00:00 2001 From: androiddrew Date: Sun, 15 Oct 2017 22:01:15 -0400 Subject: [PATCH] initial commit --- .gitignore | 62 ++++++++++++++++++++++++++++++++++ HISTORY.md | 0 README.md | 1 + apistar_redis/__init__.py | 5 +++ apistar_redis/redis_backend.py | 3 ++ setup.py | 50 +++++++++++++++++++++++++++ tests/__init__.py | 0 tests/test_apistar_redis.py | 0 8 files changed, 121 insertions(+) create mode 100644 .gitignore create mode 100644 HISTORY.md create mode 100644 README.md create mode 100644 apistar_redis/__init__.py create mode 100644 apistar_redis/redis_backend.py create mode 100644 setup.py create mode 100644 tests/__init__.py create mode 100644 tests/test_apistar_redis.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fc2fd73 --- /dev/null +++ b/.gitignore @@ -0,0 +1,62 @@ + # Pycharm + .idea + + # ---> Python + # Byte-compiled / optimized / DLL files + __pycache__/ + *.py[cod] + *$py.class + + # C extensions + *.so + + # Distribution / packaging + .Python + env/ + build/ + develop-eggs/ + dist/ + downloads/ + eggs/ + .eggs/ + lib/ + lib64/ + parts/ + sdist/ + var/ + *.egg-info/ + .installed.cfg + *.egg + + # PyInstaller + # Usually these files are written by a python script from a template + # before PyInstaller builds the exe, so as to inject date/other infos into it. + *.manifest + *.spec + + # Installer logs + pip-log.txt + pip-delete-this-directory.txt + + # Unit test / coverage reports + htmlcov/ + .tox/ + .coverage + .coverage.* + .cache + nosetests.xml + coverage.xml + *,cover + + # Translations + *.mo + *.pot + + # Django stuff: + *.log + + # Sphinx documentation + docs/_build/ + + # PyBuilder + target/ diff --git a/HISTORY.md b/HISTORY.md new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md new file mode 100644 index 0000000..2dd2392 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# apistar-redis \ No newline at end of file diff --git a/apistar_redis/__init__.py b/apistar_redis/__init__.py new file mode 100644 index 0000000..27f67ad --- /dev/null +++ b/apistar_redis/__init__.py @@ -0,0 +1,5 @@ +"""Top-level package for apistar-redis.""" + +__author__ = """Drew Bednar""" +__email__ = 'drew@androiddrew.com' +__version__ = '0.1.0' \ No newline at end of file diff --git a/apistar_redis/redis_backend.py b/apistar_redis/redis_backend.py new file mode 100644 index 0000000..91cc454 --- /dev/null +++ b/apistar_redis/redis_backend.py @@ -0,0 +1,3 @@ +import redis + +from apistar import Command, Component, Settings \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..75c1aba --- /dev/null +++ b/setup.py @@ -0,0 +1,50 @@ +from setuptools import setup, find_packages + + +with open('README.md') as readme_file: + readme = readme_file.read() + +with open('HISTORY.md') as history_file: + history = history_file.read() + +requirements = [ + 'apistar', + 'redis', +] + +setup_requirements = [ + 'pytest-runner', +] + +test_requirements = [ + 'pytest', + 'coverage', +] + +setup( + name='apistar_redis', + version='0.1.0', + description="A Redis backend Component for Apistar", + long_description=readme + '\n\n' + history, + author="Drew Bednar", + author_email='drew@androiddrew.com', + url='https://github.com/androiddrew/apistar-redis', + packages=find_packages(include=['apistar_redis']), + include_package_data=True, + install_requires=requirements, + license="MIT license", + zip_safe=False, + keywords='apistar_redis', + classifiers=[ + 'Development Status :: 2 - Pre-Alpha', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: MIT License', + 'Natural Language :: English', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + ], + test_suite='tests', + tests_require=test_requirements, + setup_requires=setup_requirements, +) \ No newline at end of file diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_apistar_redis.py b/tests/test_apistar_redis.py new file mode 100644 index 0000000..e69de29