Skip to content

Commit

Permalink
properly add requirements to setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubermagal committed Nov 19, 2024
1 parent a2d2f59 commit 503a051
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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',
Expand Down

0 comments on commit 503a051

Please sign in to comment.