X-Git-Url: https://git.phdru.name/?p=cookiecutter.git;a=blobdiff_plain;f=project_template%2Fsetup.py;h=f2bd980b72e56c6e5e3b30c650b329d53837ee74;hp=9cde6ed1e10b260d611cdefe27d0105a2901494e;hb=42f303c9e549305fecdac57682cb2da5bad90f38;hpb=8c864209256af5d88eee2eefc74c86c32b24d911 diff --git a/project_template/setup.py b/project_template/setup.py index 9cde6ed..f2bd980 100755 --- a/project_template/setup.py +++ b/project_template/setup.py @@ -2,17 +2,7 @@ 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 - -kw = {} -if is_setuptools: - kw['python_requires'] = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*' +from setuptools import setup versionpath = join(abspath(dirname(__file__)), '{project}', '__version__.py') {project}_version = load_source('{project}_version', versionpath) @@ -24,6 +14,17 @@ setup(name='{project}', author='Oleg Broytman', author_email='phd@phdru.name', 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', keywords=[''], platforms='Any', @@ -45,6 +46,6 @@ setup(name='{project}', packages=['{project}'], package_data={'{project}': []}, scripts=[], + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*', requires=[], - **kw )