Skip to content

Commit 03225dc

Browse files
committed
update requirements, bump version number
1 parent 3b56ca4 commit 03225dc

6 files changed

Lines changed: 23 additions & 67 deletions

File tree

.github/workflows/tox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
python-version: ["3.9"]
20+
python-version: ["3.7", "3.8", "3.9"]
2121

2222
steps:
2323
- uses: "actions/checkout@v2"

requirements-dev.txt

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,10 @@
1-
appdirs==1.4.4
2-
appnope==0.1.2
3-
asttokens==2.0.5
4-
async-timeout==3.0.1
5-
attrs==20.3.0
6-
backcall==0.2.0
71
black==20.8b1
8-
certifi==2020.12.5
9-
chardet==4.0.0
10-
cheap-repr==0.4.5
11-
click==7.1.2
12-
colorclass==2.2.0
132
coverage==5.5
14-
decorator==5.0.7
15-
distlib==0.3.1
16-
docopt==0.6.2
17-
executing==0.6.0
183
fakeredis==1.5.0
19-
fastapi==0.63.0
20-
filelock==3.0.12
214
flake8==3.9.1
22-
h11==0.12.0
23-
hiredis==2.0.0
24-
idna==2.10
25-
iniconfig==1.1.1
26-
ipython==7.22.0
27-
ipython-genutils==0.2.0
285
isort==5.8.0
29-
jedi==0.18.0
30-
mccabe==0.6.1
31-
mypy-extensions==0.4.3
32-
packaging==20.9
33-
parso==0.8.2
34-
pathspec==0.8.1
35-
pexpect==4.8.0
36-
pickleshare==0.7.5
37-
pip-upgrader==1.4.15
38-
pluggy==0.13.1
39-
prompt-toolkit==3.0.18
40-
psutil==5.8.0
41-
ptyprocess==0.7.0
42-
py==1.10.0
43-
pycodestyle==2.7.0
44-
pydantic==1.8.1
45-
pyflakes==2.3.1
46-
Pygments==2.8.1
47-
pyparsing==2.4.7
486
pytest==6.2.3
497
pytest-cov==2.11.1
508
pytest-flake8==1.0.7
519
pytest-random-order==1.0.4
52-
python-dateutil==2.8.1
53-
redis==3.5.3
54-
regex==2021.4.4
5510
requests==2.25.1
56-
six==1.15.0
57-
snoop==0.3.0
58-
sortedcontainers==2.3.0
59-
starlette==0.13.6
60-
terminaltables==3.1.0
61-
toml==0.10.2
62-
tox==3.23.0
63-
traitlets==5.0.5
64-
typed-ast==1.4.3
65-
typing-extensions==3.7.4.3
66-
urllib3==1.26.4
67-
uvicorn==0.13.4
68-
virtualenv==20.4.4
69-
wcwidth==0.2.5

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ addopts =
1212
--verbose
1313
# clear cache before each run
1414
--cache-clear
15-
# randomize tests at the package level
16-
--random-order-bucket=package
1715
norecursedirs =
1816
.git
1917
.pytest_cache
2018
.vscode
2119
venv
20+
build
21+
dist
2222
custom_scripts
2323

2424
[flake8]

setup.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"Operating System :: MacOS :: MacOS X",
2222
"Operating System :: POSIX :: Linux",
2323
"Operating System :: Unix",
24+
"Programming Language :: Python :: 3.7",
2425
"Programming Language :: Python :: 3.8",
2526
"Programming Language :: Python :: 3.9",
2627
"Programming Language :: Python :: 3 :: Only",
@@ -31,6 +32,18 @@
3132
"python-dateutil",
3233
"redis",
3334
]
35+
DEV_REQUIRES = [
36+
"black",
37+
"coverage",
38+
"fakeredis",
39+
"flake8",
40+
"isort",
41+
"pytest",
42+
"pytest-cov",
43+
"pytest-flake8",
44+
"pytest-random-order",
45+
"requests",
46+
]
3447

3548
exec(open(str(APP_ROOT / "src/fastapi_redis_cache/version.py")).read())
3649
setup(
@@ -49,7 +62,8 @@
4962
packages=find_packages(where="src"),
5063
package_dir={"": "src"},
5164
include_package_data=True,
52-
python_requires=">=3.8",
65+
python_requires=">=3.7",
5366
classifiers=CLASSIFIERS,
5467
install_requires=INSTALL_REQUIRES,
68+
extras_require={"dev": DEV_REQUIRES},
5569
)

src/fastapi_redis_cache/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# flake8: noqa
2-
__version_info__ = ("0", "1", "4") # pragma: no cover
2+
__version_info__ = ("0", "2", "0") # pragma: no cover
33
__version__ = ".".join(__version_info__) # pragma: no cover

tox.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
[tox]
2-
minversion = 3.6.0
3-
envlist = py39
2+
minversion = 3.7.0
3+
envlist = py37, py38, py39
44
isolated_build=True
55

66
[gh-actions]
77
python =
8+
3.7: py37
9+
3.8: py38
810
3.9: py39
911

1012
[testenv]
@@ -17,7 +19,6 @@ deps =
1719
pytest
1820
pytest-cov
1921
pytest-flake8
20-
pytest-mock
2122
pytest-random-order
2223
requests
2324

0 commit comments

Comments
 (0)