Preparing release 2.2

This commit is contained in:
Rémy HUBSCHER 2020-10-05 11:18:13 +02:00
parent 13d2b3ae58
commit 0c59d6d261
No known key found for this signature in database
GPG key ID: A500E24B95405094
5 changed files with 19 additions and 15 deletions

View file

@ -8,7 +8,11 @@ future releases, check `milestones`_ and :doc:`/about/vision`.
2.2 (unreleased)
----------------
- Nothing changed yet.
- Remove support for Python 3.5 and Django 1.11
- Add support for Python 3.9 and Django 3.1
- Remove old urls syntax and adopt the new one
- Move the project to the jazzband organization
- Adopt black automatic formatting rules
2.1.1 (2020-01-14)

View file

@ -1 +1 @@
2.2.dev0
2.2

View file

@ -36,11 +36,11 @@ source_encoding = "utf-8"
master_doc = "index"
# General information about the project.
project = u"django-downloadview"
project_slug = re.sub(r"([\w_.-]+)", u"-", project)
copyright = u"2012-2015, Benoît Bryon"
author = u"Benoît Bryon"
author_slug = re.sub(r"([\w_.-]+)", u"-", author)
project = "django-downloadview"
project_slug = re.sub(r"([\w_.-]+)", "-", project)
copyright = "2012-2015, Benoît Bryon"
author = "Benoît Bryon"
author_slug = re.sub(r"([\w_.-]+)", "-", author)
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
@ -83,7 +83,7 @@ html_sidebars = {
}
# Output file base name for HTML help builder.
htmlhelp_basename = u"{project}doc".format(project=project_slug)
htmlhelp_basename = "{project}doc".format(project=project_slug)
# -- Options for sphinx.ext.intersphinx ---------------------------------------
@ -108,8 +108,8 @@ latex_elements = {}
latex_documents = [
(
"index",
u"{project}.tex".format(project=project_slug),
u"{project} Documentation".format(project=project),
"{project}.tex".format(project=project_slug),
"{project} Documentation".format(project=project),
author,
"manual",
),
@ -121,7 +121,7 @@ latex_documents = [
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
("index", project, u"{project} Documentation".format(project=project), [author], 1)
("index", project, "{project} Documentation".format(project=project), [author], 1)
]
@ -134,7 +134,7 @@ texinfo_documents = [
(
"index",
project_slug,
u"{project} Documentation".format(project=project),
"{project} Documentation".format(project=project),
author,
project,
"One line description of project.",

View file

@ -87,7 +87,7 @@ Modified" response:
class TextDownloadView(VirtualDownloadView):
def get_file(self):
"""Return :class:`django.core.files.base.ContentFile` object."""
return ContentFile(u"Hello world!", name='hello-world.txt')
return ContentFile("Hello world!", name='hello-world.txt')
def was_modified_since(self, file_instance, since):
return False # Never modified, always u"Hello world!".
return False # Never modified, always "Hello world!".

View file

@ -30,7 +30,7 @@ NAME = "django-downloadview"
DESCRIPTION = "Serve files with Django and reverse-proxies."
README = open(os.path.join(here, "README.rst")).read()
VERSION = open(os.path.join(here, "VERSION")).read().strip()
AUTHOR = u"Benoît Bryon"
AUTHOR = "Benoît Bryon"
EMAIL = "benoit@marmelune.net"
LICENSE = "BSD"
URL = "https://{name}.readthedocs.io/".format(name=NAME)