Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

add year through code

marca59bb279d189
diff --git a/docs/conf.py b/docs/conf.py
index 5fdaa4e4c..ed56c5cd1 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -12,6 +12,7 @@
# serve to show the default.
import sys
+from datetime import datetime
from os import path
# If your extensions are in another directory, add it here. If the directory
@@ -49,8 +50,8 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
-project = u'Scrapy'
-copyright = u'2008–2020, Scrapy developers'
+project = 'Scrapy'
+copyright = '2008–{}, Scrapy developers'.format(datetime.now().year)
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
@@ -194,8 +195,8 @@ htmlhelp_basename = 'Scrapydoc'
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, document class [howto/manual]).
latex_documents = [
- ('index', 'Scrapy.tex', u'Scrapy Documentation',
- u'Scrapy developers', 'manual'),
+ ('index', 'Scrapy.tex', 'Scrapy Documentation',
+ 'Scrapy developers', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of