File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,10 @@ EXTRAS_REQUIRE = {
122
122
EXTRAS_REQUIRE = {}
123
123
{% endif %}
124
124
{% endif %}
125
- __PUBLISH_COMMAND = '{0} setup.py sdist bdist_wheel upload -r pypi'.format(
125
+ PUBLISH_COMMAND = '{0} setup.py sdist bdist_wheel upload -r pypi'.format(
126
126
sys.executable)
127
- __GS_COMMAND = ('gs {{name}} v{{release}} ' +
128
- "Find {{release}} in changelog more details")
127
+ GS_COMMAND = ('gs {{name}} v{{release}} ' +
128
+ "Find {{release}} in changelog more details")
129
129
here = os.path.abspath(os.path.dirname(__file__))
130
130
131
131
@@ -154,8 +154,8 @@ class PublishCommand(Command):
154
154
pass
155
155
156
156
self.status('Building Source and Wheel (universal) distribution…')
157
- os.system(__GS_COMMAND)
158
- os.system(__PUBLISH_COMMAND )
157
+ if os.system(GS_COMMAND) == 0:
158
+ os.system(PUBLISH_COMMAND )
159
159
160
160
sys.exit()
161
161
@@ -231,7 +231,7 @@ if __name__ == '__main__':
231
231
{% endif %}
232
232
{% endif%}
233
233
classifiers=CLASSIFIERS,
234
- setup_requires=['gease'],
234
+ setup_requires=['gease'],
235
235
cmdclass={
236
236
'publish': PublishCommand,
237
237
}
You can’t perform that action at this time.
0 commit comments