Skip to content

Commit

Permalink
Merge pull request #129 from WhaleJ84/stage
Browse files Browse the repository at this point in the history
Stage
  • Loading branch information
WhaleJ84 authored Oct 19, 2022
2 parents 2e48289 + b46aaab commit 57a092e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 38 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
python3 -m pip install --upgrade pip
python3 -m pip install build wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
python3 -m build
python3 -m twine upload dist/*
10 changes: 5 additions & 5 deletions .github/workflows/test-python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Upload Test Python Package
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-*'
- 'v[0-9]+.[0-9]+.[0-9]+.*'

jobs:
deploy:
Expand All @@ -21,12 +21,12 @@ jobs:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
python3 -m pip install --upgrade pip
python3 -m pip install build wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload --repository testpypi dist/*
python3 -m build
python3 -m twine upload --repository testpypi dist/*
21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@ requires = [
]
build-backend = "setuptools.build_meta"

[project]
name = "librenms-handler"
version = "0.4.2"
authors = [
{ name="James Whale", email="[email protected]" },
]
description = "A Python library to interact with the LibreNMS API (v0)"
readme = "README.md"
requires-python = ">=3.6"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"requests"
]

[project.urls]
"Homepage" = "https://github.com/WhaleJ84/librenms_handler"
"Bug Tracker" = "https://github.com/WhaleJ84/librenms_handler/issues"

[tool.pylint.FORMAT]
max-line-length=120
min-similarity-lines=5
Expand Down
29 changes: 0 additions & 29 deletions setup.py

This file was deleted.

0 comments on commit 57a092e

Please sign in to comment.