💚 fix setup.py

This commit is contained in:
chfw 2019-07-14 08:36:23 +01:00
parent 0fe3a5d8b4
commit c21d36f4d1
1 changed files with 24 additions and 24 deletions

View File

@ -33,8 +33,8 @@ VERSION = "0.5.19"
EMAIL = "info@pyexcel.org"
LICENSE = "New BSD"
DESCRIPTION = (
"A python library to read and write structured data in csv, zipped csv" +
"format and to/from databases"
"A python library to read and write structured data in csv, zipped csv"
+ "format and to/from databases"
)
URL = "https://github.com/pyexcel/pyexcel-io"
DOWNLOAD_URL = "%s/archive/0.5.19.tar.gz" % URL
@ -60,37 +60,38 @@ CLASSIFIERS = [
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: Implementation :: PyPy'
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: Implementation :: PyPy",
]
INSTALL_REQUIRES = [
"lml>=0.0.4",
]
INSTALL_REQUIRES = ["lml>=0.0.4"]
SETUP_COMMANDS = {}
if PY26:
INSTALL_REQUIRES.append('ordereddict')
INSTALL_REQUIRES.append("ordereddict")
PACKAGES = find_packages(exclude=["ez_setup", "examples", "tests"])
EXTRAS_REQUIRE = {
"xls": ['pyexcel-xls>=0.5.0'],
"xlsx": ['pyexcel-xlsx>=0.5.0'],
"ods": ['pyexcel-ods3>=0.5.0'],
"xls": ["pyexcel-xls>=0.5.0"],
"xlsx": ["pyexcel-xlsx>=0.5.0"],
"ods": ["pyexcel-ods3>=0.5.0"],
}
# You do not need to read beyond this line
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable)
GS_COMMAND = ("gs pyexcel-io v0.5.19 " +
"Find 0.5.19 in changelog for more details")
NO_GS_MESSAGE = ("Automatic github release is disabled. " +
"Please install gease to enable it.")
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(
sys.executable
)
GS_COMMAND = (
"gs pyexcel-io v0.5.19 " + "Find 0.5.19 in changelog for more details"
)
NO_GS_MESSAGE = (
"Automatic github release is disabled. "
+ "Please install gease to enable it."
)
UPLOAD_FAILED_MSG = (
'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND)
'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND
)
HERE = os.path.abspath(os.path.dirname(__file__))
@ -133,9 +134,7 @@ class PublishCommand(Command):
sys.exit()
SETUP_COMMANDS.update({
"publish": PublishCommand
})
SETUP_COMMANDS.update({"publish": PublishCommand})
def has_gease():
@ -146,6 +145,7 @@ def has_gease():
"""
try:
import gease # noqa
return True
except ImportError:
return False
@ -213,5 +213,5 @@ if __name__ == "__main__":
include_package_data=True,
zip_safe=False,
classifiers=CLASSIFIERS,
cmdclass=SETUP_COMMANDS
cmdclass=SETUP_COMMANDS,
)