Skip to content

Commit 90157f1

Browse files
authored
Use src layout (#93)
This is more consistent to what is the current golden standard in packaging, and followed by other plugins in the ecosystem.
1 parent 46eee3f commit 90157f1

File tree

5 files changed

+52
-43
lines changed

5 files changed

+52
-43
lines changed

pyproject.toml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[build-system]
2+
requires = [
3+
"setuptools",
4+
"setuptools-scm[toml]>=6.2.3",
5+
]
6+
build-backend = "setuptools.build_meta"
7+
8+
[tool.setuptools_scm]

pytest.ini

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[pytest]
2+
addopts = -ra
3+
testpaths = tests

setup.cfg

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[metadata]
2+
name = pytest-subtests
3+
description = unittest subTest() support and subtests fixture
4+
long_description = file: README.rst
5+
long_description_content_type = text/x-rst
6+
url = https://github.com/pytest-dev/pytest-subtests
7+
author = Bruno Oliveira
8+
license = MIT
9+
license_file = LICENSE
10+
classifiers =
11+
Development Status :: 4 - Beta
12+
Framework :: Pytest
13+
Intended Audience :: Developers
14+
Topic :: Software Development :: Testing
15+
Programming Language :: Python
16+
Programming Language :: Python :: 3
17+
Programming Language :: Python :: 3.7
18+
Programming Language :: Python :: 3.8
19+
Programming Language :: Python :: 3.9
20+
Programming Language :: Python :: 3.10
21+
Programming Language :: Python :: 3.11
22+
Programming Language :: Python :: Implementation :: CPython
23+
Operating System :: OS Independent
24+
License :: OSI Approved :: MIT License
25+
keywords = test, unittest, pytest
26+
27+
[options]
28+
py_modules = pytest_subtests
29+
install_requires =
30+
pytest>=7.0
31+
attrs>=19.2.0
32+
python_requires = >=3.7
33+
package_dir =
34+
=src
35+
setup_requires =
36+
setuptools
37+
setuptools-scm>=6.0
38+
39+
[options.entry_points]
40+
pytest11 =
41+
subtests = pytest_subtests

setup.py

-43
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)