Skip to content

Commit

Permalink
added tox and setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kamichal committed Nov 7, 2017
1 parent 68d836f commit 0e1de1d
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
source = yawrap
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ tests/out/*
.cache
htmlcov/*
.coverage
.tox

.Python
env/
develop-eggs/
dist/
eggs/
*.egg-info/
.installed.cfg
*.egg
13 changes: 13 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
include *.py
include .coveragerc

include LICENSE
include README.rst
include tox.ini

recursive-include docs *.py
recursive-include docs *.rst

recursive-include yawrap *.py

recursive-exclude yawrap/tests/out *
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[bdist_wheel]
universal = 1

[metadata]
license_file = LICENSE
44 changes: 44 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
from setuptools import setup, find_packages

long_description = open('README.rst').read()

setup(
name = 'yawrap',
version = '0.1',
author = 'Michal Kaczmarczyk',
author_email = '[email protected]',
maintainer = 'Michal Kaczmarczyk',
maintainer_email = '[email protected]',
license = 'MIT license',
url = 'https://bitbucket.org/gandowin/yarap/',
description = 'yawrap: simple generator of complex html reports, yattag extension',
long_description = long_description,
packages = find_packages(),
requires = ['yattag'],
install_requires = ['yattag'],
keywords = 'static html generator',
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Telecommunications Industry',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'Intended Audience :: System Administrators',
'Topic :: Database :: Front-Ends',
'Topic :: Documentation',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Browsers',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Software Development :: Code Generators',
'Topic :: Utilities',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
]
)
38 changes: 38 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[tox]
envlist =
py27,
py34
coverage

[testenv]
usedevelop = True
deps =
bs4
lxml
pdbpp
pytest
rpdb
yattag
commands =
py.test -x {posargs}

[testenv:coverage]
usedevelop=True
changedir=.
whitelist_externals =
sh
deps =
bs4
coverage
coveralls
lxml
pdbpp
pytest
rpdb
yattag
setenv =
COVERAGE_PROCESS_START={toxinidir}/.coveragerc
commands=
sh -c 'echo "import coverage; coverage.process_startup()" > {envsitepackagesdir}/../sitecustomize.py'
coverage run -m pytest tests
coverage report -m

0 comments on commit 0e1de1d

Please sign in to comment.