File tree 5 files changed +54
-25
lines changed
5 files changed +54
-25
lines changed Original file line number Diff line number Diff line change
1
+ [bumpversion]
2
+ current_version = 1.1.2
3
+ commit = True
4
+ tag = False
5
+ tag_name = " {new_version}"
6
+ parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
7
+ serialize =
8
+ {major}.{minor}.{patch}
9
+
10
+ [bumpversion:file:src/relativedeltafield/__init__.py]
11
+ search = __version__ = ' {current_version}'
12
+ replace = __version__ = ' {new_version}'
13
+
14
+ ; [bumpversion:file:pyproject.toml]
15
+ ; search = version = {current_version}
16
+ ; replace = {new_version}
17
+ ;
Original file line number Diff line number Diff line change 3
3
! . * .example
4
4
! .travis.yml
5
5
! .editorconfig
6
+ ! tests /.coveragerc
7
+ ! .bumpversion.cfg
6
8
7
9
~build /
8
10
Original file line number Diff line number Diff line change 1
- .PHONY : help
1
+ .PHONY : help buil
2
2
.DEFAULT_GOAL := help
3
3
4
- define BROWSER_PYSCRIPT
5
- import os, webbrowser, sys
6
-
7
- from urllib.request import pathname2url
8
-
9
- webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1])))
10
- endef
11
- export BROWSER_PYSCRIPT
12
-
13
- define PRINT_HELP_PYSCRIPT
14
- import re, sys
15
-
16
- for line in sys.stdin:
17
- match = re.match(r'^([a-zA-Z_-]+):.*?# # (.*)$$', line)
18
- if match:
19
- target, help = match.groups()
20
- print("%-20s %s" % (target, help))
21
- endef
22
- export PRINT_HELP_PYSCRIPT
23
-
24
- BROWSER := python -c "$$BROWSER_PYSCRIPT"
25
4
26
5
help :
27
- @python -c " $$ PRINT_HELP_PYSCRIPT " < $( MAKEFILE_LIST )
6
+ @echo " Bumps version "
28
7
29
8
30
- bump : # # Bumps version
9
+ bump :
31
10
@while : ; do \
32
11
read -r -p " bumpversion [major/minor/patch]: " PART; \
33
12
case " $$ PART" in \
34
13
major| minor| patch) break ;; \
35
14
esac \
36
15
done ; \
37
- bumpversion --no-commit --allow-dirty $$PART
16
+ bumpversion --no-commit --allow-dirty $$PART
Original file line number Diff line number Diff line change 8
8
from datetime import timedelta
9
9
from dateutil .relativedelta import relativedelta
10
10
11
+ __version__ = '1.1.2'
12
+
11
13
# This is not quite ISO8601, as it allows the SQL/Postgres extension
12
14
# of allowing a minus sign in the values, and you can mix weeks with
13
15
# other units (which ISO doesn't allow).
Original file line number Diff line number Diff line change
1
+ [run]
2
+ branch = True
3
+ source = relativedeltafield
4
+ include =
5
+
6
+ # omit = django
7
+
8
+ [report]
9
+ # Regexes for lines to exclude from consideration
10
+ exclude_lines =
11
+ # Have to re-enable the standard pragma
12
+ pragma: no cover
13
+ pragma: no-cover
14
+ # Don't complain about missing debug-only code:
15
+ def __repr__
16
+ if self\.debug
17
+ # Don't complain if tests don't hit defensive assertion code:
18
+ raise AssertionError
19
+ raise NotImplementedError
20
+ # Don't complain if non-runnable code isn't run:
21
+ # if 0:
22
+ if __name__ == .__main__.:
23
+ raise template.TemplateSyntaxError
24
+ raise ImproperlyConfigure
25
+
26
+ ignore_errors = True
27
+
28
+ [html]
29
+ directory = ~build/coverage
You can’t perform that action at this time.
0 commit comments