Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Azure-Keyvault To List of Omitted Releases #4065

Merged
merged 4 commits into from
Dec 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions build_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from pip._vendor.packaging.version import parse as Version, InvalidVersion

DEFAULT_DEST_FOLDER = "./dist"
OMITTED_RELEASE_PACKAGES = ['azure-keyvault']

def create_package(name, dest_folder=DEFAULT_DEST_FOLDER):
absdirpath = os.path.abspath(name)
Expand All @@ -31,6 +32,7 @@ def travis_build_package():
This method prints on stdout for Travis.
Return is obj to pass to sys.exit() directly
"""

travis_tag = os.environ.get('TRAVIS_TAG')
if not travis_tag:
print("TRAVIS_TAG environment variable is not present")
Expand All @@ -48,6 +50,10 @@ def travis_build_package():
print("Version must be a valid PEP440 version (version is: {})".format(version))
return "Version must be a valid PEP440 version (version is: {})".format(version)

if name.lower() in OMITTED_RELEASE_PACKAGES:
print("The input package {} has been disabled for release from Travis.CI.".format(name))
return

abs_dist_path = Path(os.environ['TRAVIS_BUILD_DIR'], 'dist')
create_package(name, str(abs_dist_path))

Expand Down