Setup bumpversion

This commit is contained in:
François Voron
2019-10-20 10:31:41 +02:00
parent f337bf1491
commit 13a2e63186
4 changed files with 28 additions and 4 deletions

View File

@@ -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

View File

@@ -23,6 +23,7 @@ flit = "*"
markdown-include = "*"
pygments = "*"
pymdown-extensions = "*"
bumpversion = "*"
[packages]
fastapi = "==0.42.0"

10
Pipfile.lock generated
View File

@@ -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",

View File

@@ -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