mirror of
https://github.com/kennethreitz-archive/sphinx-to-github.git
synced 2026-06-05 23:40:17 +00:00
Added ability to publish easily.
Whitespace fixes.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import codecs
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
try:
|
||||
@@ -16,7 +19,7 @@ from sphinxtogithub.tests import (
|
||||
directoryhandler,
|
||||
replacer,
|
||||
renamer,
|
||||
remover,
|
||||
remover,
|
||||
layout,
|
||||
layoutfactory,
|
||||
setup as setuptest,
|
||||
@@ -52,6 +55,15 @@ class RunTests(Command):
|
||||
runner.run(suite)
|
||||
|
||||
|
||||
def publish():
|
||||
"""Publish to PyPi"""
|
||||
os.system("python setup.py sdist upload")
|
||||
|
||||
if sys.argv[-1] == "publish":
|
||||
publish()
|
||||
sys.exit()
|
||||
|
||||
|
||||
|
||||
long_description = codecs.open("README.rst", "r", "utf-8").read()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user