diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 7c28ff6..2afd684 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.1.18 +current_version = 0.1.19 commit = False tag = False tag_name = {new_version} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..6daf3e5 --- /dev/null +++ b/CHANGELOG.md @@ -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! diff --git a/CHANGELOG.rst b/CHANGELOG.rst deleted file mode 100644 index a86c144..0000000 --- a/CHANGELOG.rst +++ /dev/null @@ -1,91 +0,0 @@ -CHANGE LOG -========== - -0.1.17 - 2020.01.15 -------------------- -* [ENHANCEMENT] Remove pipenv files, update setup.cfg dependency versions. - -0.1.16 - 2020.01.14 -------------------- -* [ENHANCEMENT] New version with updated dependencies versions. - -0.1.15 - 2019.05.06 -------------------- -* [ENHANCEMENT] New version with updated dependencies versions. - -0.1.14 - 2019.04.22 -------------------- -* [ENHANCEMENT] New version with updated dependencies versions. - -0.1.13 - 2019.01.29 -------------------- -* [ENHANCEMENT] Clean up code. -* [ENHANCEMENT] Transfer to Plus3IT. - -0.1.12 - 2019.01.25 -------------------- -* [ENHANCEMENT] Code clean up. -* [ENHANCEMENT] Add pylint, flake8 to CI. -* [ENHANCEMENT] Revamp Travis CI to test Windows, Mac, Linux. - -0.1.11 - 2018.06.05 -------------------- -* [ENHANCEMENT] Updated for compatibility with GravityBee's - new directory structure (using ``.gravitybee`` directory). - -0.1.10 - 2018.05.25 -------------------- -* [ENHANCEMENT] Updated for compatibility with GravityBee. - -0.1.9 - 2018.05.25 ------------------- -* [ENHANCEMENT] Code clean up. -* [ENHANCEMENT] Changed SHA default to None. -* [BUG FIX] Fixed bug in tests affecting SHA hash test. - -0.1.8 - 2018.05.14 ------------------- -* [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. -* [BUG FIX] Fixed various bugs with SHA hashes, creating releases, - deleting tags, and revamped upload error handling. - -0.1.7 - 2018.05.11 ------------------- -* [BUG FIX] Many bug fixes improving compatibility with Windows. -* [ENHANCEMENT] Use new GravityBee file (``gravitybee-files.json``). - -0.1.6 - 2018.05.10 ------------------- -* [BUG 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 - 2018.05.10 ------------------- -* [BUG FIX] Implemented file (release asset) delete -* [ENHANCEMENT] Generally improved asset handling including SHA256 sums - for files and better error handling - -0.1.4 - 2018.05.08 ------------------- -* [BUG FIX] Looked like an error was occuring because returning True - instead of os.EX_OK. - -0.1.3 - 2018.05.07 ------------------- -* [ENHANCEMENT] Added POSIX-style filename pattern matching for - cleaning up tags. - -0.1.2 - 2018.05.07 ------------------- -* Initial release! diff --git a/README.rst b/README.rst index dd2048a..20d94da 100644 --- a/README.rst +++ b/README.rst @@ -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 @@ -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 diff --git a/satsuki/__init__.py b/satsuki/__init__.py index 6c61921..40035a6 100644 --- a/satsuki/__init__.py +++ b/satsuki/__init__.py @@ -33,7 +33,7 @@ import github.GithubException -__version__ = "0.1.18" +__version__ = "0.1.19" EXIT_OK = 0 logging.config.fileConfig( @@ -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"]) @@ -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', diff --git a/satsuki/cli.py b/satsuki/cli.py index 5c911a8..6a4fdb7 100644 --- a/satsuki/cli.py +++ b/satsuki/cli.py @@ -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', diff --git a/setup.cfg b/setup.cfg index 5dd7731..d0fdaba 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 = projects@plus3it.com