9
9
10
10
NAME = 'moban'
11
11
AUTHOR = 'C. W.'
12
- VERSION = '0.1.2 '
12
+ VERSION = '0.1.3 '
13
13
EMAIL = 'wangc_2011@hotmail.com'
14
14
LICENSE = 'MIT'
15
15
ENTRY_POINTS = {
21
21
'Yet another jinja2 cli command for static text generation'
22
22
)
23
23
URL = 'https://github.com/moremoban/moban'
24
- DOWNLOAD_URL = '%s/archive/0.1.2 .tar.gz' % URL
25
- FILES = ['README.rst' , 'CHANGELOG.rst' ]
24
+ DOWNLOAD_URL = '%s/archive/0.1.3 .tar.gz' % URL
25
+ FILES = ['README.rst' , 'CHANGELOG.rst' ]
26
26
KEYWORDS = [
27
27
'jinja2' ,
28
28
'moban' ,
48
48
'jinja2>=2.7.1' ,
49
49
'crayons' ,
50
50
]
51
+ SETUP_COMMANDS = {}
51
52
52
53
53
54
PACKAGES = find_packages (exclude = ['ez_setup' , 'examples' , 'tests' ])
56
57
# You do not need to read beyond this line
57
58
PUBLISH_COMMAND = '{0} setup.py sdist bdist_wheel upload -r pypi' .format (
58
59
sys .executable )
59
- GS_COMMAND = ('gs moban v0.1.2 ' +
60
- "Find 0.1.2 in changelog for more details" )
60
+ GS_COMMAND = ('gs moban v0.1.3 ' +
61
+ "Find 0.1.3 in changelog for more details" )
61
62
NO_GS_MESSAGE = ('Automatic github release is disabled. ' +
62
63
'Please install gease to enable it.' )
63
64
UPLOAD_FAILED_MSG = (
@@ -86,6 +87,8 @@ def run(self):
86
87
try :
87
88
self .status ('Removing previous builds...' )
88
89
rmtree (os .path .join (HERE , 'dist' ))
90
+ rmtree (os .path .join (HERE , 'build' ))
91
+ rmtree (os .path .join (HERE , 'moban.egg-info' ))
89
92
except OSError :
90
93
pass
91
94
@@ -102,6 +105,11 @@ def run(self):
102
105
sys .exit ()
103
106
104
107
108
+ SETUP_COMMANDS .update ({
109
+ 'publish' : PublishCommand
110
+ })
111
+
112
+
105
113
def has_gease ():
106
114
"""
107
115
test if github release command is installed
@@ -176,7 +184,5 @@ def filter_out_test_code(file_handle):
176
184
zip_safe = False ,
177
185
entry_points = ENTRY_POINTS ,
178
186
classifiers = CLASSIFIERS ,
179
- cmdclass = {
180
- 'publish' : PublishCommand ,
181
- }
187
+ cmdclass = SETUP_COMMANDS
182
188
)
0 commit comments