Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
[travis] fix delete old dev version script
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed May 4, 2016
1 parent b664107 commit 9d0898c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions devtools/ci/travis/dev_pkgs_del_old.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Cleanup old development builds on Anaconda.org
Assumes one has set two environment variables:
Assumes one has set 4 environment variables:
1. BINSTAR_TOKEN: token to authenticate with anaconda.org
2. DEV_BUILD_N_KEEP: int, how many builds to keep, delete oldest first.
Expand All @@ -17,10 +17,10 @@
from operator import getitem
import os

token = os.getenv['BINSTAR_TOKEN']
org = os.getenv['ORGNAME']
pkg = os.getenv['PACKAGENAME']
n_keep = int(os.getenv('DEV_BUILD_N_KEEP'))
token = os.environ['BINSTAR_TOKEN']
org = os.environ['ORGNAME']
pkg = os.environ['PACKAGENAME']
n_keep = int(os.getenv('DEV_BUILD_N_KEEP', 10))

b = get_server_api(token=token)
package = b.package(org, pkg)
Expand Down

1 comment on commit 9d0898c

@franknoe
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please stop using direct commits. Especially now that we have nightly builds it is important to make changes via PRs. In addition to the safety net, it's also important to inform watchers and be able to discuss changes when needed.

Please sign in to comment.