First crack at setup.py file. Took my best guess on a version number and a couple of other things

This commit is contained in:
winhamwr
2009-12-19 08:41:04 +08:00
committed by Michael Jones
parent fbe5cf8fed
commit 8669f9b3d6
2 changed files with 78 additions and 0 deletions
+67
View File
@@ -0,0 +1,67 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
import unittest
try:
from setuptools import setup, find_packages, Command
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages, Command
import sphinxtogithub
class RunTests(Command):
description = "Run the sphinxtogithub test suite."
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
suites = [
sphinxtogithub.test.filehandler.testSuite(),
sphinxtogithub.test.directoryhandler.testSuite(),
sphinxtogithub.test.replacer.testSuite(),
sphinxtogithub.test.renamer.testSuite(),
]
suite = unittest.TestSuite(suites)
runner = unittest.TextTestRunner()
runner.run(suite)
long_description = codecs.open("README.rst", "r", "utf-8").read()
setup(
name='sphinxtogithub',
version=sphinxtogithub.__version__,
description=sphinxtogithub.__doc__,
author=sphinxtogithub.__author__,
author_email=sphinxtogithub.__contact__,
url=sphinxtogithub.__homepage__,
platforms=["any"],
license="BSD",
packages=find_packages('sphinxtogithub'),
scripts=["bin/sphinxtogithub"],
zip_safe=False,
install_requires=[],
cmdclass = {"test": RunTests},
classifiers=[
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Environment :: Plugins",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Topic :: Documentation",
],
long_description=long_description,
)
+11
View File
@@ -0,0 +1,11 @@
"""Script for preparing the html output of the Sphinx documentation system for
github pages. """
VERSION = (0, 9, 0, 'dev')
__version__ = ".".join(map(str, VERSION[:1]))
__release__ = ".".join(map(str, VERSION))
__author__ = "Michael Jones"
__contact__ = "http://github.com/michaeljones"
__homepage__ = "http://github.com/michaeljones/sphinx-to-github"
__docformat__ = "restructuredtext"