File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 12
12
$(info sdist)
13
13
14
14
doc :
15
- cd docs && make html
15
+ cd doc && make html
16
16
17
17
clean-docs :
18
- cd docs && make clean
18
+ cd doc && make clean
19
19
20
20
clean-files :
21
21
git clean -fx
22
+ rm -rf build/ dist/
22
23
23
24
clean : clean-files clean-docs
24
25
@@ -34,4 +35,15 @@ build:
34
35
sdist :
35
36
./setup.py sdist
36
37
37
-
38
+ release : clean
39
+ # Check if latest tag is the current head we're releasing
40
+ echo " Latest tag = $$ (git tag | sort -nr | head -n1)"
41
+ echo " HEAD SHA = $$ (git rev-parse head)"
42
+ echo " Latest tag SHA = $$ (git tag | sort -nr | head -n1 | xargs git rev-parse)"
43
+ @test " $$ (git rev-parse head)" = " $$ (git tag | sort -nr | head -n1 | xargs git rev-parse)"
44
+ make force_release
45
+
46
+ force_release : clean
47
+ git push --tags
48
+ python setup.py sdist bdist_wheel
49
+ twine upload -s -i byronimo@gmail.com dist/*
Original file line number Diff line number Diff line change 50
50
"Programming Language :: Python :: 3" ,
51
51
"Programming Language :: Python :: 3.3" ,
52
52
"Programming Language :: Python :: 3.4" ,
53
+ "Programming Language :: Python :: 3.5" ,
54
+ "Programming Language :: Python :: 3.6" ,
53
55
],
54
56
long_description = long_description ,
55
57
tests_require = ('nose' , 'nosexcover' ),
Original file line number Diff line number Diff line change 3
3
__author__ = "Sebastian Thiel"
4
4
__contact__ = "byronimo@gmail.com"
5
5
__homepage__ = "https://github.com/Byron/smmap"
6
- version_info = (2 , 0 , 1 )
6
+ version_info = (2 , 0 , 2 )
7
7
__version__ = '.' .join (str (i ) for i in version_info )
8
8
9
9
# make everything available in root package for convenience
You can’t perform that action at this time.
0 commit comments