Skip to content

Commit ebf4c02

Browse files
committed
chore: init
1 parent 3ae06b5 commit ebf4c02

File tree

6 files changed

+71
-0
lines changed

6 files changed

+71
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,5 @@ dmypy.json
127127

128128
# Pyre type checker
129129
.pyre/
130+
131+
.idea/

fastapi-authz/__init__.py

Whitespace-only changes.

fastapi-authz/enfocer.py

Whitespace-only changes.

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
fastapi
2+
casbin

setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[bdist_wheel]
2+
universal=1
3+
4+
[metadata]
5+
description-file=README.md

setup.py

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
from setuptools import setup, find_packages
2+
from codecs import open
3+
from os import path
4+
5+
__version__ = "0.0.1"
6+
desc_file = "README.md"
7+
8+
here = path.abspath(path.dirname(__file__))
9+
10+
# Get the long description from the README file
11+
with open(path.join(here, desc_file), encoding="utf-8") as f:
12+
long_description = f.read()
13+
14+
# get the dependencies and installs
15+
with open(path.join(here, "requirements.txt"), encoding="utf-8") as f:
16+
all_reqs = f.read().split("\n")
17+
18+
install_requires = [x.strip() for x in all_reqs if "git+" not in x]
19+
dependency_links = [
20+
x.strip().replace("git+", "") for x in all_reqs if x.startswith("git+")
21+
]
22+
23+
setup(
24+
name="flask-authz",
25+
version=__version__,
26+
description="An authorization middleware for Flask that supports ACL, RBAC, ABAC, based on Casbin",
27+
long_description=long_description,
28+
long_description_content_type="text/markdown",
29+
author=["Yang Luo", "Sciencelogic"],
30+
author_email="hsluoyz@gmail.com",
31+
url="https://github.com/pycasbin/flask-authz",
32+
download_url="https://github.com/pycasbin/flask-authz/tarball/" + __version__,
33+
license="Apache 2.0",
34+
python_requires=">=3.5",
35+
classifiers=[
36+
"Development Status :: 1 - Planning",
37+
"Intended Audience :: Developers",
38+
"Programming Language :: Python :: 3",
39+
"Programming Language :: Python :: 3.7",
40+
"Programming Language :: Python :: 3.8",
41+
"License :: OSI Approved :: Apache Software License",
42+
"Operating System :: OS Independent",
43+
],
44+
keywords=[
45+
"fastapi",
46+
"pycasbin",
47+
"casbin",
48+
"auth",
49+
"authz",
50+
"acl",
51+
"rbac",
52+
"abac",
53+
"access control",
54+
"authorization",
55+
"permission"
56+
],
57+
packages=find_packages(exclude=["docs", "tests*"]),
58+
data_files=[desc_file],
59+
include_package_data=True,
60+
install_requires=install_requires,
61+
dependency_links=dependency_links
62+
)

0 commit comments

Comments
 (0)