Skip to content

Commit 9a46fde

Browse files
authored
Merge: Remove python 2.7 artefacts
Remove python 2.7 artefacts
2 parents 8451eb2 + 2fd5d11 commit 9a46fde

File tree

6 files changed

+13
-18
lines changed

6 files changed

+13
-18
lines changed

docs/conf.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
#
31
# flask-script documentation build configuration file, created by
42
# sphinx-quickstart on Wed Jun 23 08:26:41 2010.
53
#
@@ -40,8 +38,8 @@
4038
master_doc = 'index'
4139

4240
# General information about the project.
43-
project = u'Flask-MongoEngine'
44-
copyright = u'2010-2020, Streetlife and others'
41+
project = 'Flask-MongoEngine'
42+
copyright = '2010-2020, Streetlife and others'
4543

4644
# The version info for the project you're documenting, acts as replacement for
4745
# |version| and |release|, also used in various other places throughout the
@@ -183,8 +181,8 @@
183181
# Grouping the document tree into LaTeX files. List of tuples
184182
# (source start file, target name, title, author, documentclass [howto/manual]).
185183
latex_documents = [
186-
('index', 'flask-mongoengine.tex', u'Flask-MongoEngine Documentation',
187-
u'Ross Lawley', 'manual'),
184+
('index', 'flask-mongoengine.tex', 'Flask-MongoEngine Documentation',
185+
'Ross Lawley', 'manual'),
188186
]
189187

190188
# The name of an image file (relative to this directory) to place at the top of
@@ -216,6 +214,6 @@
216214
# One entry per manual page. List of tuples
217215
# (source start file, name, description, authors, manual section).
218216
man_pages = [
219-
('index', 'flask-mongoengine', u'Flask-MongoEngine Documentation',
220-
[u'Ross Lawley', u'Dan Jacob', u'Marat Khabibullin'], 1)
217+
('index', 'flask-mongoengine', 'Flask-MongoEngine Documentation',
218+
['Ross Lawley', 'Dan Jacob', 'Marat Khabibullin'], 1)
221219
]

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ flask-mongoengine automatically generates WTForms from MongoEngine models::
170170
lang = db.StringField(max_length=3)
171171

172172
class Post(db.Document):
173-
title = db.StringField(max_length=120, required=True, validators=[validators.InputRequired(message=u'Missing title.'),])
173+
title = db.StringField(max_length=120, required=True, validators=[validators.InputRequired(message='Missing title.'),])
174174
author = db.ReferenceField(User)
175175
tags = db.ListField(db.StringField(max_length=30))
176176
content = db.EmbeddedDocumentField(Content)

examples/simpleapp/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import datetime
32
import os
43
import sys

flask_mongoengine/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
from __future__ import absolute_import
3-
41
import inspect
52

63
import mongoengine

flask_mongoengine/pagination.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import math
32

43
from flask import abort

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)