Skip to content

Commit

Permalink
Revert "Use declarative setup with pyproject.toml" (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath authored Mar 15, 2023
2 parents c8f2d65 + 0b7a67a commit a4783c2
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 41 deletions.
39 changes: 0 additions & 39 deletions pyproject.toml

This file was deleted.

47 changes: 45 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
from setuptools import setup
import os
import re

setup()
from setuptools import find_packages, setup


def find_version():
file_dir = os.path.dirname(__file__)
with open(os.path.join(file_dir, "auth0", "__init__.py")) as f:
version = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read())
if version:
return version.group(1)
else:
raise RuntimeError("Unable to find version string.")


with open("README.md", encoding="utf-8") as f:
long_description = f.read()


setup(
name="auth0-python",
version=find_version(),
description="Auth0 Python SDK",
long_description=long_description,
long_description_content_type="text/markdown",
author="Auth0",
author_email="support@auth0.com",
license="MIT",
packages=find_packages(),
install_requires=["requests>=2.14.0", "pyjwt[crypto]>=2.6.0"],
extras_require={"test": ["coverage", "pre-commit"]},
python_requires=">=3.7",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
url="https://github.com/auth0/auth0-python",
)

0 comments on commit a4783c2

Please sign in to comment.