Skip to content

Adopt src code layout #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ keywords =
[options]
use_scm_version = True
python_requires = >=3.8
; package_dir =
; = src
; packages = find:

; [options.packages.find]
; where = src
package_dir =
= src
packages = find:

[options.extras_require]
test =
coverage>=6.3
pytest-cov>=3.0.0
pytest>=7.0.0

[options.packages.find]
where = src

[options.package_data]
vagrant = py.typed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ deps =
skip_install = true
# Ref: https://twitter.com/di_codes/status/1044358639081975813
commands =
# Safety measure to remove library if somehow appears as installed
sh -c "pip uninstall -y python-vagrant 2>/dev/null"
# build wheel and sdist using PEP-517
{envpython} -c 'import os.path, shutil, sys; \
dist_dir = os.path.join("{toxinidir}", "dist"); \
Expand All @@ -68,3 +70,7 @@ commands =
twine check --strict {toxinidir}/dist/*
# Install the wheel
sh -c "python3 -m pip install {toxinidir}/dist/*.whl"
# Basic checks
python -c "import sys, pkgutil; sys.exit(0 if pkgutil.find_loader(sys.argv[1]) else 1)" vagrant
# Uninstall the wheel
pip uninstall -y python-vagrant