From 65b649869bb4f0ab1aad5deb3a30973a45082d4a Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 5 Mar 2016 08:56:02 -0500 Subject: [PATCH] Derive description, url, and namespace_packages from name --- setup.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index e6edf34..e825a5d 100644 --- a/setup.py +++ b/setup.py @@ -17,16 +17,20 @@ sphinx = ['sphinx'] if needs_sphinx else [] needs_wheel = {'release', 'bdist_wheel'}.intersection(sys.argv) wheel = ['wheel'] if needs_wheel else [] +name = 'skeleton' +description = '' + setup_params = dict( - name='skeleton', + name=name, use_scm_version=True, author="Jason R. Coombs", author_email="jaraco@jaraco.com", - description="skeleton", + description=description or name, long_description=long_description, - url="https://github.com/jaraco/skeleton", + url="https://github.com/jaraco/" + name, packages=setuptools.find_packages(), include_package_data=True, + namespace_packages=name.split('.')[:-1], install_requires=[ ], extras_require={