mirror of
https://github.com/kennethreitz-archive/sphinx-to-github.git
synced 2026-06-05 23:40:17 +00:00
Re-arranged project in to a package for easy installation with pip and to remove the need to duplicate sphinxtogithub.py for testing
This commit is contained in:
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
import sys
|
||||
from sphinxtogithub.sphinxtogithub import main
|
||||
|
||||
if __name__ == "__main__":
|
||||
mains(sys.argv[1:])
|
||||
@@ -1,25 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import unittest
|
||||
import sys
|
||||
|
||||
sys.path.append(".")
|
||||
|
||||
from sphinxtogithub.test import directoryhandler, filehandler, replacer, renamer
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
suites = [
|
||||
filehandler.testSuite(),
|
||||
directoryhandler.testSuite(),
|
||||
replacer.testSuite(),
|
||||
renamer.testSuite(),
|
||||
]
|
||||
|
||||
suite = unittest.TestSuite(suites)
|
||||
|
||||
runner = unittest.TextTestRunner()
|
||||
|
||||
runner.run(suite)
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
../../sphinxtogithub.py
|
||||
Reference in New Issue
Block a user