Skip to content

Commit 3e4d18c

Browse files
committed
Prepare for deployment
1 parent 9df29b5 commit 3e4d18c

File tree

5,877 files changed

+1809738
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,877 files changed

+1809738
-4
lines changed

make_site.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -509,13 +509,13 @@ def format_date_range(event):
509509
start_date = datetime.strptime(event.start_date, '%B %d %Y').date()
510510
end_date = datetime.strptime(event.end_date, '%B %d %Y').date()
511511
if start_date.year != end_date.year:
512-
return f'{start_date.strftime("%B %-d, %Y")}{end_date.strftime("%B %-d, %Y")}'
512+
return f'{start_date.strftime("%B %#d, %Y")}{end_date.strftime("%B %#d, %Y")}'
513513
elif start_date.month != end_date.month:
514-
return f'{start_date.strftime("%B %-d")}{end_date.strftime("%B %-d, %Y")}'
514+
return f'{start_date.strftime("%B %#d")}{end_date.strftime("%B %#d, %Y")}'
515515
elif start_date.day != end_date.day:
516-
return f'{start_date.strftime("%B %-d")}{end_date.strftime("%-d, %Y")}'
516+
return f'{start_date.strftime("%B %#d")}{end_date.strftime("%#d, %Y")}'
517517
else:
518-
return start_date.strftime("%B %-d, %Y")
518+
return start_date.strftime("%B %#d, %Y")
519519
else:
520520
return 'TBA'
521521

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 Laurent LAPORTE
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 195 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
Metadata-Version: 2.2
2+
Name: Deprecated
3+
Version: 1.2.18
4+
Summary: Python @deprecated decorator to deprecate old python classes, functions or methods.
5+
Home-page: https://github.com/laurent-laporte-pro/deprecated
6+
Author: Laurent LAPORTE
7+
Author-email: laurent.laporte.pro@gmail.com
8+
License: MIT
9+
Project-URL: Documentation, https://deprecated.readthedocs.io/en/latest/
10+
Project-URL: Source, https://github.com/laurent-laporte-pro/deprecated
11+
Project-URL: Bug Tracker, https://github.com/laurent-laporte-pro/deprecated/issues
12+
Keywords: deprecate,deprecated,deprecation,warning,warn,decorator
13+
Platform: any
14+
Classifier: Development Status :: 5 - Production/Stable
15+
Classifier: Environment :: Web Environment
16+
Classifier: Intended Audience :: Developers
17+
Classifier: License :: OSI Approved :: MIT License
18+
Classifier: Operating System :: OS Independent
19+
Classifier: Programming Language :: Python
20+
Classifier: Programming Language :: Python :: 2
21+
Classifier: Programming Language :: Python :: 2.7
22+
Classifier: Programming Language :: Python :: 3
23+
Classifier: Programming Language :: Python :: 3.4
24+
Classifier: Programming Language :: Python :: 3.5
25+
Classifier: Programming Language :: Python :: 3.6
26+
Classifier: Programming Language :: Python :: 3.7
27+
Classifier: Programming Language :: Python :: 3.8
28+
Classifier: Programming Language :: Python :: 3.9
29+
Classifier: Programming Language :: Python :: 3.10
30+
Classifier: Programming Language :: Python :: 3.11
31+
Classifier: Programming Language :: Python :: 3.12
32+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
33+
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
34+
Description-Content-Type: text/x-rst
35+
License-File: LICENSE.rst
36+
Requires-Dist: wrapt<2,>=1.10
37+
Provides-Extra: dev
38+
Requires-Dist: tox; extra == "dev"
39+
Requires-Dist: PyTest; extra == "dev"
40+
Requires-Dist: PyTest-Cov; extra == "dev"
41+
Requires-Dist: bump2version<1; extra == "dev"
42+
Requires-Dist: setuptools; python_version >= "3.12" and extra == "dev"
43+
Dynamic: author
44+
Dynamic: author-email
45+
Dynamic: classifier
46+
Dynamic: description
47+
Dynamic: description-content-type
48+
Dynamic: home-page
49+
Dynamic: keywords
50+
Dynamic: license
51+
Dynamic: platform
52+
Dynamic: project-url
53+
Dynamic: provides-extra
54+
Dynamic: requires-dist
55+
Dynamic: requires-python
56+
Dynamic: summary
57+
58+
59+
Deprecated Library
60+
------------------
61+
62+
Deprecated is Easy to Use
63+
`````````````````````````
64+
65+
If you need to mark a function or a method as deprecated,
66+
you can use the ``@deprecated`` decorator:
67+
68+
Save in a hello.py:
69+
70+
.. code:: python
71+
72+
from deprecated import deprecated
73+
74+
75+
@deprecated(version='1.2.1', reason="You should use another function")
76+
def some_old_function(x, y):
77+
return x + y
78+
79+
80+
class SomeClass(object):
81+
@deprecated(version='1.3.0', reason="This method is deprecated")
82+
def some_old_method(self, x, y):
83+
return x + y
84+
85+
86+
some_old_function(12, 34)
87+
obj = SomeClass()
88+
obj.some_old_method(5, 8)
89+
90+
91+
And Easy to Setup
92+
`````````````````
93+
94+
And run it:
95+
96+
.. code:: bash
97+
98+
$ pip install Deprecated
99+
$ python hello.py
100+
hello.py:15: DeprecationWarning: Call to deprecated function (or staticmethod) some_old_function.
101+
(You should use another function) -- Deprecated since version 1.2.0.
102+
some_old_function(12, 34)
103+
hello.py:17: DeprecationWarning: Call to deprecated method some_old_method.
104+
(This method is deprecated) -- Deprecated since version 1.3.0.
105+
obj.some_old_method(5, 8)
106+
107+
108+
You can document your code
109+
``````````````````````````
110+
111+
Have you ever wonder how to document that some functions, classes, methods, etc. are deprecated?
112+
This is now possible with the integrated Sphinx directives:
113+
114+
For instance, in hello_sphinx.py:
115+
116+
.. code:: python
117+
118+
from deprecated.sphinx import deprecated
119+
from deprecated.sphinx import versionadded
120+
from deprecated.sphinx import versionchanged
121+
122+
123+
@versionadded(version='1.0', reason="This function is new")
124+
def function_one():
125+
'''This is the function one'''
126+
127+
128+
@versionchanged(version='1.0', reason="This function is modified")
129+
def function_two():
130+
'''This is the function two'''
131+
132+
133+
@deprecated(version='1.0', reason="This function will be removed soon")
134+
def function_three():
135+
'''This is the function three'''
136+
137+
138+
function_one()
139+
function_two()
140+
function_three() # warns
141+
142+
help(function_one)
143+
help(function_two)
144+
help(function_three)
145+
146+
147+
The result it immediate
148+
```````````````````````
149+
150+
Run it:
151+
152+
.. code:: bash
153+
154+
$ python hello_sphinx.py
155+
156+
hello_sphinx.py:23: DeprecationWarning: Call to deprecated function (or staticmethod) function_three.
157+
(This function will be removed soon) -- Deprecated since version 1.0.
158+
function_three() # warns
159+
160+
Help on function function_one in module __main__:
161+
162+
function_one()
163+
This is the function one
164+
165+
.. versionadded:: 1.0
166+
This function is new
167+
168+
Help on function function_two in module __main__:
169+
170+
function_two()
171+
This is the function two
172+
173+
.. versionchanged:: 1.0
174+
This function is modified
175+
176+
Help on function function_three in module __main__:
177+
178+
function_three()
179+
This is the function three
180+
181+
.. deprecated:: 1.0
182+
This function will be removed soon
183+
184+
185+
Links
186+
`````
187+
188+
* `Python package index (PyPi) <https://pypi.org/project/Deprecated/>`_
189+
* `GitHub website <https://github.com/laurent-laporte-pro/deprecated>`_
190+
* `Read The Docs <https://readthedocs.org/projects/deprecated>`_
191+
* `EBook on Lulu.com <http://www.lulu.com/commerce/index.php?fBuyContent=21305117>`_
192+
* `StackOverFlow Q&A <https://stackoverflow.com/a/40301488/1513933>`_
193+
* `Development version
194+
<https://github.com/laurent-laporte-pro/deprecated/zipball/master#egg=Deprecated-dev>`_
195+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Deprecated-1.2.18.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2+
Deprecated-1.2.18.dist-info/LICENSE.rst,sha256=HoPt0VvkGbXVveNy4yXlJ_9PmRX1SOfHUxS0H2aZ6Dw,1081
3+
Deprecated-1.2.18.dist-info/METADATA,sha256=4CrUw5Bl8_NsBuZYe0Nw-mIwQnVpT1CnmBYU9BqOuq8,5725
4+
Deprecated-1.2.18.dist-info/RECORD,,
5+
Deprecated-1.2.18.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
6+
Deprecated-1.2.18.dist-info/top_level.txt,sha256=nHbOYawKPQQE5lQl-toUB1JBRJjUyn_m_Mb8RVJ0RjA,11
7+
deprecated/__init__.py,sha256=yZNbmDKXF4PLtp_Ikdb_9ObJLkHuFSUHvqidFTKKGFM,351
8+
deprecated/__pycache__/__init__.cpython-311.pyc,,
9+
deprecated/__pycache__/classic.cpython-311.pyc,,
10+
deprecated/__pycache__/sphinx.cpython-311.pyc,,
11+
deprecated/classic.py,sha256=7WXOt4Vf1NhrUznm8ypjS50CMyAdZwrGT58Lhb8fW14,10609
12+
deprecated/sphinx.py,sha256=cOKnXbDyFAwDr5O7HBEpgQrx-J-qfp57sfdK_LabDxs,11109
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Wheel-Version: 1.0
2+
Generator: setuptools (75.8.0)
3+
Root-Is-Purelib: true
4+
Tag: py2-none-any
5+
Tag: py3-none-any
6+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deprecated
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Copyright 2010 Pallets
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are
5+
met:
6+
7+
1. Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above copyright
11+
notice, this list of conditions and the following disclaimer in the
12+
documentation and/or other materials provided with the distribution.
13+
14+
3. Neither the name of the copyright holder nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
24+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
Metadata-Version: 2.1
2+
Name: MarkupSafe
3+
Version: 3.0.2
4+
Summary: Safely add untrusted strings to HTML/XML markup.
5+
Maintainer-email: Pallets <contact@palletsprojects.com>
6+
License: Copyright 2010 Pallets
7+
8+
Redistribution and use in source and binary forms, with or without
9+
modification, are permitted provided that the following conditions are
10+
met:
11+
12+
1. Redistributions of source code must retain the above copyright
13+
notice, this list of conditions and the following disclaimer.
14+
15+
2. Redistributions in binary form must reproduce the above copyright
16+
notice, this list of conditions and the following disclaimer in the
17+
documentation and/or other materials provided with the distribution.
18+
19+
3. Neither the name of the copyright holder nor the names of its
20+
contributors may be used to endorse or promote products derived from
21+
this software without specific prior written permission.
22+
23+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
26+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
29+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
30+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
31+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
32+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34+
35+
Project-URL: Donate, https://palletsprojects.com/donate
36+
Project-URL: Documentation, https://markupsafe.palletsprojects.com/
37+
Project-URL: Changes, https://markupsafe.palletsprojects.com/changes/
38+
Project-URL: Source, https://github.com/pallets/markupsafe/
39+
Project-URL: Chat, https://discord.gg/pallets
40+
Classifier: Development Status :: 5 - Production/Stable
41+
Classifier: Environment :: Web Environment
42+
Classifier: Intended Audience :: Developers
43+
Classifier: License :: OSI Approved :: BSD License
44+
Classifier: Operating System :: OS Independent
45+
Classifier: Programming Language :: Python
46+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
47+
Classifier: Topic :: Text Processing :: Markup :: HTML
48+
Classifier: Typing :: Typed
49+
Requires-Python: >=3.9
50+
Description-Content-Type: text/markdown
51+
License-File: LICENSE.txt
52+
53+
# MarkupSafe
54+
55+
MarkupSafe implements a text object that escapes characters so it is
56+
safe to use in HTML and XML. Characters that have special meanings are
57+
replaced so that they display as the actual characters. This mitigates
58+
injection attacks, meaning untrusted user input can safely be displayed
59+
on a page.
60+
61+
62+
## Examples
63+
64+
```pycon
65+
>>> from markupsafe import Markup, escape
66+
67+
>>> # escape replaces special characters and wraps in Markup
68+
>>> escape("<script>alert(document.cookie);</script>")
69+
Markup('&lt;script&gt;alert(document.cookie);&lt;/script&gt;')
70+
71+
>>> # wrap in Markup to mark text "safe" and prevent escaping
72+
>>> Markup("<strong>Hello</strong>")
73+
Markup('<strong>hello</strong>')
74+
75+
>>> escape(Markup("<strong>Hello</strong>"))
76+
Markup('<strong>hello</strong>')
77+
78+
>>> # Markup is a str subclass
79+
>>> # methods and operators escape their arguments
80+
>>> template = Markup("Hello <em>{name}</em>")
81+
>>> template.format(name='"World"')
82+
Markup('Hello <em>&#34;World&#34;</em>')
83+
```
84+
85+
## Donate
86+
87+
The Pallets organization develops and supports MarkupSafe and other
88+
popular packages. In order to grow the community of contributors and
89+
users, and allow the maintainers to devote more time to the projects,
90+
[please donate today][].
91+
92+
[please donate today]: https://palletsprojects.com/donate

0 commit comments

Comments
 (0)