Create setup.py

This commit is contained in:
Luke Tainton 2022-06-25 21:45:16 +01:00
parent 7d9f745930
commit 2cb2bc2190
No known key found for this signature in database
GPG Key ID: ABEE10849773E353
3 changed files with 31 additions and 4 deletions

View File

@ -108,7 +108,11 @@ jobs:
publish: publish:
if: github.event_name == 'push' && github.ref == 'refs/heads/main' if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: pypa/gh-action-pypi-publish@release/v1 needs: build
with: steps:
user: __token__ - name: Publish to PyPI
password: ${{ secrets.PYPI_API_TOKEN }} uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

5
app/_version.py Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env python3
"""MODULE: Specifies app version."""
VERSION = "0.1"

18
setup.py Normal file
View File

@ -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",
],
},
)