-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ff3581
commit 0a2a76c
Showing
11 changed files
with
142 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
artifacts | ||
test-reports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: level12/python-test-multi | ||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: folder listing for debugging | ||
command: ls -al | ||
|
||
- run: | ||
name: install tox | ||
command: pip install tox | ||
|
||
- run: | ||
name: version checks | ||
command: | | ||
python --version | ||
pip --version | ||
virtualenv --version | ||
tox --version | ||
- run: | ||
name: run tox | ||
command: tox | ||
|
||
- store_test_results: | ||
path: .circleci/test-reports/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
docs/_build | ||
Flask_WebTest.egg-info | ||
__pycache__ | ||
tests/__pycache__ | ||
build | ||
dist | ||
.tox |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
sphinx | ||
-e .[test] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
* `development version | ||
<http://github.com/aromanovich/flask-webtest/zipball/master#egg=Flask-WebTest-dev>`_ | ||
""" | ||
from setuptools import setup | ||
from setuptools import setup, find_packages | ||
|
||
|
||
setup( | ||
|
@@ -23,18 +23,23 @@ | |
long_description=__doc__, | ||
author='Anton Romanovich', | ||
author_email='[email protected]', | ||
py_modules=['flask_webtest'], | ||
test_suite='tests.test', | ||
tests_require=['Flask-SQLAlchemy>=2.5.0'], | ||
include_package_data=True, | ||
packages=find_packages(exclude=[]), | ||
zip_safe=False, | ||
install_requires=[ | ||
'Flask>=2.1.0', | ||
'Flask>=1.1.0', | ||
'WebTest', | ||
'blinker', | ||
], | ||
extras_require={ | ||
'tests': [ | ||
'flask-sqlalchemy', | ||
], | ||
}, | ||
classifiers=[ | ||
'Topic :: Software Development :: Testing', | ||
'Environment :: Web Environment', | ||
'Intended Audience :: Developers', | ||
'Programming Language :: Python :: 3', | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
attrs==22.2.0 | ||
beautifulsoup4==4.11.2 | ||
blinker==1.5 | ||
click==8.1.3 | ||
exceptiongroup==1.1.0 | ||
Flask==2.2.3 | ||
Flask-SQLAlchemy==3.0.3 | ||
greenlet==2.0.2 | ||
importlib-metadata==6.0.0 | ||
iniconfig==2.0.0 | ||
itsdangerous==2.1.2 | ||
Jinja2==3.1.2 | ||
MarkupSafe==2.1.2 | ||
packaging==23.0 | ||
pluggy==1.0.0 | ||
pytest==7.2.1 | ||
soupsieve==2.4 | ||
SQLAlchemy==2.0.4 | ||
tomli==2.0.1 | ||
typing_extensions==4.5.0 | ||
waitress==2.1.2 | ||
WebOb==1.8.7 | ||
WebTest==3.0.0 | ||
Werkzeug==2.2.3 | ||
zipp==3.15.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[tox] | ||
envlist = py37-base,py39-lowest,py{38,39,310}-{base,stable},project,docs | ||
|
||
|
||
[testenv] | ||
# Ignore all "not installed in testenv" warnings. | ||
allowlist_externals = * | ||
skip_install = true | ||
# Force recreation of virtualenvs for each run. When testing in CI, this won't matter b/c the | ||
# virtualenvs won't exist in the container. When testing locally, if you've ran tox previously | ||
# then the libraries in the tox virtualenv won't get updated on pip-install. That means CI will | ||
# test different library versions than you are testing locally. Recreating virtualenvs should | ||
# prevent most of that mismatch. | ||
recreate=False | ||
commands = | ||
pip --version | ||
lowest: pip install flask<2.0.0 sqlalchemy~=1.4.1 flask-sqlalchemy~=2.5.1 markupsafe<2.1.0 | ||
stable: pip install --progress-bar off -r ./stable-requirements.txt | ||
pip install --progress-bar off .[tests] | ||
# Output installed versions to compare with previous test runs in case a dependency's change | ||
# breaks things for our build. | ||
pip freeze | ||
./test.sh | ||
|
||
[testenv:project] | ||
basepython = python3.9 | ||
skip_install = true | ||
usedevelop = false | ||
deps = | ||
flake8 | ||
twine | ||
commands = | ||
# check-manifest --ignore tox.ini,tests* | ||
python setup.py sdist | ||
twine check dist/* | ||
flake8 flask_webtest.py tests | ||
|
||
[flake8] | ||
exclude = .tox,*egg,build,.git,dist,docs | ||
max-line-length = 100 | ||
ignore = E265,E123,E133,E226,E241,E242 | ||
|
||
[testenv:docs] | ||
basepython = python3.9 | ||
recreate = false | ||
skip_install = false | ||
usedevelop = true | ||
commands = | ||
pip install -r docs/requirements.txt | ||
make -C docs/ html |