From 3250febdb867746743501325b4d26d878f56228b Mon Sep 17 00:00:00 2001 From: jung-geun Date: Mon, 4 Sep 2023 15:02:33 +0900 Subject: [PATCH] =?UTF-8?q?23-09-04=20pypi=20=ED=8C=A8=ED=82=A4=EC=A7=80?= =?UTF-8?q?=20=EB=B0=B0=ED=8F=AC=20=EC=8B=A4=ED=97=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pypi.yml | 20 +++++++++----------- .gitignore | 2 +- setup.py | 1 - 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 9d2c6ff..6142d83 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -4,8 +4,7 @@ on: push: paths: - "setup.py" - branches: - - main + - "pso/__init__.py" permissions: contents: read @@ -28,12 +27,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} - run: | - python setup.py bdist_wheel sdist - twine upload dist/*.whl dist/*.tar.gz + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_TOKEN }} diff --git a/.gitignore b/.gitignore index 4c3cffd..3f0b40e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ __pycache__/ *$py.class .ipynb_checkpoints/ - +.vscode/settings.json # pypi dist/ build/ diff --git a/setup.py b/setup.py index 53f4d87..dca8fb1 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,6 @@ setup( "pandas", "ipython", "tensorflow<=2.11.1", - "tensorboard", ], packages=find_packages(exclude=[]), keywords=["pso", "tensorflow", "keras"],