diff --git a/.github/workflows/python_publish.yml b/.github/workflows/python_publish.yml index 30356ea..524f42e 100644 --- a/.github/workflows/python_publish.yml +++ b/.github/workflows/python_publish.yml @@ -17,11 +17,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install setuptools wheel twine build - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py sdist bdist_wheel + python -m build twine upload dist/* diff --git a/.github/workflows/python_publish_test.yml b/.github/workflows/python_publish_test.yml new file mode 100644 index 0000000..69c95ac --- /dev/null +++ b/.github/workflows/python_publish_test.yml @@ -0,0 +1,24 @@ +name: Test Build Python Package + +on: + push + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine build + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python -m build diff --git a/setup.py b/setup.py index 59b05e7..887f265 100644 --- a/setup.py +++ b/setup.py @@ -26,11 +26,7 @@ classifiers=[ "Intended Audience :: Education", "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: Visualization", ], zip_safe=False,