Skip to content

Commit aed274e

Browse files
authored
Merge pull request #17 from bbc/jamesba-pypi
v1.0.0 Ready to go!
2 parents 197af07 + efa8f85 commit aed274e

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

Jenkinsfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pipeline {
147147
}
148148
}
149149
parallel {
150-
stage ("Upload to Artifactory") {
150+
stage ("Upload to PyPi") {
151151
when {
152152
anyOf {
153153
expression { return params.FORCE_PYUPLOAD }
@@ -158,20 +158,20 @@ pipeline {
158158
}
159159
steps {
160160
script {
161-
env.artifactoryUpload_result = "FAILURE"
161+
env.pypiUpload_result = "FAILURE"
162162
}
163-
bbcGithubNotify(context: "artifactory/upload", status: "PENDING")
163+
bbcGithubNotify(context: "pypi/upload", status: "PENDING")
164164
sh 'rm -rf dist/*'
165-
bbcMakeWheel("py27")
166-
bbcMakeWheel("py3")
167-
bbcTwineUpload(toxenv: "py3")
165+
bbcMakeGlobalWheel("py27")
166+
bbcMakeGlobalWheel("py3")
167+
bbcTwineUpload(toxenv: "py3", pypi: true)
168168
script {
169-
env.artifactoryUpload_result = "SUCCESS" // This will only run if the steps above succeeded
169+
env.pypiUpload_result = "SUCCESS" // This will only run if the steps above succeeded
170170
}
171171
}
172172
post {
173173
always {
174-
bbcGithubNotify(context: "artifactory/upload", status: env.artifactoryUpload_result)
174+
bbcGithubNotify(context: "pypi/upload", status: env.pypiUpload_result)
175175
}
176176
}
177177
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Basic metadata
2020
name = 'mediatimestamp'
21-
version = '1.0.0-dev4'
21+
version = '1.0.0'
2222
description = 'A timestamp library for high precision nanosecond timestamps'
2323
url = 'https://github.com/bbc/rd-apmm-python-lib-mediatimestamp'
2424
author = 'James P. Weaver'

0 commit comments

Comments
 (0)