Skip to content

Commit

Permalink
Introduce bumpversion to CI (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
joannasendorek authored Jul 12, 2021
1 parent 2f22555 commit adf3b5a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ jobs:
echo "[pypi]" >> ~/.pypirc
echo "username = __token__" >> ~/.pypirc
echo "password = $PYPI_TOKEN" >> ~/.pypirc
- deploy:
name: Install bumpversion
command: |
pip3 install bumpversion
- add_ssh_keys:
fingerprints:
- "f5:b1:10:07:7f:2e:50:a0:ee:1c:0f:aa:dc:91:20:27"
- deploy:
name: Bump version
command: |
git config --global user.email "[email protected]"
git config --global user.name "pandas_stubs-cicd"
bumpversion release --commit
git push origin master
- deploy:
name: Install twine
command: |
Expand Down
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[bumpversion]
current_version = 1.1.0.12
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)\.(?P<release>\d+)
serialize =
{major}.{minor}.{patch}.{release}
message = [skip ci] Bump pandas-stubs version: {current_version} -> {new_version}

[bumpversion:file:setup.py]
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
from setuptools import setup
import os

version = "1.1.0.12"


# find_packages might not work with stub files
src_path = os.path.join("third_party", "3")

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

0 comments on commit adf3b5a

Please sign in to comment.