Skip to content

Commit 83aab6d

Browse files
authored
Add pyproject.toml for PEP518 compliance (#131)
1 parent 8cbefb7 commit 83aab6d

File tree

3 files changed

+36
-26
lines changed

3 files changed

+36
-26
lines changed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build-system]
2+
requires = [
3+
"setuptools >= 42.0.0", # Supports license_files
4+
]
5+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[metadata]
2+
name = requests_ntlm
3+
version = 1.2.0
4+
url = https://github.com/requests/requests-ntlm
5+
author = Ben Toews
6+
author_email = [email protected]
7+
license = ISC
8+
license_files = LICENSE
9+
description = This package allows for HTTP NTLM authentication using the requests library.
10+
long_description = file: README.rst
11+
long_description_content_type = text/x-rst
12+
classifiers =
13+
Development Status :: 4 - Beta
14+
Intended Audience :: Developers
15+
Programming Language :: Python
16+
Programming Language :: Python :: 3
17+
Programming Language :: Python :: 3.7
18+
Programming Language :: Python :: 3.8
19+
Programming Language :: Python :: 3.9
20+
Programming Language :: Python :: 3.10
21+
Programming Language :: Python :: 3.11
22+
License :: OSI Approved :: ISC License (ISCL)
23+
24+
[options]
25+
python_requires = >= 3.7
26+
install_requires =
27+
cryptography >= 1.3
28+
pyspnego >= 0.1.6
29+
requests >= 2.0.0

setup.py

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,6 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
32

43
from setuptools import setup
54

6-
setup(
7-
name="requests_ntlm",
8-
version="1.2.0",
9-
packages=["requests_ntlm"],
10-
install_requires=["requests>=2.0.0", "pyspnego>=0.1.6", "cryptography>=1.3"],
11-
python_requires=">=3.7",
12-
provides=["requests_ntlm"],
13-
author="Ben Toews",
14-
author_email="[email protected]",
15-
url="https://github.com/requests/requests-ntlm",
16-
description="This package allows for HTTP NTLM authentication using the requests library.",
17-
license="ISC",
18-
classifiers=[
19-
"Development Status :: 4 - Beta",
20-
"Intended Audience :: Developers",
21-
"Programming Language :: Python",
22-
"Programming Language :: Python :: 3",
23-
"Programming Language :: Python :: 3.7",
24-
"Programming Language :: Python :: 3.8",
25-
"Programming Language :: Python :: 3.9",
26-
"Programming Language :: Python :: 3.10",
27-
"Programming Language :: Python :: 3.11",
28-
"License :: OSI Approved :: ISC License (ISCL)",
29-
],
30-
)
5+
# Kept for editable install compatibility with older setuptools/pip versions
6+
setup()

0 commit comments

Comments
 (0)