Skip to content

Commit c21d36f

Browse files
committed
💚 fix setup.py
1 parent 0fe3a5d commit c21d36f

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

setup.py

+24-24
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
3434
LICENSE = "New BSD"
3535
DESCRIPTION = (
36-
"A python library to read and write structured data in csv, zipped csv" +
37-
"format and to/from databases"
36+
"A python library to read and write structured data in csv, zipped csv"
37+
+ "format and to/from databases"
3838
)
3939
URL = "https://github.com/pyexcel/pyexcel-io"
4040
DOWNLOAD_URL = "%s/archive/0.5.19.tar.gz" % URL
@@ -60,37 +60,38 @@
6060
"Programming Language :: Python :: 3.4",
6161
"Programming Language :: Python :: 3.5",
6262
"Programming Language :: Python :: 3.6",
63-
6463
"Programming Language :: Python :: 3.7",
65-
6664
"Programming Language :: Python :: 3.8",
67-
68-
'License :: OSI Approved :: BSD License',
69-
'Programming Language :: Python :: Implementation :: PyPy'
65+
"License :: OSI Approved :: BSD License",
66+
"Programming Language :: Python :: Implementation :: PyPy",
7067
]
7168

72-
INSTALL_REQUIRES = [
73-
"lml>=0.0.4",
74-
]
69+
INSTALL_REQUIRES = ["lml>=0.0.4"]
7570
SETUP_COMMANDS = {}
7671

7772
if PY26:
78-
INSTALL_REQUIRES.append('ordereddict')
73+
INSTALL_REQUIRES.append("ordereddict")
7974

8075
PACKAGES = find_packages(exclude=["ez_setup", "examples", "tests"])
8176
EXTRAS_REQUIRE = {
82-
"xls": ['pyexcel-xls>=0.5.0'],
83-
"xlsx": ['pyexcel-xlsx>=0.5.0'],
84-
"ods": ['pyexcel-ods3>=0.5.0'],
77+
"xls": ["pyexcel-xls>=0.5.0"],
78+
"xlsx": ["pyexcel-xlsx>=0.5.0"],
79+
"ods": ["pyexcel-ods3>=0.5.0"],
8580
}
8681
# You do not need to read beyond this line
87-
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable)
88-
GS_COMMAND = ("gs pyexcel-io v0.5.19 " +
89-
"Find 0.5.19 in changelog for more details")
90-
NO_GS_MESSAGE = ("Automatic github release is disabled. " +
91-
"Please install gease to enable it.")
82+
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(
83+
sys.executable
84+
)
85+
GS_COMMAND = (
86+
"gs pyexcel-io v0.5.19 " + "Find 0.5.19 in changelog for more details"
87+
)
88+
NO_GS_MESSAGE = (
89+
"Automatic github release is disabled. "
90+
+ "Please install gease to enable it."
91+
)
9292
UPLOAD_FAILED_MSG = (
93-
'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND)
93+
'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND
94+
)
9495
HERE = os.path.abspath(os.path.dirname(__file__))
9596

9697

@@ -133,9 +134,7 @@ def run(self):
133134
sys.exit()
134135

135136

136-
SETUP_COMMANDS.update({
137-
"publish": PublishCommand
138-
})
137+
SETUP_COMMANDS.update({"publish": PublishCommand})
139138

140139

141140
def has_gease():
@@ -146,6 +145,7 @@ def has_gease():
146145
"""
147146
try:
148147
import gease # noqa
148+
149149
return True
150150
except ImportError:
151151
return False
@@ -213,5 +213,5 @@ def filter_out_test_code(file_handle):
213213
include_package_data=True,
214214
zip_safe=False,
215215
classifiers=CLASSIFIERS,
216-
cmdclass=SETUP_COMMANDS
216+
cmdclass=SETUP_COMMANDS,
217217
)

0 commit comments

Comments
 (0)