Skip to content

Commit

Permalink
Merge pull request #4 from napalm-automation-community/deploy-pypi
Browse files Browse the repository at this point in the history
Improve TestPyPI handling
  • Loading branch information
inetAnt authored Jul 5, 2021
2 parents 914dd1f + 4cb195e commit 5c9415e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
name: Build and publish Python distributions to TestPyPI and PyPI
runs-on: ubuntu-latest
needs: run-tests # only run when tests where successful
continue-on-error: true
if: github.ref == 'refs/heads/master'

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.0"]

[tool.setuptools_scm]
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@
url="https://github.com/napalm-automation-community/napalm-servertech-pro2",
include_package_data=True,
install_requires=reqs,
use_scm_version=True,
setup_requires=["setuptools_scm"],
)

0 comments on commit 5c9415e

Please sign in to comment.