From 503a0513ec82b785dd8a7bcd11f41ea2b9d4cb4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Glauber=20Magalh=C3=A3es?= Date: Tue, 19 Nov 2024 08:52:38 -0300 Subject: [PATCH] properly add requirements to setup.py --- .github/workflows/python-publish.yml | 22 ++++++++++------------ setup.py | 7 ++++++- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index a4bafef..7dc4fae 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -9,24 +9,22 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - name: Set up Python + uses: actions/setup-python@v3 with: python-version: '3.x' - - name: Install build dependencies - run: python -m pip install --upgrade pip setuptools wheel twine pex - - - name: Build executable with dependencies - run: pex . -o evilurl -r pandas -e evilurl:main - - - name: Build the package (for normal installation method as well) - run: python setup.py sdist bdist_wheel + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine - - name: Publish distributions + - name: Build and publish env: PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} run: | + python setup.py sdist twine upload dist/* -u __token__ -p $PYPI_API_TOKEN --verbose - twine upload evilurl -u __token__ -p $PYPI_API_TOKEN --verbose # Uploads the standalone executable. diff --git a/setup.py b/setup.py index 11ab88e..be002ba 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='evilurl', - version='2.0.5', + version='2.0.8', packages=['src'], package_data={'src': ['unicode_combinations.json']}, setup_requires=['wheel'], @@ -13,6 +13,11 @@ 'evilurl=src.evilurl:main', ], }, + install_requires=[ + 'pandas', + 'tabulate', + 'tldextract', + ], author='Glauber Magal', author_email='apt65@proton.me', description='A tool for analyzing domains for the risk of IDN homograph attacks',