diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eb07966..57427e9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,8 +6,7 @@ on: jobs: deploy: - # Don't run on linux to prevent spidev install from failing - runs-on: macos-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Python @@ -17,11 +16,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install twine build - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py bdist_wheel + python -m build twine upload dist/* diff --git a/.gitignore b/.gitignore index eee9cae..f575ec5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ __pycache__ .tox python_adc_eval.egg-info +dist diff --git a/pyproject.toml b/pyproject.toml index bcc1a56..876e955 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "python-adc-eval" -version = "0.1.0rc0" +version = "0.1.0rc1" license = {text = "MIT"} description = "ADC Evaluation Library" readme = "README.rst"