File tree 6 files changed +12
-6
lines changed
6 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -30,18 +30,18 @@ keywords =
30
30
[options]
31
31
use_scm_version = True
32
32
python_requires = >=3.8
33
- ; package_dir =
34
- ; = src
35
- ; packages = find:
36
-
37
- ; [options.packages.find]
38
- ; where = src
33
+ package_dir =
34
+ = src
35
+ packages = find:
39
36
40
37
[options.extras_require]
41
38
test =
42
39
coverage>=6.3
43
40
pytest-cov>=3.0.0
44
41
pytest>=7.0.0
45
42
43
+ [options.packages.find]
44
+ where = src
45
+
46
46
[options.package_data]
47
47
vagrant = py.typed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 55
55
skip_install = true
56
56
# Ref: https://twitter.com/di_codes/status/1044358639081975813
57
57
commands =
58
+ # Safety measure to remove library if somehow appears as installed
59
+ sh -c " pip uninstall -y python-vagrant 2>/dev/null"
58
60
# build wheel and sdist using PEP-517
59
61
{envpython} -c ' import os.path, shutil, sys; \
60
62
dist_dir = os.path.join("{toxinidir}", "dist"); \
@@ -68,3 +70,7 @@ commands =
68
70
twine check --strict {toxinidir}/dist/*
69
71
# Install the wheel
70
72
sh -c " python3 -m pip install {toxinidir}/dist/*.whl"
73
+ # Basic checks
74
+ python -c " import sys, pkgutil; sys.exit(0 if pkgutil.find_loader(sys.argv[1]) else 1)" vagrant
75
+ # Uninstall the wheel
76
+ pip uninstall -y python-vagrant
You can’t perform that action at this time.
0 commit comments