File tree Expand file tree Collapse file tree 10 files changed +169
-61
lines changed
Expand file tree Collapse file tree 10 files changed +169
-61
lines changed Original file line number Diff line number Diff line change 1+ root = true
2+
3+ [* ]
4+ end_of_line = lf
5+ insert_final_newline = true
6+ charset = utf-8
7+ trim_trailing_whitespace = true
8+ indent_style = space
9+ indent_size = 2
10+
11+ [* .py ]
12+ indent_size = 4
13+
14+ [Makefile ]
15+ indent_style = tab
16+ indent_size = 4
Original file line number Diff line number Diff line change 1+ name : Test
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ branches :
8+ - master
9+ jobs :
10+ build :
11+ runs-on : ' ${{ matrix.os }}'
12+ strategy :
13+ matrix :
14+ include :
15+ - os : ubuntu-latest
16+ python-version : ' 3.8'
17+ FLASK : 3.0.0
18+ - os : ubuntu-latest
19+ python-version : ' 3.8'
20+ FLASK : 2.3.3
21+ - os : ubuntu-latest
22+ python-version : ' 3.8'
23+ FLASK : 2.2.5
24+ - os : ubuntu-latest
25+ python-version : ' 3.8'
26+ FLASK : 2.1.3
27+ - os : ubuntu-latest
28+ python-version : ' 3.8'
29+ FLASK : 2.0.3
30+ - os : ubuntu-latest
31+ python-version : ' 3.8'
32+ FLASK : 1.1.4
33+ - os : ubuntu-latest
34+ python-version : ' 3.8'
35+ FLASK : 1.0.4
36+ - os : ubuntu-latest
37+ python-version : ' 3.9'
38+ FLASK : 3.0.0
39+ - os : ubuntu-latest
40+ python-version : ' 3.9'
41+ FLASK : 2.3.3
42+ - os : ubuntu-latest
43+ python-version : ' 3.9'
44+ FLASK : 2.2.5
45+ - os : ubuntu-latest
46+ python-version : ' 3.9'
47+ FLASK : 2.1.3
48+ - os : ubuntu-latest
49+ python-version : ' 3.9'
50+ FLASK : 2.0.3
51+ - os : ubuntu-latest
52+ python-version : ' 3.9'
53+ FLASK : 1.1.4
54+ - os : ubuntu-latest
55+ python-version : ' 3.9'
56+ FLASK : 1.0.4
57+ - os : ubuntu-latest
58+ python-version : ' 3.10'
59+ FLASK : 3.0.0
60+ - os : ubuntu-latest
61+ python-version : ' 3.10'
62+ FLASK : 2.3.3
63+ - os : ubuntu-latest
64+ python-version : ' 3.10'
65+ FLASK : 2.2.5
66+ - os : ubuntu-latest
67+ python-version : ' 3.10'
68+ FLASK : 2.1.3
69+ - os : ubuntu-latest
70+ python-version : ' 3.10'
71+ FLASK : 2.0.3
72+ - os : ubuntu-latest
73+ python-version : ' 3.10'
74+ FLASK : 1.1.4
75+ - os : ubuntu-latest
76+ python-version : ' 3.10'
77+ FLASK : 1.0.4
78+ - os : ubuntu-latest
79+ python-version : ' 3.11'
80+ FLASK : 3.0.0
81+ - os : ubuntu-latest
82+ python-version : ' 3.11'
83+ FLASK : 2.3.3
84+ - os : ubuntu-latest
85+ python-version : ' 3.11'
86+ FLASK : 2.2.5
87+ - os : ubuntu-latest
88+ python-version : ' 3.11'
89+ FLASK : 2.1.3
90+ - os : ubuntu-latest
91+ python-version : ' 3.11'
92+ FLASK : 2.0.3
93+ - os : ubuntu-latest
94+ python-version : ' 3.11'
95+ FLASK : 1.1.4
96+ - os : ubuntu-latest
97+ python-version : ' 3.11'
98+ FLASK : 1.0.4
99+ steps :
100+ - name : ' Set up Python ${{ matrix.python-version }}'
101+ uses : actions/setup-python@v2
102+ with :
103+ python-version : ' ${{ matrix.python-version }}'
104+ - uses : actions/checkout@v2
105+ - run : pip install Flask==$FLASK
106+ env :
107+ FLASK : ' ${{ matrix.FLASK }}'
108+ - run : pip install -r dev_requirements.txt
109+ - run : pytest
Original file line number Diff line number Diff line change @@ -53,5 +53,8 @@ coverage.xml
5353# Sphinx documentation
5454docs /_build /
5555
56+ # pytest
57+ .pytest_cache
58+
5659# PyCharm
5760.idea /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11black==23.9.1
22pre-commit==3.4.0
3+ pytest==7.4.2
34mysqlclient==2.2.0
45
56-r requirements.txt
Original file line number Diff line number Diff line change 1+ 2.0.0
Original file line number Diff line number Diff line change 1+ [build-system ]
2+ requires = [" setuptools" ]
3+ build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change 1+ [metadata]
2+ name = Flask-MySQLdb
3+ version = file: flask_mysqldb/VERSION
4+ author = Alexandre Ferland
5+ author_email = me@alexferl.com
6+ url = https://github.com/alexferl/flask-mysqldb
7+ description = MySQLdb extension for Flask
8+ long_description = file: README.md
9+ long_description_content_type = text/markdown
10+ license = MIT
11+ classifiers =
12+ " Environment :: Web Environment"
13+ " Intended Audience :: Developers"
14+ " License :: OSI Approved :: MIT License"
15+ " Operating System :: OS Independent"
16+ " Programming Language :: Python :: 3.8"
17+ " Programming Language :: Python :: 3.9"
18+ " Programming Language :: Python :: 3.10"
19+ " Programming Language :: Python :: 3.11"
20+ " Topic :: Software Development :: Libraries :: Python Modules"
21+
22+ [options]
23+ zip_safe = False
24+ include_package_data = True
25+ python_requires = >=3.8
26+ install_requires =
27+ Flask>=1.0.4
28+ mysqlclient>=2.2.0
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ from flask import Flask
2+ from flask_mysqldb import MySQL
3+
4+ app = Flask (__name__ )
5+
6+
7+ def test_instantiate ():
8+ MySQL (app )
You can’t perform that action at this time.
0 commit comments