99
1010NAME = 'moban'
1111AUTHOR = 'C. W.'
12- VERSION = '0.1.2 '
12+ VERSION = '0.1.3 '
13131414LICENSE = 'MIT'
1515ENTRY_POINTS = {
2121 'Yet another jinja2 cli command for static text generation'
2222)
2323URL = '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' ]
2626KEYWORDS = [
2727 'jinja2' ,
2828 'moban' ,
4848 'jinja2>=2.7.1' ,
4949 'crayons' ,
5050]
51+ SETUP_COMMANDS = {}
5152
5253
5354PACKAGES = find_packages (exclude = ['ez_setup' , 'examples' , 'tests' ])
5657# You do not need to read beyond this line
5758PUBLISH_COMMAND = '{0} setup.py sdist bdist_wheel upload -r pypi' .format (
5859 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" )
6162NO_GS_MESSAGE = ('Automatic github release is disabled. ' +
6263 'Please install gease to enable it.' )
6364UPLOAD_FAILED_MSG = (
@@ -86,6 +87,8 @@ def run(self):
8687 try :
8788 self .status ('Removing previous builds...' )
8889 rmtree (os .path .join (HERE , 'dist' ))
90+ rmtree (os .path .join (HERE , 'build' ))
91+ rmtree (os .path .join (HERE , 'moban.egg-info' ))
8992 except OSError :
9093 pass
9194
@@ -102,6 +105,11 @@ def run(self):
102105 sys .exit ()
103106
104107
108+ SETUP_COMMANDS .update ({
109+ 'publish' : PublishCommand
110+ })
111+
112+
105113def has_gease ():
106114 """
107115 test if github release command is installed
@@ -176,7 +184,5 @@ def filter_out_test_code(file_handle):
176184 zip_safe = False ,
177185 entry_points = ENTRY_POINTS ,
178186 classifiers = CLASSIFIERS ,
179- cmdclass = {
180- 'publish' : PublishCommand ,
181- }
187+ cmdclass = SETUP_COMMANDS
182188 )
0 commit comments