diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..10d2b90 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +source = yawrap diff --git a/.gitignore b/.gitignore index 12101b2..e585f95 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,13 @@ tests/out/* .cache htmlcov/* .coverage +.tox + +.Python +env/ +develop-eggs/ +dist/ +eggs/ +*.egg-info/ +.installed.cfg +*.egg \ No newline at end of file diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..7c3903c --- /dev/null +++ b/MANIFEST.in @@ -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 * diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..60bd34d --- /dev/null +++ b/setup.cfg @@ -0,0 +1,5 @@ +[bdist_wheel] +universal = 1 + +[metadata] +license_file = LICENSE \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..c8dd128 --- /dev/null +++ b/setup.py @@ -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 = 'michal.s.kaczmarczyk@gmail.com', + maintainer = 'Michal Kaczmarczyk', + maintainer_email = 'michal.s.kaczmarczyk@gmail.com', + 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', + ] +) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..93e8dd5 --- /dev/null +++ b/tox.ini @@ -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 \ No newline at end of file