File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 9
9
10
10
.PHONY : release
11
11
release : lock dist
12
- # check that changelog is updated
13
- if ! grep ${version} CHANGELOG.rst
12
+ # check that changelog is updated. only look at first 3 parts of semver
13
+ version=$(version )
14
+ stripped=$$(echo $${version} | cut -d . -f -3 )
15
+ if ! grep $$ {stripped} CHANGELOG.rst
14
16
then
15
17
echo " Changelog doesn't seem to be updated! Quitting..."
16
18
exit 1
@@ -20,14 +22,22 @@ release: lock dist
20
22
21
23
.PHONY : lock
22
24
lock :
23
- # make a requirements.txt lockfile
25
+ # run tests then make a requirements.txt lockfile
24
26
rm -rf .venv_lock
25
27
virtualenv .venv_lock
26
28
. .venv_lock/bin/activate
27
29
pip install .[test]
28
30
python tests/tests.py
29
31
pip freeze > requirements.txt
30
32
33
+ .PHONY : tag
34
+ tag :
35
+ # tag git commit
36
+ git add requirements.txt
37
+ git add CHANGELOG.rst
38
+ git commit -m " bump version"
39
+ git tag -a v$(version ) -m " version $( version) "
40
+
31
41
32
42
.PHONY : docs
33
43
docs :
You can’t perform that action at this time.
0 commit comments