Skip to content

Commit

Permalink
Merge pull request #131 from YakDriver/azurepipes
Browse files Browse the repository at this point in the history
Integrate with Azure Pipes
  • Loading branch information
YakDriver authored Feb 27, 2020
2 parents 7744e2f + 2906fd3 commit 9a46f23
Show file tree
Hide file tree
Showing 7 changed files with 199 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.1.18
current_version = 0.1.19
commit = False
tag = False
tag_name = {new_version}
Expand Down
183 changes: 183 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
## Changelog

### 0.1.19

**Commit Delta**: [Change from 0.1.17 release](https://github.com/plus3it/watchmaker/compare/0.1.17...0.1.19)

**Released**: 2020.02.27

**Summary**:

* (ENHANCEMENT) Improve integration with Azure Pipelines, using commitish and repository slug automatically.

### 0.1.17

**Commit Delta**: [Change from 0.1.16 release](https://github.com/plus3it/watchmaker/compare/0.1.16...0.1.17)

**Released**: 2020.01.15

**Summary**:

* (ENHANCEMENT) Remove pipenv files, update setup.cfg dependency versions.

### 0.1.16

**Commit Delta**: [Change from 0.1.15 release](https://github.com/plus3it/watchmaker/compare/0.1.15...0.1.16)

**Released**: 2020.01.14

**Summary**:

* (ENHANCEMENT) New version with updated dependencies versions.

### 0.1.15

**Commit Delta**: [Change from 0.1.14 release](https://github.com/plus3it/watchmaker/compare/0.1.14...0.1.15)

**Released**: 2019.05.06

**Summary**:

* (ENHANCEMENT) New version with updated dependencies versions.

### 0.1.14

**Commit Delta**: [Change from 0.1.13 release](https://github.com/plus3it/watchmaker/compare/0.1.13...0.1.14)

**Released**: 2019.04.22

**Summary**:

* (ENHANCEMENT) New version with updated dependencies versions.

### 0.1.13

**Commit Delta**: [Change from 0.1.12 release](https://github.com/plus3it/watchmaker/compare/0.1.12...0.1.13)

**Released**: 2019.01.29

**Summary**:

* (ENHANCEMENT) Clean up code.
* (ENHANCEMENT) Transfer to Plus3IT.

### 0.1.12

**Commit Delta**: [Change from 0.1.11 release](https://github.com/plus3it/watchmaker/compare/0.1.11...0.1.12)

**Released**: 2019.01.25

**Summary**:

* (ENHANCEMENT) Code clean up.
* (ENHANCEMENT) Add pylint, flake8 to CI.
* (ENHANCEMENT) Revamp Travis CI to test Windows, Mac, Linux.

### 0.1.11

**Commit Delta**: [Change from 0.1.10 release](https://github.com/plus3it/watchmaker/compare/0.1.10...0.1.11)

**Released**: 2018.06.05

**Summary**:

* (ENHANCEMENT) Updated for compatibility with GravityBee's new directory structure (using ``.gravitybee`` directory).

### 0.1.10

**Commit Delta**: [Change from 0.1.9 release](https://github.com/plus3it/watchmaker/compare/0.1.9...0.1.10)

**Released**: 2018.05.25

**Summary**:

* (ENHANCEMENT) Updated for compatibility with GravityBee.

### 0.1.9

**Commit Delta**: [Change from 0.1.8 release](https://github.com/plus3it/watchmaker/compare/0.1.8...0.1.9)

**Released**: 2018.05.25

**Summary**:

* (ENHANCEMENT) Code clean up.
* (ENHANCEMENT) Changed SHA default to None.
* (FIX) Fixed bug in tests affecting SHA hash test.

### 0.1.8

**Commit Delta**: [Change from 0.1.7 release](https://github.com/plus3it/watchmaker/compare/0.1.7...0.1.8)

**Released**: 2018.05.14

**Summary**:

* (ENHANCEMENT) Tag can now be based on info file written by GravityBee (app version from).
* (ENHANCEMENT) Allow sha256 hashes to be added to label or uploaded as a separate file.
* (ENHANCEMENT) Improved testing of SHA hash (downloading file and recalculating.
* (ENHANCEMENT) Added ability to recreate releases in order to update the tag/commitish associated with the release. Otherwise,releases can be updated but will always point to the same tag/commitish.
* (FIX) Fixed various bugs with SHA hashes, creating releases, deleting tags, and revamped upload error handling.

### 0.1.7

**Commit Delta**: [Change from 0.1.6 release](https://github.com/plus3it/watchmaker/compare/0.1.6...0.1.7)

**Released**: 2018.05.11

**Summary**:

* (FIX) Many bug fixes improving compatibility with Windows.
* (ENHANCEMENT) Use new GravityBee file (``gravitybee-files.json``).

### 0.1.6

**Commit Delta**: [Change from 0.1.5 release](https://github.com/plus3it/watchmaker/compare/0.1.5...0.1.6)

**Released**: 2018.05.10

**Summary**:

* (FIX) Wasn't deleting release asset if file given that didn't exist locally.
* (ENHANCEMENT) Added --force option to delete tags and releases using pattern matching.

### 0.1.5

**Commit Delta**: [Change from 0.1.4 release](https://github.com/plus3it/watchmaker/compare/0.1.4...0.1.5)

**Released**: 2018.05.10

**Summary**:

* (FIX) Implemented file (release asset) delete
* (ENHANCEMENT) Generally improved asset handling including SHA256 sums for files and better error handling

### 0.1.4

**Commit Delta**: [Change from 0.1.3 release](https://github.com/plus3it/watchmaker/compare/0.1.3...0.1.4)

**Released**: 2018.05.08

**Summary**:

* (FIX) Looked like an error was occuring because returning True instead of os.EX_OK.

### 0.1.3

**Commit Delta**: [Change from 0.1.2 release](https://github.com/plus3it/watchmaker/compare/0.1.2...0.1.3)

**Released**: 2018.05.07

**Summary**:

* (ENHANCEMENT) Added POSIX-style filename pattern matching for cleaning up tags.

### 0.1.2

**Commit Delta**: [Change from 0.1.1 release](https://github.com/plus3it/watchmaker/compare/0.1.1...0.1.2)

**Released**: 2018.05.07

**Summary**:

* Initial release!
91 changes: 0 additions & 91 deletions CHANGELOG.rst

This file was deleted.

7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ SATS_RECREATE_OK --recreate **[Flag]** Indicates whether a release
SATS_SLUG -s, --slug **[Required]** Either repo and user or
the slug (in the form user/repo) must be
provided. *If not provided, it will default
to the value provided by Travis CI or
AppVeyor, if any.*
to the value provided by Travis CI, Azure
Pipelines or AppVeyor, if any.*
SATS_REPO -r, --repo **[Required]** The GitHub repository to
work with.
SATS_USER -u, --user **[Required]** The owner of the repository
Expand Down Expand Up @@ -232,7 +232,8 @@ SATS_COMMITISH --commitish Can be any branch or commit SHA. Unused
default
to the TRAVIS_COMMIT environment variable
provided by
Travis CI or APPVEYOR_REPO_COMMIT from
Travis CI or BUILD_SOURCEVERSION from Azure
Pipelines or APPVEYOR_REPO_COMMIT from
AppVeyor, if any. If none is provided,
GitHub will default to the default branch.*
SATS_INCLUDE_TAG --include-tag Whether to delete the tag when deleting the
Expand Down
11 changes: 8 additions & 3 deletions satsuki/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import github.GithubException


__version__ = "0.1.18"
__version__ = "0.1.19"
EXIT_OK = 0

logging.config.fileConfig(
Expand Down Expand Up @@ -182,7 +182,9 @@ def _init_basic(self, kwargs):
os.environ.get(
'TRAVIS_REPO_SLUG',
os.environ.get(
'APPVEYOR_REPO_NAME', None)))
'APPVEYOR_REPO_NAME',
os.environ.get(
'BUILD_REPOSITORY_NAME', None))))

if isinstance(self.opts["slug"], str) and '/' not in self.opts["slug"]:
logger.warning("Invalid repo slug: %s", self.opts["slug"])
Expand All @@ -208,7 +210,10 @@ def _init_basic(self, kwargs):
'commitish',
os.environ.get(
'TRAVIS_COMMIT',
os.environ.get('APPVEYOR_REPO_COMMIT', None)))
os.environ.get(
'APPVEYOR_REPO_COMMIT',
os.environ.get(
'BUILD_SOURCEVERSION', None))))

self.opts["gb_info_file"] = kwargs.get(
'gb_info_file',
Expand Down
3 changes: 2 additions & 1 deletion satsuki/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
+ 'default '
+ 'to the TRAVIS_COMMIT environment variable '
+ 'provided by '
+ 'Travis CI or APPVEYOR_REPO_COMMIT from '
+ 'Travis CI or BUILD_SOURCEVERSION from Azure Pipelines or '
+ 'APPVEYOR_REPO_COMMIT from '
+ 'AppVeyor, if any. If none is provided, '
+ 'GitHub will default to the default branch.')
@click.option('--include-tag', 'include_tag', envvar='SATS_INCLUDE_TAG',
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[metadata]
name = satsuki
description = Manage GitHub releases and release assets.
version = 0.1.18
version = 0.1.19
author = YakDriver
long_description = file: README.rst, CHANGELOG.rst
author_email = [email protected]
Expand Down

0 comments on commit 9a46f23

Please sign in to comment.