initialize project structure
This commit is contained in:
1
MANIFEST.in
Normal file
1
MANIFEST.in
Normal file
@ -0,0 +1 @@
|
|||||||
|
include *.txt
|
||||||
45
Makefile
Normal file
45
Makefile
Normal file
@ -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
|
||||||
32
Projectfile
Normal file
32
Projectfile
Normal file
@ -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',
|
||||||
|
],
|
||||||
|
}
|
||||||
0
README.rst
Normal file
0
README.rst
Normal file
1
bonobo/__init__.py
Normal file
1
bonobo/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
from __future__ import absolute_import, print_function, unicode_literals
|
||||||
0
classifiers.txt
Normal file
0
classifiers.txt
Normal file
1
requirements-dev.txt
Normal file
1
requirements-dev.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
-e .[dev]
|
||||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
-e .
|
||||||
38
setup.py
Normal file
38
setup.py
Normal file
@ -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),
|
||||||
|
)
|
||||||
0
tests/.gitkeep
Normal file
0
tests/.gitkeep
Normal file
0
version.txt
Normal file
0
version.txt
Normal file
Reference in New Issue
Block a user