Skip to content

Commit adf3b5a

Browse files
Introduce bumpversion to CI (#61)
1 parent 2f22555 commit adf3b5a

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.circleci/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ jobs:
3232
echo "[pypi]" >> ~/.pypirc
3333
echo "username = __token__" >> ~/.pypirc
3434
echo "password = $PYPI_TOKEN" >> ~/.pypirc
35+
- deploy:
36+
name: Install bumpversion
37+
command: |
38+
pip3 install bumpversion
39+
- add_ssh_keys:
40+
fingerprints:
41+
- "f5:b1:10:07:7f:2e:50:a0:ee:1c:0f:aa:dc:91:20:27"
42+
- deploy:
43+
name: Bump version
44+
command: |
45+
git config --global user.email "pandas_stubs-cicd@virtuslab.com"
46+
git config --global user.name "pandas_stubs-cicd"
47+
bumpversion release --commit
48+
git push origin master
3549
- deploy:
3650
name: Install twine
3751
command: |

setup.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[bumpversion]
2+
current_version = 1.1.0.12
3+
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)\.(?P<release>\d+)
4+
serialize =
5+
{major}.{minor}.{patch}.{release}
6+
message = [skip ci] Bump pandas-stubs version: {current_version} -> {new_version}
7+
8+
[bumpversion:file:setup.py]

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
from setuptools import setup
1010
import os
1111

12+
version = "1.1.0.12"
13+
14+
1215
# find_packages might not work with stub files
1316
src_path = os.path.join("third_party", "3")
1417

@@ -21,7 +24,7 @@ def list_packages(source_path: str = src_path) -> None:
2124
setup(
2225
name="pandas-stubs",
2326
package_dir={"": src_path},
24-
version="1.1.0.12",
27+
version=version,
2528
description="Type annotations for Pandas",
2629
long_description=(open("README.md").read()
2730
if os.path.exists("README.md") else ""),

0 commit comments

Comments
 (0)