X-Git-Url: https://git.phdru.name/?p=cookiecutter.git;a=blobdiff_plain;f=project_template%2Fsetup.py;h=d02a035e58c66289d9cb15da641eebdedf4c5cec;hp=94c8d956c47bde66d0603ced1d20654cee090f65;hb=6a7d2b1db82fdb67cecb7504b414e30f08794dd7;hpb=0ae7aa141c078a33a8f4c60849497f881e08ce19 diff --git a/project_template/setup.py b/project_template/setup.py index 94c8d95..d02a035 100755 --- a/project_template/setup.py +++ b/project_template/setup.py @@ -2,29 +2,34 @@ from imp import load_source from os.path import abspath, dirname, join - -try: - from setuptools import setup - is_setuptools = True -except ImportError: - from distutils.core import setup - is_setuptools = False +from setuptools import setup versionpath = join(abspath(dirname(__file__)), '{project}', '__version__.py') -load_source('{project}_version', versionpath) -# Ignore: E402 module level import not at top of file -from {project}_version import __version__ # noqa +{project}_version = load_source('{project}_version', versionpath) setup(name='{project}', - version=__version__, + version={project}_version.__version__, description='Broytman {project}', - long_description=open('README.txt', 'rtU').read(), + long_description=open('README.rst', 'rU').read(), + long_description_content_type="text/x-rst", author='Oleg Broytman', author_email='phd@phdru.name', url='http://phdru.name/Software/Python/{project}', + download_url='http://phdru.name/Software/Python/{project}', + project_urls={ + 'Homepage': 'http://phdru.name/Software/Python/{project}', + 'Documentation': + 'http://phdru.name/Software/Python/{project}/docs/', + 'Russian docs': + 'http://phdru.name/Software/Python/{project}/docs/ru/', + 'Download': 'http://phdru.name/Software/Python/{project}', + 'Git repo': 'http://git.phdru.name/{project}.git/', + 'Github repo': 'https://github.com/phdru/{project}', + 'Issue tracker': 'https://github.com/phdru/{project}/issues', + }, license='GPL', - platforms=['any'], keywords=[''], + platforms='Any', classifiers=[ 'Development Status :: 1 - Planning', 'Environment :: Console', @@ -33,7 +38,6 @@ setup(name='{project}', 'License :: OSI Approved :: GNU General Public License (GPL)', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', @@ -44,5 +48,6 @@ setup(name='{project}', packages=['{project}'], package_data={'{project}': []}, scripts=[], + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*', requires=[], )