File tree Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 1+ name : Upload Python Package
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+ - name : Set up Python
13+ uses : actions/setup-python@v1
14+ with :
15+ python-version : ' 3.x'
16+ - name : Install dependencies
17+ run : |
18+ python -m pip install --upgrade pip
19+ pip install setuptools wheel twine
20+ - name : Build and publish
21+ env :
22+ TWINE_USERNAME : ${{ secrets.TWINE_USERNAME }}
23+ TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD }}
24+ run : |
25+ python setup.py sdist bdist_wheel
26+ twine upload dist/*
Original file line number Diff line number Diff line change 2323from .structures import CaseInsensitiveDict
2424
2525
26- ASCII_ART = """
26+ ASCII_ART = r """
2727 -=[ teapot ]=-
2828
2929 _...._
6868 'image/*'
6969]
7070
71- ANGRY_ASCII = """
71+ ANGRY_ASCII = r """
7272 .-''''''-.
7373 .' _ _ '.
7474 / O O \\
@@ -435,7 +435,7 @@ def parse_multi_value_header(header_str):
435435 if header_str :
436436 parts = header_str .split (',' )
437437 for part in parts :
438- match = re .search ('\s*(W/)?\" ?([^"]*)\" ?\s*' , part )
438+ match = re .search (r '\s*(W/)?\"?([^"]*)\"?\s*' , part )
439439 if match is not None :
440440 parsed_parts .append (match .group (2 ))
441441 return parsed_parts
You can’t perform that action at this time.
0 commit comments