diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 0000000..33c404f --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,32 @@ +name: Upload Python Package + +on: + release: + types: + - created + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel build + + - name: Build distributable + run: | + python -m build + + - name: Publish a Python distribution to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/README.md b/README.md index c544456..2725d60 100755 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ The plugin is available as a Python package in pypi and can be installed with pi ### 1.1. Install package -#### 1.1.1. Using pip (production use - [not working yet!](https://github.com/netdevopsbr/netbox-proxbox/issues/37)) +#### 1.1.1. Using pip (production use) Enter Netbox's virtual environment. ``` diff --git a/pyproject.toml b/pyproject.toml index 4f73350..bf1b118 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,7 @@ name = "netbox-proxbox" version = "0.0.4" description = "Netbox Plugin - Integrate Proxmox and Netbox" +readme = "README.md" authors = ["Emerson Felipe "] license = "Apache-2.0" packages = [ diff --git a/setup.py b/setup.py index fc06c95..de87beb 100755 --- a/setup.py +++ b/setup.py @@ -44,8 +44,8 @@ long_description_content_type="text/markdown", classifiers=[ "Programming Language :: Python :: 3", - "Framework :: Django", - "Operating System :: Unix", + "Framework :: Django", + "Operating System :: Unix", "License :: OSI Approved :: Apache Software License", ], keywords="netbox netbox-plugin plugin proxmox proxmoxer pynetbox",