From f32433d935ec6690bc7eb6e49b221dd5c60ece20 Mon Sep 17 00:00:00 2001 From: jung-geun Date: Mon, 4 Sep 2023 15:16:35 +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=ED=85=8C=EC=8A=A4=ED=8A=B8=206?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pypi.yml | 16 ++++++++-------- setup.py | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index e18dd6d..29a844d 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -28,11 +28,11 @@ jobs: run: | python -m pip install --upgrade pip if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - 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 }} + 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 diff --git a/setup.py b/setup.py index dca8fb1..b70ff3f 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,7 @@ setup( "pandas", "ipython", "tensorflow<=2.11.1", + "keras" ], packages=find_packages(exclude=[]), keywords=["pso", "tensorflow", "keras"],