Skip to content

Commit

Permalink
Merge pull request #147 from martinholmer/master
Browse files Browse the repository at this point in the history
Revise 'anaconda upload' command in release.py
  • Loading branch information
martinholmer authored Dec 15, 2018
2 parents 531980e + 4093b71 commit 12b08e9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
17 changes: 17 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ Go [here](https://github.com/PSLmodels~/Package-Builder/pulls?q=is%3Apr+is%3Aclo
for a complete commit history.


2018-12-15 Release 0.15.0
-------------------------
(last merged pull request is
[#147](https://github.com/PSLmodels/Package-Builder/pull/147))

**API Changes**
- None

**New Features**
- Simplify `anaconda upload` command used by Package-Builder
[[#147](https://github.com/PSLmodels/Package-Builder/pull/147)
by Martin Holmer with assistance from Hand Doupe]

**Bug Fixes**
- None


2018-12-15 Release 0.14.0
-------------------------
(last merged pull request is
Expand Down
11 changes: 2 additions & 9 deletions pkgbld/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,10 @@ def release(repo_name, pkg_name, version, also37=True, dryrun=False):
'for Python {}').format(pyver))
for platform in OS_PLATFORMS:
pkgpath = os.path.join(BUILDS_DIR, platform, pkgfile)
cmd = 'anaconda --token {} upload --user {} {}'.format(
cmd = 'anaconda -t {} upload -u {} --skip-existing {}'.format(
token, ANACONDA_USER, pkgpath
)
try:
u.os_call(cmd)
except OSError:
msg = (': Package-Builder WARNING: anaconda upload '
'FAILED for {}/{} perhaps because package already '
'exists in the Anaconda Cloud ... '
'continuing').format(platform, pkgfile)
print(msg)
u.os_call(cmd)

print(': Package-Builder is cleaning-up')

Expand Down

0 comments on commit 12b08e9

Please sign in to comment.