Skip to content

Commit fcded86

Browse files
authored
Merge pull request #18 from Tyskiep99/fix_requirements
fix: correct requirements and python version support. dev requirement can be installed with: pip install ".[dev]"
2 parents 8691e06 + 2e3c5e7 commit fcded86

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

.github/workflows/release.yml

+6-1
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:
@@ -58,6 +58,9 @@ jobs:
5858
Start-Process -FilePath "$env:PGBIN\pg_isready" -Wait -PassThru
5959
& $env:PGBIN\psql --command="ALTER USER postgres WITH PASSWORD '123456'" --command="\du"
6060
61+
- name: Upgrade install tools
62+
run: python -m pip install --upgrade setuptools wheel
63+
6164
- name: Install dependencies
6265
run: |
6366
pip install -r requirements.txt
@@ -112,6 +115,8 @@ jobs:
112115

113116
- name: Setup Node.js
114117
uses: actions/setup-node@v1
118+
with:
119+
node-version: '16'
115120

116121
- name: Setup
117122
run: npm install -g semantic-release @semantic-release/github @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/release-notes-generator semantic-release-pypi

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
casbin>=0.8.4
2-
psycopg2-binary==2.8.6
2+
psycopg2-binary>=2.8.6<=2.9.3

setup.py

+10-2
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)