diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 825737e..36a7fa7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,6 +21,10 @@ jobs: toxenv: pillow8.x - python-version: '3.11' toxenv: pillow9.x + - python-version: '3.11' + toxenv: sdist + - python-version: '3.11' + toxenv: wheel steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} @@ -34,4 +38,4 @@ jobs: - name: Run tox env: TOXENV: ${{ matrix.toxenv }} - run: tox -- -v \ No newline at end of file + run: tox -- -v diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..8535914 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "docutils"] +build-backend = "setuptools.build_meta" diff --git a/tox.ini b/tox.ini index 0d2c017..b9c95a5 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=py{310,311},pillow{8.x,9.x},flake8 +envlist=py{310,311},pillow{8.x,9.x},flake8,sdist,wheel [testenv] usedevelop = True @@ -16,6 +16,16 @@ passenv = commands = pytest +[testenv:sdist] +description = Build a source distribution +deps = build +commands = python -m build --sdist + +[testenv:wheel] +description = Build a binary distribution +deps = build +commands = python -m build --wheel + [testenv:flake8] description = Run style checks.