Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a4783c2

Browse files
authored
Revert "Use declarative setup with pyproject.toml" (auth0#479)
2 parents c8f2d65 + 0b7a67a commit a4783c2

File tree

2 files changed

+45
-41
lines changed

2 files changed

+45
-41
lines changed

pyproject.toml

Lines changed: 0 additions & 39 deletions
This file was deleted.

setup.py

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
1-
from setuptools import setup
1+
import os
2+
import re
23

3-
setup()
4+
from setuptools import find_packages, setup
5+
6+
7+
def find_version():
8+
file_dir = os.path.dirname(__file__)
9+
with open(os.path.join(file_dir, "auth0", "__init__.py")) as f:
10+
version = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read())
11+
if version:
12+
return version.group(1)
13+
else:
14+
raise RuntimeError("Unable to find version string.")
15+
16+
17+
with open("README.md", encoding="utf-8") as f:
18+
long_description = f.read()
19+
20+
21+
setup(
22+
name="auth0-python",
23+
version=find_version(),
24+
description="Auth0 Python SDK",
25+
long_description=long_description,
26+
long_description_content_type="text/markdown",
27+
author="Auth0",
28+
author_email="[email protected]",
29+
license="MIT",
30+
packages=find_packages(),
31+
install_requires=["requests>=2.14.0", "pyjwt[crypto]>=2.6.0"],
32+
extras_require={"test": ["coverage", "pre-commit"]},
33+
python_requires=">=3.7",
34+
classifiers=[
35+
"Development Status :: 5 - Production/Stable",
36+
"Intended Audience :: Developers",
37+
"Operating System :: OS Independent",
38+
"License :: OSI Approved :: MIT License",
39+
"Programming Language :: Python :: 3.7",
40+
"Programming Language :: Python :: 3.8",
41+
"Programming Language :: Python :: 3.9",
42+
"Programming Language :: Python :: 3.10",
43+
"Programming Language :: Python :: 3.11",
44+
],
45+
url="https://github.com/auth0/auth0-python",
46+
)

0 commit comments

Comments
 (0)