Skip to content

Commit 5e7020e

Browse files
authored
Merge pull request #203 from networktocode/dga-2.0.0
Upgrade version to 2.0.0 and add deploy stages in Travis
2 parents f93f23c + 7de2bb1 commit 5e7020e

File tree

3 files changed

+31
-6
lines changed

3 files changed

+31
-6
lines changed

.travis.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ stages:
55
- name: "lint"
66
- name: "test"
77
- name: "integration"
8-
# - name: "deploy"
9-
# if: "branch = master"
8+
- name: "deploy-github"
9+
if: "tag IS present"
10+
- name: "deploy-pypi"
11+
if: "tag IS present"
1012

1113
language: "python"
1214
python:
@@ -96,3 +98,26 @@ jobs:
9698
- "invoke integration-tests"
9799
env: "NETBOX_VERSION=v2.8"
98100
python: 3.7
101+
102+
- stage: "deploy-github"
103+
before_script:
104+
- "pip install poetry"
105+
script:
106+
- "poetry version $TRAVIS_TAG"
107+
- "poetry build"
108+
deploy:
109+
provider: "releases"
110+
api_key: "$GITHUB_AUTH_TOKEN"
111+
file_glob: true
112+
file: "dist/*"
113+
skip_cleanup: true
114+
"on":
115+
all_branches: true
116+
117+
- stage: "deploy-pypi"
118+
before_script:
119+
- "pip install poetry"
120+
script:
121+
- "poetry version $TRAVIS_TAG"
122+
- "poetry config pypi-token.pypi $PYPI_TOKEN"
123+
- "poetry publish --build"

network_importer/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
"""Version nummber for network_importer."""
2-
__version_info__ = (2, 0, "0-beta3")
1+
"""Version number for network_importer."""
2+
__version_info__ = (2, 0, "0")
33
__version__ = ".".join([str(v) for v in __version_info__])

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[tool.poetry]
22
name = "network-importer"
3-
version = "2.0.0-beta4"
3+
version = "2.0.0"
44
description = "Network Importer tool to import an existing network into a Database / Source Of Truth"
5-
authors = ["Network to Code, LLC <info@networktocode.com>"]
5+
authors = ["Network to Code, LLC <opensource@networktocode.com>"]
66
homepage = "https://github.com/networktocode/network-importer"
77
repository = "https://github.com/networktocode/network-importer"
88
keywords = ["network", "source-of-truth", "netbox", "diffsync"]

0 commit comments

Comments
 (0)