Create setup.py
This commit is contained in:
parent
7d9f745930
commit
2cb2bc2190
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -108,7 +108,11 @@ jobs:
|
||||
|
||||
publish:
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
needs: build
|
||||
steps:
|
||||
- name: Publish to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
user: __token__
|
||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||
|
5
app/_version.py
Normal file
5
app/_version.py
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
"""MODULE: Specifies app version."""
|
||||
|
||||
VERSION = "0.1"
|
18
setup.py
Normal file
18
setup.py
Normal 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",
|
||||
],
|
||||
},
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user