Skip to content

Commit d4ea8a8

Browse files
committed
update testing settings
1 parent bac513c commit d4ea8a8

File tree

2 files changed

+49
-31
lines changed

2 files changed

+49
-31
lines changed

setup.py

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,32 @@ def version(name):
2222
raise RuntimeError("Unable to extract version number")
2323

2424

25-
setup(name='htmlement',
26-
version=version('htmlement.py'),
27-
description='Pure-Python HTML parser with ElementTree support.',
28-
long_description=readme(),
29-
keywords='html html5 parsehtml htmlparser elementtree dom',
30-
classifiers=['Development Status :: 5 - Production/Stable',
31-
'Intended Audience :: Developers',
32-
'License :: OSI Approved :: MIT License',
33-
'Natural Language :: English',
34-
'Operating System :: OS Independent',
35-
'Programming Language :: Python :: 2',
36-
'Programming Language :: Python :: 2.7',
37-
'Programming Language :: Python :: 3',
38-
'Programming Language :: Python :: 3.4',
39-
'Programming Language :: Python :: 3.5',
40-
'Programming Language :: Python :: 3.6',
41-
'Topic :: Text Processing :: Markup :: HTML',
42-
'Topic :: Software Development :: Libraries :: Python Modules'],
43-
url='https://github.com/willforde/python-htmlement',
44-
platforms=['OS Independent'],
45-
author='William Forde',
46-
author_email='[email protected]',
47-
license='MIT License',
48-
py_modules=['htmlement'])
25+
setup(
26+
name='htmlement',
27+
version=version('htmlement.py'),
28+
description='Pure-Python HTML parser with ElementTree support.',
29+
long_description=readme(),
30+
extras_require={"dev": ["pytest", "pytest-cov"]},
31+
keywords='html html5 parsehtml htmlparser elementtree dom',
32+
classifiers=[
33+
'Development Status :: 5 - Production/Stable',
34+
'Intended Audience :: Developers',
35+
'License :: OSI Approved :: MIT License',
36+
'Natural Language :: English',
37+
'Operating System :: OS Independent',
38+
'Programming Language :: Python :: 2',
39+
'Programming Language :: Python :: 2.7',
40+
'Programming Language :: Python :: 3',
41+
'Programming Language :: Python :: 3.4',
42+
'Programming Language :: Python :: 3.5',
43+
'Programming Language :: Python :: 3.6',
44+
'Topic :: Text Processing :: Markup :: HTML',
45+
'Topic :: Software Development :: Libraries :: Python Modules'
46+
],
47+
url='https://github.com/willforde/python-htmlement',
48+
platforms=['OS Independent'],
49+
author='William Forde',
50+
author_email='[email protected]',
51+
license='MIT License',
52+
py_modules=['htmlement']
53+
)

tox.ini

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
[tox]
2-
envlist = py{27,34,35,36,37}
3-
skip_missing_interpreters=true
2+
envlist = py{27,36,37,38,39},flake8
3+
skip_missing_interpreters = true
44

55
[testenv]
6-
deps=
7-
pytest
8-
pytest-cov
6+
extras = dev
7+
commands = py.test --cov
98

10-
commands=
11-
py.test --cov
9+
# Flake8 Environment
10+
[testenv:flake8]
11+
basepython = python3
12+
skip_install = true
13+
deps =
14+
flake8
15+
commands =
16+
flake8 --max-line-length=120
17+
18+
# Flake8 Configuration
19+
[flake8]
20+
exclude =
21+
.tox,
22+
.git,
23+
docs,
24+
tests

0 commit comments

Comments
 (0)