From af0a8cd53117e7d0b8d0a12f206592ff4c5a8d16 Mon Sep 17 00:00:00 2001 From: Maximilian Speicher Date: Fri, 26 Feb 2021 18:58:24 +0100 Subject: [PATCH 1/2] Bump2version setup --- .bumpversion.cfg | 39 +++++++++++++++++++++++++++++++++++++++ requirements-dev.txt | 1 + 2 files changed, 40 insertions(+) create mode 100644 .bumpversion.cfg diff --git a/.bumpversion.cfg b/.bumpversion.cfg new file mode 100644 index 000000000..25db46c12 --- /dev/null +++ b/.bumpversion.cfg @@ -0,0 +1,39 @@ +[bumpversion] +current_version = 2.4.0 +commit = True +tag = True +tag_name = {new_version} + +[bumpversion:file:README.md] + +[bumpversion:file:CONTRIBUTING_COMMON_ERRORS.md] + +[bumpversion:file:tests/test_metadata.py] + +[bumpversion:file:docs/source/install.rst] + +[bumpversion:file:docs/source/what.rst] + +[bumpversion:file:awswrangler/__metadata__.py] + +[bumpversion:file:awswrangler/athena/_read.py] + +[bumpversion:file:awswrangler/s3/_read_parquet.py] + +[bumpversion:file:awswrangler/s3/_read_text.py] + +[bumpversion:file:awswrangler/s3/_write_parquet.py] + +[bumpversion:file:awswrangler/s3/_write_text.py] + +[bumpversion:file:tutorials/001 - Introduction.ipynb] + +[bumpversion:file:tutorials/007 - Redshift, MySQL, PostgreSQL, SQL Server.ipynb] + +[bumpversion:file:tutorials/014 - Schema Evolution.ipynb] + +[bumpversion:file:tutorials/021 - Global Configurations.ipynb] + +[bumpversion:file:tutorials/022 - Writing Partitions Concurrently.ipynb] + +[bumpversion:file:tutorials/023 - Flexible Partitions Filter.ipynb] diff --git a/requirements-dev.txt b/requirements-dev.txt index 18b5468a1..5f9e3b672 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -24,4 +24,5 @@ moto==2.0.0 jupyterlab==3.0.9 s3fs==0.4.2 python-Levenshtein==0.12.2 +bump2version==1.0.1 -e .[sqlserver] From b57bd7da13e142807850bee808309cc69c766cdf Mon Sep 17 00:00:00 2001 From: Maximilian Speicher Date: Fri, 26 Feb 2021 19:42:53 +0100 Subject: [PATCH 2/2] Add how-to in CONTRIBUTING.md --- CONTRIBUTING.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 81361573d..efbc1510f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -246,3 +246,10 @@ or Check the file below to check the common errors and solutions [ERRORS](https://github.com/awslabs/aws-data-wrangler/blob/main/CONTRIBUTING_COMMON_ERRORS.md) + +## Bumping version +When there is a new release you can use `bump2version` for updating the version number in relevant files. +You can run `bump2version major|minor|patch` in the top directory and the following steps will be executed: +- The version number in all files which are listed in `.bumpversion.cfg` is updated +- A new commit with message `Bump version: {current_version} → {new_version}` is created +- A new Git tag `{new_version}` is created