Skip to content

Commit

Permalink
Merge pull request #55 from klaernie/pypi
Browse files Browse the repository at this point in the history
Closes #37 - Automatically publish the package on PyPI
  • Loading branch information
emersonfelipesp authored May 21, 2022
2 parents b956656 + df55136 commit 0fc7af8
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
```
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "netbox-proxbox"
version = "0.0.4"
description = "Netbox Plugin - Integrate Proxmox and Netbox"
readme = "README.md"
authors = ["Emerson Felipe <emerson.felipe@nmultifibra.com>"]
license = "Apache-2.0"
packages = [
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0fc7af8

Please sign in to comment.