Skip to content

Commit e204c2d

Browse files
authored
Bump2version setup (#574)
1 parent d9cc5f2 commit e204c2d

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

.bumpversion.cfg

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[bumpversion]
2+
current_version = 2.4.0
3+
commit = True
4+
tag = True
5+
tag_name = {new_version}
6+
7+
[bumpversion:file:README.md]
8+
9+
[bumpversion:file:CONTRIBUTING_COMMON_ERRORS.md]
10+
11+
[bumpversion:file:tests/test_metadata.py]
12+
13+
[bumpversion:file:docs/source/install.rst]
14+
15+
[bumpversion:file:docs/source/what.rst]
16+
17+
[bumpversion:file:awswrangler/__metadata__.py]
18+
19+
[bumpversion:file:awswrangler/athena/_read.py]
20+
21+
[bumpversion:file:awswrangler/s3/_read_parquet.py]
22+
23+
[bumpversion:file:awswrangler/s3/_read_text.py]
24+
25+
[bumpversion:file:awswrangler/s3/_write_parquet.py]
26+
27+
[bumpversion:file:awswrangler/s3/_write_text.py]
28+
29+
[bumpversion:file:tutorials/001 - Introduction.ipynb]
30+
31+
[bumpversion:file:tutorials/007 - Redshift, MySQL, PostgreSQL, SQL Server.ipynb]
32+
33+
[bumpversion:file:tutorials/014 - Schema Evolution.ipynb]
34+
35+
[bumpversion:file:tutorials/021 - Global Configurations.ipynb]
36+
37+
[bumpversion:file:tutorials/022 - Writing Partitions Concurrently.ipynb]
38+
39+
[bumpversion:file:tutorials/023 - Flexible Partitions Filter.ipynb]

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,3 +246,10 @@ or
246246

247247
Check the file below to check the common errors and solutions
248248
[ERRORS](https://github.com/awslabs/aws-data-wrangler/blob/main/CONTRIBUTING_COMMON_ERRORS.md)
249+
250+
## Bumping version
251+
When there is a new release you can use `bump2version` for updating the version number in relevant files.
252+
You can run `bump2version major|minor|patch` in the top directory and the following steps will be executed:
253+
- The version number in all files which are listed in `.bumpversion.cfg` is updated
254+
- A new commit with message `Bump version: {current_version} → {new_version}` is created
255+
- A new Git tag `{new_version}` is created

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ moto==2.0.0
2424
jupyterlab==3.0.9
2525
s3fs==0.4.2
2626
python-Levenshtein==0.12.2
27+
bump2version==1.0.1
2728
-e .[sqlserver]

0 commit comments

Comments
 (0)