Skip to content

Commit 4201f55

Browse files
snowman2Alan Snow
andauthored
MNT: pyproject.toml for project metadata (#51)
Co-authored-by: Alan Snow <[email protected]>
1 parent d7d5be7 commit 4201f55

File tree

4 files changed

+87
-62
lines changed

4 files changed

+87
-62
lines changed

.github/workflows/tests.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
fail-fast: true
3131
matrix:
3232
os: [ubuntu-latest, macos-latest, windows-latest]
33-
python-version: ['3.10', '3.11', '3.12']
33+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
3434

3535
steps:
3636
- uses: actions/checkout@v6
@@ -41,7 +41,7 @@ jobs:
4141
- name: Install Env
4242
shell: bash
4343
run: |
44-
python -m pip install -e .[all]
44+
python -m pip install -e .[all] --group dev
4545
4646
- name: Check and Log Environment
4747
shell: bash
@@ -52,13 +52,11 @@ jobs:
5252
- name: Pylint
5353
shell: bash
5454
run: |
55-
python -m pip install pylint
5655
python -m pylint msal_requests_auth
5756
5857
- name: mypy
5958
shell: bash
6059
run: |
61-
python -m pip install mypy types-requests
6260
python -m mypy msal_requests_auth
6361
6462
- name: Test

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Ready to contribute? Here's how to set up `msal_requests_auth` for local develop
6969
$ cd msal_requests_auth/
7070
$ python3 -m venv venv
7171
$ source venv/bin/activate
72-
$ python -m pip install -e .[all]
72+
$ python -m pip install -e .[all] --group dev
7373

7474
4. Install pre-commit::
7575

pyproject.toml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
[build-system]
2+
# Minimum requirements for the build system to execute.
3+
requires = ["setuptools", "wheel"]
4+
5+
[project]
6+
name = "msal_requests_auth"
7+
dynamic = ["version"]
8+
description = "Authentication using python requests and MSAL"
9+
maintainers = [
10+
{name = "msal_requests_auth Contributors"},
11+
]
12+
keywords = [
13+
"authenticate",
14+
"msal",
15+
"microsoft",
16+
"requests",
17+
]
18+
readme = "README.rst"
19+
license = {text = "BSD-3-Clause"}
20+
classifiers = [
21+
"Development Status :: 4 - Beta",
22+
"Intended Audience :: Developers",
23+
"Natural Language :: English",
24+
"License :: OSI Approved :: BSD License",
25+
"Operating System :: OS Independent",
26+
"Topic :: Scientific/Engineering :: GIS",
27+
"Programming Language :: Python",
28+
"Programming Language :: Python :: 3.10",
29+
"Programming Language :: Python :: 3.11",
30+
"Programming Language :: Python :: 3.12",
31+
"Programming Language :: Python :: 3.13",
32+
"Programming Language :: Python :: 3.14",
33+
"Programming Language :: Python :: 3",
34+
"Topic :: Software Development :: Libraries :: Python Modules",
35+
"Typing :: Typed",
36+
]
37+
requires-python = ">=3.10"
38+
dependencies = [
39+
"platformdirs",
40+
"msal",
41+
"pyperclip",
42+
"requests"
43+
]
44+
45+
[project.optional-dependencies]
46+
keyring = ["keyring"]
47+
all = ["msal_requests_auth[keyring]"]
48+
49+
[tool.setuptools.dynamic]
50+
version = {attr = "msal_requests_auth.__version__"}
51+
52+
[dependency-groups]
53+
test = [
54+
"pytest>=3.6",
55+
"pytest-cov",
56+
]
57+
type = [
58+
"mypy",
59+
"types-requests",
60+
]
61+
lint = [
62+
"pylint"
63+
]
64+
dev = [
65+
"pre-commit",
66+
{include-group = "test"},
67+
{include-group = "type"},
68+
{include-group = "lint"}
69+
]
70+
71+
[project.urls]
72+
repository = " https://github.com/corteva/msal-requests-auth"
73+
74+
75+
[tool.setuptools.packages.find]
76+
include = ["msal_requests_auth", "msal_requests_auth.*"]
77+
78+
[options.package_data]
79+
msal_requests_auth = [
80+
"py.typed",
81+
]
82+
83+
[tool.black]
84+
target_version = ["py310"]

setup.cfg

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

0 commit comments

Comments
 (0)