Improved setup.py.

pull/78/head
Fabio Caccamo 2020-02-17 13:00:17 +01:00
parent 427c1c2a00
commit 1caca70e0f
1 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,7 @@ exec(open('admin_interface/version.py').read())
github_url = 'https://github.com/fabiocaccamo' github_url = 'https://github.com/fabiocaccamo'
package_name = 'django-admin-interface' package_name = 'django-admin-interface'
package_url = '{}/{}'.format(github_url, package_name)
package_path = os.path.abspath(os.path.dirname(__file__)) package_path = os.path.abspath(os.path.dirname(__file__))
long_description_file_path = os.path.join(package_path, 'README.md') long_description_file_path = os.path.join(package_path, 'README.md')
long_description_content_type = 'text/markdown' long_description_content_type = 'text/markdown'
@ -29,8 +30,8 @@ setup(
long_description_content_type=long_description_content_type, long_description_content_type=long_description_content_type,
author='Fabio Caccamo', author='Fabio Caccamo',
author_email='fabio.caccamo@gmail.com', author_email='fabio.caccamo@gmail.com',
url='%s/%s' % (github_url, package_name, ), url=package_url,
download_url='%s/%s/archive/%s.tar.gz' % (github_url, package_name, __version__, ), download_url='{}/archive/{}.tar.gz'.format(package_url, __version__),
keywords=['django', 'admin', 'interface', 'responsive', 'flat', 'theme', 'custom', 'ui'], keywords=['django', 'admin', 'interface', 'responsive', 'flat', 'theme', 'custom', 'ui'],
requires=['django(>=1.7)'], requires=['django(>=1.7)'],
install_requires=[ install_requires=[