Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Commit a6a9ece

Browse files
authored
Adopt src code layout (#96)
* adopt src layout * mark package as typed * cleanup metadata
1 parent a7f61cb commit a6a9ece

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ repos:
5050
- id: mypy
5151
# empty args needed in order to match mypy cli behavior
5252
args: []
53-
entry: mypy pytest_molecule/
53+
entry: mypy src/
5454
pass_filenames: false
5555
additional_dependencies:
5656
- molecule

setup.cfg

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
[aliases]
22
dists = clean --all sdist bdist_wheel
33

4-
[bdist_wheel]
5-
universal = 1
6-
74
[metadata]
85
name = pytest-molecule
96
url = https://github.com/ansible-community/pytest-molecule
@@ -53,6 +50,8 @@ keywords =
5350
[options]
5451
use_scm_version = True
5552
python_requires = >=3.6
53+
package_dir =
54+
= src
5655
packages = find:
5756
include_package_data = True
5857
zip_safe = False
@@ -89,4 +88,7 @@ pytest11 =
8988
molecule = pytest_molecule
9089

9190
[options.packages.find]
92-
where = .
91+
where = src
92+
93+
[options.package_data]
94+
pytest_molecule = py.typed
File renamed without changes.

src/pytest_molecule/py.typed

Whitespace-only changes.

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ isolated_build = True
1212
[testenv]
1313
description =
1414
Unit testing
15-
install_command =
16-
python -c 'import subprocess, sys; pip_inst_cmd = sys.executable, "-m", "pip", "install"; subprocess.check_call(pip_inst_cmd + ("pip<19.1", )); subprocess.check_call(pip_inst_cmd + tuple(sys.argv[1:]))' {opts} {packages}
1715
usedevelop = True
1816
commands =
1917
ansible-inventory --graph
@@ -87,6 +85,7 @@ description =
8785
deps =
8886
build >= 0.5.0
8987
twine >= 3.4.1
88+
usedevelop = False
9089
commands =
9190
# build wheel and sdist using PEP-517
9291
{envpython} -c 'import os.path, shutil, sys; \

0 commit comments

Comments
 (0)