diff --git a/.github/workflows/packaging_test.yml b/.github/workflows/packaging_test.yml new file mode 100644 index 000000000..6efcf16ae --- /dev/null +++ b/.github/workflows/packaging_test.yml @@ -0,0 +1,23 @@ +name: "Packaging Test" + +on: [pull_request] +jobs: + check_packaging: + runs-on: ${{ matrix.os }} + strategy: + matrix: + python-version: ["3.11"] + os: [ubuntu-latest] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox + - name: Run Packaging Test + run: | + tox -e test_packaging diff --git a/dev_requirements/requirements-packaging.txt b/dev_requirements/requirements-packaging.txt index 85823ccaa..250e38953 100644 --- a/dev_requirements/requirements-packaging.txt +++ b/dev_requirements/requirements-packaging.txt @@ -1,13 +1,17 @@ # -# This file is autogenerated by pip-compile with Python 3.11 -# by the following command: +# This file is autogenerated by pip-compile with python 3.10 +# To update, run: # -# pip-compile '.\requirements-packaging.in' +# pip-compile requirements-packaging.in # +build==1.0.3 + # via -r requirements-packaging.in certifi==2023.7.22 # via requests charset-normalizer==3.2.0 # via requests +colorama==0.4.6 + # via build docutils==0.20.1 # via readme-renderer idna==3.4 @@ -28,12 +32,16 @@ more-itertools==10.1.0 # via jaraco-classes nh3==0.2.14 # via readme-renderer +packaging==23.1 + # via build pkginfo==1.9.6 # via twine pygments==2.16.1 # via # readme-renderer # rich +pyproject-hooks==1.0.0 + # via build pywin32-ctypes==0.2.2 # via keyring readme-renderer==42.0 @@ -48,13 +56,15 @@ rfc3986==2.0.0 # via twine rich==13.5.3 # via twine +tomli==2.0.1 + # via + # build + # pyproject-hooks twine==4.0.2 - # via -r .\requirements-packaging.in + # via -r requirements-packaging.in urllib3==2.0.5 # via # requests # twine -wheel==0.41.2 - # via -r .\requirements-packaging.in zipp==3.17.0 # via importlib-metadata diff --git a/tox.ini b/tox.ini index 486a391ef..259df0edc 100644 --- a/tox.ini +++ b/tox.ini @@ -97,14 +97,11 @@ commands = [testenv:test_packaging] -basepython = python3.10 skip_install = true deps = - setuptools - setuptools-scm -r dev_requirements/requirements-packaging.txt commands = - python setup.py sdist bdist_wheel + python -m build twine check dist/* [testenv:generate_json_schemas]