diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..1402e54 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +[build-system] +requires = [ + "setuptools >= 42.0.0", # Supports license_files +] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..3c0d3e4 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,29 @@ +[metadata] +name = requests_ntlm +version = 1.2.0 +url = https://github.com/requests/requests-ntlm +author = Ben Toews +author_email = mastahyeti@gmail.com +license = ISC +license_files = LICENSE +description = This package allows for HTTP NTLM authentication using the requests library. +long_description = file: README.rst +long_description_content_type = text/x-rst +classifiers = + Development Status :: 4 - Beta + Intended Audience :: Developers + Programming Language :: Python + Programming Language :: Python :: 3 + 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 + License :: OSI Approved :: ISC License (ISCL) + +[options] +python_requires = >= 3.7 +install_requires = + cryptography >= 1.3 + pyspnego >= 0.1.6 + requests >= 2.0.0 diff --git a/setup.py b/setup.py index 46c0e5d..a868cf7 100644 --- a/setup.py +++ b/setup.py @@ -1,30 +1,6 @@ #!/usr/bin/env python -# coding: utf-8 from setuptools import setup -setup( - name="requests_ntlm", - version="1.2.0", - packages=["requests_ntlm"], - install_requires=["requests>=2.0.0", "pyspnego>=0.1.6", "cryptography>=1.3"], - python_requires=">=3.7", - provides=["requests_ntlm"], - author="Ben Toews", - author_email="mastahyeti@gmail.com", - url="https://github.com/requests/requests-ntlm", - description="This package allows for HTTP NTLM authentication using the requests library.", - license="ISC", - classifiers=[ - "Development Status :: 4 - Beta", - "Intended Audience :: Developers", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "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", - "License :: OSI Approved :: ISC License (ISCL)", - ], -) +# Kept for editable install compatibility with older setuptools/pip versions +setup()