diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2adacb..4a15ec8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,7 +108,11 @@ jobs: publish: if: github.event_name == 'push' && github.ref == 'refs/heads/main' - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + needs: build + steps: + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} + \ No newline at end of file diff --git a/app/_version.py b/app/_version.py new file mode 100644 index 0000000..5f91a76 --- /dev/null +++ b/app/_version.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 + +"""MODULE: Specifies app version.""" + +VERSION = "0.1" diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..341fe27 --- /dev/null +++ b/setup.py @@ -0,0 +1,18 @@ +from setuptools import setup + +from app._version import VERSION + +setup( + name="ipilot", + version=VERSION, + description="IP Information Lookup Tool", + author="Luke Tainton", + author_email="luke@tainton.uk", + packages=["ipilot"], + install_requires=["requests"], + entry_points={ + "console_scripts": [ + "ipilot = app.main:main", + ], + }, +)