Update setup.py
parent
6d46dfafc2
commit
84c15d2b28
124
setup.py
124
setup.py
|
|
@ -5,74 +5,94 @@ from setuptools import find_packages, setup
|
||||||
|
|
||||||
import os, sys
|
import os, sys
|
||||||
|
|
||||||
exec(open('admin_interface/version.py').read())
|
exec(open("admin_interface/version.py").read())
|
||||||
|
|
||||||
github_url = 'https://github.com/fabiocaccamo'
|
github_url = "https://github.com/fabiocaccamo"
|
||||||
package_name = 'django-admin-interface'
|
sponsor_url = "https://github.com/sponsors/fabiocaccamo/"
|
||||||
package_url = '{}/{}'.format(github_url, package_name)
|
twitter_url = "https://twitter.com/fabiocaccamo"
|
||||||
|
package_name = "django-admin-interface"
|
||||||
|
package_url = "{}/{}".format(github_url, package_name)
|
||||||
|
package_issues_url = "{}/issues".format(github_url)
|
||||||
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"
|
||||||
long_description = ''
|
long_description = ""
|
||||||
try:
|
try:
|
||||||
long_description_file_options = {} if sys.version_info[0] < 3 else { 'encoding':'utf-8' }
|
long_description_file_options = (
|
||||||
with open(long_description_file_path, 'r', **long_description_file_options) as f:
|
{} if sys.version_info[0] < 3 else {"encoding": "utf-8"}
|
||||||
|
)
|
||||||
|
with open(long_description_file_path, "r", **long_description_file_options) as f:
|
||||||
long_description = f.read()
|
long_description = f.read()
|
||||||
except IOError:
|
except IOError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name=package_name,
|
name=package_name,
|
||||||
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
|
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
version=__version__,
|
version=__version__,
|
||||||
description='django-admin-interface is a modern responsive flat admin interface customizable by the admin itself.',
|
description="django-admin-interface is a modern responsive flat admin interface customizable by the admin itself.",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
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=package_url,
|
url=package_url,
|
||||||
download_url='{}/archive/{}.tar.gz'.format(package_url, __version__),
|
download_url="{}/archive/{}.tar.gz".format(package_url, __version__),
|
||||||
keywords=['django', 'admin', 'interface', 'responsive', 'flat', 'theme', 'custom', 'ui'],
|
project_urls={
|
||||||
requires=['django(>=1.7)'],
|
"Documentation": package_url,
|
||||||
|
"Issues": package_issues_url,
|
||||||
|
"Funding": sponsor_url,
|
||||||
|
"Twitter": twitter_url,
|
||||||
|
},
|
||||||
|
keywords=[
|
||||||
|
"django",
|
||||||
|
"admin",
|
||||||
|
"interface",
|
||||||
|
"responsive",
|
||||||
|
"flat",
|
||||||
|
"theme",
|
||||||
|
"custom",
|
||||||
|
"ui",
|
||||||
|
],
|
||||||
|
requires=["django(>=1.7)"],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'django-colorfield >= 0.2, < 1.0',
|
"django-colorfield >= 0.2, < 1.0",
|
||||||
'django-flat-theme >= 1.0, < 2.0',
|
"django-flat-theme >= 1.0, < 2.0",
|
||||||
'django-flat-responsive >= 1.0, < 3.0',
|
"django-flat-responsive >= 1.0, < 3.0",
|
||||||
'six >= 1.9.0, < 2.0.0',
|
"six >= 1.9.0, < 2.0.0",
|
||||||
],
|
],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 5 - Production/Stable',
|
"Development Status :: 5 - Production/Stable",
|
||||||
'Environment :: Web Environment',
|
"Environment :: Web Environment",
|
||||||
'Framework :: Django',
|
"Framework :: Django",
|
||||||
'Framework :: Django :: 1.7',
|
"Framework :: Django :: 1.7",
|
||||||
'Framework :: Django :: 1.8',
|
"Framework :: Django :: 1.8",
|
||||||
'Framework :: Django :: 1.9',
|
"Framework :: Django :: 1.9",
|
||||||
'Framework :: Django :: 1.10',
|
"Framework :: Django :: 1.10",
|
||||||
'Framework :: Django :: 1.11',
|
"Framework :: Django :: 1.11",
|
||||||
'Framework :: Django :: 2.0',
|
"Framework :: Django :: 2.0",
|
||||||
'Framework :: Django :: 2.1',
|
"Framework :: Django :: 2.1",
|
||||||
'Framework :: Django :: 2.2',
|
"Framework :: Django :: 2.2",
|
||||||
'Framework :: Django :: 3.0',
|
"Framework :: Django :: 3.0",
|
||||||
'Framework :: Django :: 3.1',
|
"Framework :: Django :: 3.1",
|
||||||
'Framework :: Django :: 3.2',
|
"Framework :: Django :: 3.2",
|
||||||
'Framework :: Django :: 4.0',
|
"Framework :: Django :: 4.0",
|
||||||
'Intended Audience :: Developers',
|
"Intended Audience :: Developers",
|
||||||
'License :: OSI Approved :: MIT License',
|
"License :: OSI Approved :: MIT License",
|
||||||
'Natural Language :: English',
|
"Natural Language :: English",
|
||||||
'Operating System :: OS Independent',
|
"Operating System :: OS Independent",
|
||||||
'Programming Language :: Python :: 2',
|
"Programming Language :: Python :: 2",
|
||||||
'Programming Language :: Python :: 2.7',
|
"Programming Language :: Python :: 2.7",
|
||||||
'Programming Language :: Python :: 3',
|
"Programming Language :: Python :: 3",
|
||||||
'Programming Language :: Python :: 3.4',
|
"Programming Language :: Python :: 3.4",
|
||||||
'Programming Language :: Python :: 3.5',
|
"Programming Language :: Python :: 3.5",
|
||||||
'Programming Language :: Python :: 3.6',
|
"Programming Language :: Python :: 3.6",
|
||||||
'Programming Language :: Python :: 3.7',
|
"Programming Language :: Python :: 3.7",
|
||||||
'Programming Language :: Python :: 3.8',
|
"Programming Language :: Python :: 3.8",
|
||||||
'Programming Language :: Python :: 3.9',
|
"Programming Language :: Python :: 3.9",
|
||||||
'Programming Language :: Python :: 3.10',
|
"Programming Language :: Python :: 3.10",
|
||||||
'Topic :: Software Development :: Build Tools',
|
"Topic :: Software Development :: Build Tools",
|
||||||
],
|
],
|
||||||
license='MIT',
|
license="MIT",
|
||||||
test_suite='runtests.runtests'
|
test_suite="runtests.runtests",
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue