Repository: WhaleJ84/librenms_handler (language: python)

Issue:
Include contributing file



Discussion / hints:

Fix patch:
diff --git a/setup.py b/setup.py
index fb0bb89..3963a3a 100644
--- a/setup.py
+++ b/setup.py
@@ -20,10 +20,10 @@
         "License :: OSI Approved :: MIT License",
     ],
     package_dir={"": "src"},
-    packages=find_packages(where="src"),
+    packages=find_packages(
+        where="src",
+        include="Pipfile"
+    ),
     python_requires=">=3.6",
-    install_requires=[
-        "requests",
-    ]
 )
 


Test patch:
diff --git a/.github/workflows/test-python-publish.yml b/.github/workflows/test-python-publish.yml
new file mode 100644
index 0000000..bf4f1e8
--- /dev/null
+++ b/.github/workflows/test-python-publish.yml
@@ -0,0 +1,34 @@
+# This workflow will upload a Python Package using Twine when a release is created
+# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
+
+name: Upload Python Package
+
+on:
+  push:
+    branches:
+      - stage
+    tags:
+      - v*-alpha*
+
+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 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/*
\ No newline at end of file