diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..ab30e9a --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include *.txt diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..501af42 --- /dev/null +++ b/Makefile @@ -0,0 +1,45 @@ +# This file has been auto-generated. +# All changes will be lost, see Projectfile. +# +# Updated at 2016-12-09 05:04:48.163360 + +PYTHON ?= $(shell which python) +PYTHON_BASENAME ?= $(shell basename $(PYTHON)) +PYTHON_REQUIREMENTS_FILE ?= requirements.txt +PYTHON_REQUIREMENTS_DEV_FILE ?= requirements-dev.txt +QUICK ?= +VIRTUAL_ENV ?= .virtualenv-$(PYTHON_BASENAME) +PIP ?= $(VIRTUAL_ENV)/bin/pip +PYTEST ?= $(VIRTUAL_ENV)/bin/pytest +PYTEST_OPTIONS ?= --capture=no --cov=bonobo --cov-report html + +.PHONY: clean install install-dev lint test + +# Installs the local project dependencies. +install: $(VIRTUAL_ENV) + if [ -z "$(QUICK)" ]; then \ + $(PIP) install -Ur $(PYTHON_REQUIREMENTS_FILE) ; \ + fi + +# Installs the local project dependencies, including development-only libraries. +install-dev: $(VIRTUAL_ENV) + if [ -z "$(QUICK)" ]; then \ + $(PIP) install -Ur $(PYTHON_REQUIREMENTS_DEV_FILE) ; \ + fi + +# Cleans up the local mess. +clean: + rm -rf build + rm -rf dist + +# Setup the local virtualenv, or use the one provided by the current environment. +$(VIRTUAL_ENV): + virtualenv -p $(PYTHON) $(VIRTUAL_ENV) + $(PIP) install -U pip\>=8.1.2,\<9 wheel\>=0.29,\<1.0 + ln -fs $(VIRTUAL_ENV)/bin/activate activate-$(PYTHON_BASENAME) + +lint: install-dev + $(VIRTUAL_ENV)/bin/pylint --py3k bonobo -f html > pylint.html + +test: install-dev + $(PYTEST) $(PYTEST_OPTIONS) tests diff --git a/Projectfile b/Projectfile new file mode 100644 index 0000000..3a07c8f --- /dev/null +++ b/Projectfile @@ -0,0 +1,32 @@ +# bonobo (see github.com/python-edgy/project) + +name = 'bonobo' +description = '' +license = 'Apache License, Version 2.0' + +url = '' +download_url = '' + +author = '' +author_email = '' + +enable_features = { + 'make', + 'pytest', + 'git', + 'pylint', + 'python', +} + +extras_require = { + 'dev': [ + 'coverage >=4.0,<4.2', + 'mock >=2.0,<2.1', + 'nose >=1.3,<1.4', + 'pylint >=1.6,<1.7', + 'pytest >=2.9,<2.10', + 'pytest-cov >=2.3,<2.4', + 'sphinx', + 'sphinx_rtd_theme', + ], +} diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..e69de29 diff --git a/bonobo/__init__.py b/bonobo/__init__.py new file mode 100644 index 0000000..189210a --- /dev/null +++ b/bonobo/__init__.py @@ -0,0 +1 @@ +from __future__ import absolute_import, print_function, unicode_literals diff --git a/classifiers.txt b/classifiers.txt new file mode 100644 index 0000000..e69de29 diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..aefbcb6 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1 @@ +-e .[dev] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d6e1198 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +-e . diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..5aef279 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[metadata] +description-file = README.rst diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..4c6d53a --- /dev/null +++ b/setup.py @@ -0,0 +1,38 @@ +# This file is autogenerated by edgy.project code generator. +# All changes will be overwritten. + +from setuptools import setup, find_packages + +tolines = lambda c: list(filter(None, map(lambda s: s.strip(), c.split('\n')))) + +def read(filename, flt=None): + with open(filename) as f: + content = f.read().strip() + return flt(content) if callable(flt) else content + +try: + version = read('version.txt') +except: + version = 'dev' + +setup( + name = 'bonobo', + description = '', + license = 'Apache License, Version 2.0', + install_requires = [], + version = version, + long_description = read('README.rst'), + classifiers = read('classifiers.txt', tolines), + packages = find_packages(exclude=['ez_setup', 'example', 'test']), + include_package_data = True, + extras_require = {'dev': ['coverage >=4.0,<4.2', + 'mock >=2.0,<2.1', + 'nose >=1.3,<1.4', + 'pylint >=1.6,<1.7', + 'pytest >=2.9,<2.10', + 'pytest-cov >=2.3,<2.4', + 'sphinx', + 'sphinx_rtd_theme']}, + url = '', + download_url = ''.format(version=version), +) diff --git a/tests/.gitkeep b/tests/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..e69de29