Add pytest-cov

Apply black formatting
Add component_css_dependencies_tag and component_js_dependencies_tag tags
Add convenience methods render_css_dependencies and render_js_dependencies to component class
Create additional test cases
Add license to setup.py
Add pytest.ini config file
This commit is contained in:
Bradley Stuart Kirton 2020-07-09 08:01:39 +02:00 committed by Emil Stenström
parent e9929b1bff
commit 2c644d4c06
8 changed files with 199 additions and 66 deletions

View file

@ -3,23 +3,21 @@ import os
from setuptools import find_packages, setup
VERSION = '0.3'
VERSION = "0.3"
setup(
name='django_reusable_components',
name="django_reusable_components",
packages=find_packages(exclude=["tests"]),
version=VERSION,
description='A way to create simple reusable template components in Django.',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
description="A way to create simple reusable template components in Django.",
long_description=open(os.path.join(os.path.dirname(__file__), "README.md")).read(),
long_description_content_type="text/markdown",
author=u'Emil Stenström',
author_email='em@kth.se',
url='https://github.com/EmilStenstrom/django-components/',
install_requires=[
"Django>=1.11",
"six",
],
keywords=['django', 'components', 'css', 'js', 'html'],
author=u"Emil Stenström",
author_email="em@kth.se",
url="https://github.com/EmilStenstrom/django-components/",
install_requires=["Django>=1.11", "six"],
license="MIT",
keywords=["django", "components", "css", "js", "html"],
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",