Skip to content

Add travis release for both plugin and support lib. - #132

Merged
johnttompkins merged 2 commits into
aws-cloudformation:masterfrom
johnttompkins:add-travis-release
Nov 4, 2020
Merged

johnttompkins merged 2 commits into
aws-cloudformation:masterfrom
johnttompkins:add-travis-release

Conversation

@johnttompkins

@johnttompkins johnttompkins commented Nov 4, 2020 •

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes: This change add a travis deployment job for both the plugin and support library. Basically, depending on the tag naming, we will release the plugin or lib. If a tag contains "plugin", the before_deploy script will not change the directory, and travis will release what is in the root directory. If a tag contains "lib", the directory changes to "src" and the support library is released. (Thanks to @lukewrites for detailing this solution for multiple pypi packages in one repo in their repo here: https://github.com/lukewrites/silly-package)

Tested on my local fork with the test pypi repository.

This also contains a version bump for both plugin and lib packages so that once merged, we can tag this commit and release it.

Example jobs:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@johnttompkins johnttompkins changed the title Add travis release Add travis release for both plugin and support lib. Nov 4, 2020
import logging

__version__ = "2.1.1"
__version__ = "2.1.2"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

releasing both?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

why not. need to update the template for requirements anyway to be less strict

@johnttompkins
johnttompkins merged commit 333aff6 into aws-cloudformation:master Nov 4, 2020
@johnttompkins
johnttompkins deleted the add-travis-release branch November 4, 2020 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants