Skip to content

Commit 5bd65e8

Browse files
committed
fix: correct requirements and python version support. dev requirement can be installed with: pip install ".[dev]"
1 parent 8691e06 commit 5bd65e8

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
14+
python-version: [ "3.6", "3.7", "3.8", "3.9", "3.10" ]
1515
os: [ ubuntu-latest, macOS-latest, windows-latest]
1616

1717
steps:

setup.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
with open("README.md", "r") as readme_file:
55
readme = readme_file.read()
66

7-
requirements = ["casbin==0.8.4", "psycopg2-binary==2.8.6", "black==20.8b1"]
87

98
setup(
109
name="casbin-postgresql-watcher",
@@ -15,9 +14,18 @@
1514
long_description_content_type="text/markdown",
1615
url="https://github.com/pycasbin/postgresql-watcher",
1716
packages=find_packages(),
18-
install_requires=requirements,
17+
install_requires=open('requirements.txt').read().splitlines(),
18+
extras_require={
19+
'dev': [
20+
open('dev_requirements.txt').read().splitlines(),
21+
]
22+
},
1923
classifiers=[
24+
"Programming Language :: Python :: 3.6",
25+
"Programming Language :: Python :: 3.7",
2026
"Programming Language :: Python :: 3.8",
27+
"Programming Language :: Python :: 3.9",
28+
"Programming Language :: Python :: 3.10",
2129
"License :: OSI Approved :: Apache Software License",
2230
],
2331
)

0 commit comments

Comments
 (0)