Skip to content

Commit e305e66

Browse files
committed
Add pyproject.toml
1 parent 6bd4c58 commit e305e66

File tree

8 files changed

+77
-126
lines changed

8 files changed

+77
-126
lines changed

.travis.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

appveyor-cache.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

cp33-tox-requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

haas/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
# of the 3-clause BSD license. See the LICENSE.txt file for details.
77
from __future__ import absolute_import, unicode_literals
88

9+
import logging
10+
911
try:
1012
from haas._version import version as __version__
1113
except ImportError: # pragma: no cover
1214
__version__ = 'notset'
1315

14-
import logging
15-
1616

1717
class NullHandler(logging.Handler): # pragma: no cover
1818
def emit(self, record):

pyproject.toml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
[project]
2+
name = "haas"
3+
dynamic = ["version"]
4+
description = "Extensible Python Test Runner"
5+
authors = [
6+
{ name = "Simon Jagoe", email = "[email protected]" },
7+
]
8+
license = { file = "LICENSE.txt" }
9+
readme = "README.rst"
10+
requires-python = ">= 3.7"
11+
classifiers = [
12+
"Development Status :: 3 - Alpha",
13+
"Intended Audience :: Developers",
14+
"License :: OSI Approved :: BSD License",
15+
"Operating System :: MacOS",
16+
"Operating System :: Microsoft :: Windows",
17+
"Operating System :: OS Independent",
18+
"Operating System :: POSIX",
19+
"Operating System :: Unix",
20+
"Topic :: Software Development",
21+
"Topic :: Software Development :: Testing",
22+
]
23+
dependencies = [
24+
"statistics",
25+
"stevedore",
26+
]
27+
28+
[project.optional-dependencies]
29+
test = [
30+
"coverage",
31+
"testfixtures",
32+
]
33+
docs = [
34+
"refactordoc",
35+
"sphinx",
36+
"sphinx-rtd-theme",
37+
]
38+
39+
[project.urls]
40+
Repository = "https://github.com/scalative/haas"
41+
42+
[tool.setuptools]
43+
packages = [
44+
"haas",
45+
"haas.plugins",
46+
"haas.tests",
47+
"haas.plugins.tests",
48+
]
49+
50+
[project.scripts]
51+
haas = "haas.main:main"
52+
53+
[project.entry-points."haas.hooks.environment"]
54+
coverage = "haas.plugins.coverage:Coverage"
55+
56+
[project.entry-points."haas.discovery"]
57+
default = "haas.plugins.discoverer:Discoverer"
58+
59+
[project.entry-points."haas.runner"]
60+
default = "haas.plugins.runner:BaseTestRunner"
61+
parallel = "haas.plugins.parallel_runner:ParallelTestRunner"
62+
63+
[project.entry-points."haas.result.handler"]
64+
default = "haas.plugins.result_handler:StandardTestResultHandler"
65+
quiet = "haas.plugins.result_handler:QuietTestResultHandler"
66+
verbose = "haas.plugins.result_handler:VerboseTestResultHandler"
67+
timing = "haas.plugins.result_handler:TimingResultHandler"
68+
69+
[build-system]
70+
requires = ["setuptools", "setuptools-scm"]
71+
build-backend = "setuptools.build_meta"
72+
73+
[tool.setuptools_scm]
74+
version_file = "haas/_version.py"

test_requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
coverage
2-
unittest2; python_version == '2.6'
3-
mock; python_version < '3.3'
42
testfixtures

tox-requirements.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
tox < 3.0.0; python_version == '3.3'
2-
tox; python_version != '3.3'
3-
virtualenv == 15.2.0; python_version == '3.3'
1+
tox

0 commit comments

Comments
 (0)