Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Remove setup.py #138

Merged
merged 2 commits into from
Nov 4, 2021
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
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[build-system]
requires = [
"setuptools >= 41.0.0",
"setuptools_scm >= 1.15.0",
"setuptools >= 42.0.0", # required by pyproject+setuptools_scm integration
"setuptools_scm[toml] >= 3.5.0", # required for "no-local-version" scheme
"setuptools_scm_git_archive >= 1.0",
"wheel",
"pip",
]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
local_scheme = "no-local-version"
8 changes: 0 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[aliases]
dists = clean --all sdist bdist_wheel

[metadata]
name = molecule-vagrant
url = https://github.com/ansible-community/molecule-vagrant
Expand Down Expand Up @@ -55,11 +52,6 @@ packages = find:
include_package_data = True
zip_safe = False

# These are required during `setup.py` run:
setup_requires =
setuptools_scm[toml] >= 1.15.0
setuptools_scm_git_archive >= 1.0

# These are required in actual runtime:
install_requires =
molecule >= 3.2.0a0
Expand Down
15 changes: 0 additions & 15 deletions setup.py

This file was deleted.

31 changes: 18 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ isolated_build = True
[testenv]
description =
Unit testing
usedevelop = True
extras =
test
deps =
--editable .
ansible-core
py{36,37,38,39}: molecule[test]
py{36,37,38,39}-{devel}: git+https://github.com/ansible-community/molecule.git@main#egg=molecule[test]
Expand Down Expand Up @@ -66,20 +66,25 @@ whitelist_externals =
pre-commit

[testenv:packaging]
usedevelop = false
skip_install = true
description =
Build package, verify metadata, install package and assert behavior when ansible is missing.
deps =
collective.checkdocs >= 0.2
pep517 >= 0.5.0
twine >= 2.0.0
build >= 0.7.0, < 0.8.0
twine
skip_install = true
# Ref: https://twitter.com/di_codes/status/1044358639081975813
commands =
bash -c "rm -rf {toxinidir}/dist/ {toxinidir}/build/ && mkdir -p {toxinidir}/dist/"
python -m pep517.build \
--source \
--binary \
--out-dir {toxinidir}/dist/ \
{toxinidir}
twine check dist/*
# build wheel and sdist using PEP-517
{envpython} -c 'import os.path, shutil, sys; \
dist_dir = os.path.join("{toxinidir}", "dist"); \
os.path.isdir(dist_dir) or sys.exit(0); \
print("Removing \{!s\} contents...".format(dist_dir), file=sys.stderr); \
shutil.rmtree(dist_dir)'
{envpython} -m build \
--outdir {toxinidir}/dist/ \
{toxinidir}
# Validate metadata using twine
twine check --strict {toxinidir}/dist/*

[testenv:lint]
description = Performs linting, style checks
Expand Down