From 01de2f736745ab991b565a58fc090f09b5b706aa Mon Sep 17 00:00:00 2001 From: JanPalasek Date: Sat, 8 Jul 2023 19:02:21 +0200 Subject: [PATCH] Switched to build package instead of old setup.py. --- .github/workflows/release.yml | 4 ++-- pyproject.toml | 1 + requirements-win.txt | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fab4efb..9a98710 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,11 +14,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install --upgrade setuptools wheel twine + pip install --upgrade setuptools wheel build twine - name: Build and publish env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py sdist bdist_wheel + python -m build -sw twine upload dist/* \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 19bc0b0..cbc6b1c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,6 +56,7 @@ test = [ "ipykernel" ] dev = [ + "build", "jupyter", "ipykernel", "pandas", diff --git a/requirements-win.txt b/requirements-win.txt index d5dccce..bce995f 100644 --- a/requirements-win.txt +++ b/requirements-win.txt @@ -40,7 +40,9 @@ black==23.3.0 bleach==6.0.0 # via nbconvert build==0.10.0 - # via pip-tools + # via + # pip-tools + # pretty-jupyter (pyproject.toml) cachetools==5.3.1 # via tox cerberus==1.3.4