From 2e2e3e3ef0c19216ef034804e26dc9ce0866f02d Mon Sep 17 00:00:00 2001 From: Dmitry Dygalo Date: Wed, 25 Nov 2020 14:56:11 +0100 Subject: [PATCH] chore: Add Tox `build` job for packaging purposes --- pyproject.toml | 4 ++++ tox.ini | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index cd58fc2..bda6055 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,7 @@ +[build-system] +requires = ["setuptools >= 40.6.0", "wheel"] +build-backend = "setuptools.build_meta" + [tool.black] line-length = 120 target_version = ["py37"] diff --git a/tox.ini b/tox.ini index 4f5777b..d242dc0 100644 --- a/tox.ini +++ b/tox.ini @@ -45,3 +45,7 @@ depends = {py35,py36,py37,py38,py39,pypy3} commands = coverage combine coverage report + +[testenv:build] +deps = pep517 +commands = python -m pep517.build --source . --binary --out-dir dist/