Skip to content

Commit 2fd5d11

Browse files
committed
Remove python 27 io module import and setup.py update
1 parent f5e90a7 commit 2fd5d11

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import io
21
import os
32
from setuptools import setup
43

@@ -10,7 +9,7 @@
109

1110
# Load index.rst as long_description
1211
doc_path = os.path.join(os.path.dirname(__file__), "docs", "index.rst")
13-
long_description = io.open(doc_path, encoding="utf-8").read()
12+
long_description = open(doc_path, encoding="utf-8").read()
1413

1514
# Stops exit traceback on tests
1615
try:
@@ -33,7 +32,7 @@ def get_version(version_tuple):
3332
version_line = list(filter(lambda l: l.startswith("VERSION"), open(init)))[0]
3433
version = get_version(eval(version_line.split("=")[-1]))
3534

36-
test_requirements = ["coverage", "nose", "rednose"]
35+
test_requirements = ["coverage", "nose", "pytest", "pytest-cov"]
3736

3837
setup(
3938
name="flask-mongoengine",
@@ -42,7 +41,6 @@ def get_version(version_tuple):
4241
license="BSD",
4342
author="Ross Lawley",
4443
author_email="[email protected]",
45-
test_suite="nose.collector",
4644
zip_safe=False,
4745
platforms="any",
4846
install_requires=[
@@ -63,11 +61,15 @@ def get_version(version_tuple):
6361
"License :: OSI Approved :: BSD License",
6462
"Operating System :: OS Independent",
6563
"Programming Language :: Python",
64+
"Programming Language :: Python :: 3 :: Only",
6665
"Programming Language :: Python :: 3",
6766
"Programming Language :: Python :: 3.6",
6867
"Programming Language :: Python :: 3.7",
6968
"Programming Language :: Python :: 3.8",
69+
"Programming Language :: Python :: Implementation :: PyPy"
70+
"Programming Language :: Python :: Implementation :: CPython",
7071
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
7172
"Topic :: Software Development :: Libraries :: Python Modules",
73+
"Framework :: Flask",
7274
],
7375
)

0 commit comments

Comments
 (0)