From 13a2e6318681f649bfb263737f7224583e02f13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Voron?= Date: Sun, 20 Oct 2019 10:31:41 +0200 Subject: [PATCH] Setup bumpversion --- Makefile | 9 +++++++++ Pipfile | 1 + Pipfile.lock | 10 +++++++++- setup.cfg | 12 +++++++++--- 4 files changed, 28 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b34dc770..784de431 100644 --- a/Makefile +++ b/Makefile @@ -17,3 +17,12 @@ docs-serve: docs-publish: $(PIPENV_RUN) mkdocs gh-deploy + +bumpversion-major: + $(PIPENV_RUN) bumpversion major + +bumpversion-minor: + $(PIPENV_RUN) bumpversion minor + +bumpversion-patch: + $(PIPENV_RUN) bumpversion patch diff --git a/Pipfile b/Pipfile index f63250e6..5a9b40a8 100644 --- a/Pipfile +++ b/Pipfile @@ -23,6 +23,7 @@ flit = "*" markdown-include = "*" pygments = "*" pymdown-extensions = "*" +bumpversion = "*" [packages] fastapi = "==0.42.0" diff --git a/Pipfile.lock b/Pipfile.lock index c1a3b6b0..04a8af58 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "1985abdc79db7e7cbe29782026b32ae0099107ed8ac4ec22687848f14c04a512" + "sha256": "8a73a905540f241084c5015721cc190f76864c21bcc0568441ee28baca4edc9a" }, "pipfile-spec": 6, "requires": { @@ -218,6 +218,14 @@ "index": "pypi", "version": "==19.3b0" }, + "bumpversion": { + "hashes": [ + "sha256:6744c873dd7aafc24453d8b6a1a0d6d109faf63cd0cd19cb78fd46e74932c77e", + "sha256:6753d9ff3552013e2130f7bc03c1007e24473b4835952679653fb132367bdd57" + ], + "index": "pypi", + "version": "==0.5.3" + }, "certifi": { "hashes": [ "sha256:e4f3620cfea4f83eedc95b24abd9cd56f3c4b146dd0177e83a21b4eb49e21e50", diff --git a/setup.cfg b/setup.cfg index 87c7bfc7..97ff572f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,14 +1,20 @@ +[bumpversion] +current_version = 0.0.2 +commit = True +tag = True + +[bumpversion:file:fastapi_users/__init__.py] +search = __version__ = "{current_version}" +replace = __version__ = "{new_version}" + [flake8] exclude = docs -# Match line length of Black max-line-length = 88 docstring-convention = numpy -# Disable D1* rules which force to have docstring everywhere ignore = D1 [isort] atomic = true -# Match line length of Black line_length = 88 multi_line_output = 5 known_standard_library = types