Skip to content

Commit

Permalink
Merge pull request #153 from martinholmer/skip-existing
Browse files Browse the repository at this point in the history
Add datetime to both the :starting and :finishing prints
  • Loading branch information
martinholmer authored Dec 19, 2018
2 parents f496c84 + 102a4af commit 96a6219
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 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-19 Release 0.19.0
-------------------------
(last merged pull request is
[#153](https://github.com/PSLmodels/Package-Builder/pull/153))

**API Changes**
- None

**New Features**
- Add datetime to :starting and :finishing prints
[[#153](https://github.com/PSLmodels/Package-Builder/pull/153)
by Martin Holmer]

**Bug Fixes**
- None


2018-12-18 Release 0.18.0
-------------------------
(last merged pull request is
Expand Down
7 changes: 5 additions & 2 deletions pkgbld/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import os
import re
import time
import shutil
import pkgbld.utils as u

Expand Down Expand Up @@ -109,6 +110,9 @@ def release(repo_name, pkg_name, version, also37=True, dryrun=False):
print(': Package-Builder is quitting')
return

# show date and time
print((': Package-Builder is starting at {}'.format(time.asctime())))

# make empty working directory
if os.path.isdir(WORKING_DIR):
shutil.rmtree(WORKING_DIR)
Expand Down Expand Up @@ -178,7 +182,6 @@ def release(repo_name, pkg_name, version, also37=True, dryrun=False):
cmd = 'anaconda -t {} upload -u {} --force {}'.format(
ANACONDA_TOKEN_FILE, ANACONDA_USER, pkgpath
)
print('upload cmd is <{}>'.format(cmd))
u.os_call(cmd)

print(': Package-Builder is cleaning-up')
Expand All @@ -191,4 +194,4 @@ def release(repo_name, pkg_name, version, also37=True, dryrun=False):
os.chdir(HOME_DIR)
shutil.rmtree(WORKING_DIR)

print(': Package-Builder is finished')
print(': Package-Builder is finishing at {}'.format(time.asctime()))

0 comments on commit 96a6219

Please sign in to comment.