Skip to content

Commit 0767601

Browse files
authored
MNT: setup.cfg & dist fixes (#14)
1 parent 9616a41 commit 0767601

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

.github/workflows/tests.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,11 @@ jobs:
6060
run: |
6161
python -m pytest --cov-report term-missing --cov=msal_requests_auth --cov-report xml
6262
63+
- name: Dist Check
64+
shell: bash
65+
run: |
66+
python -m pip install twine build
67+
python -m build
68+
twine check --strict dist/*
69+
6370
- uses: codecov/codecov-action@v1

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ Device Code Flow
5151
To disable, either set `headless=True` when initializing `DeviceCodeAuth`
5252
or set the environment variable `MSAL_REQUESTS_AUTH_HEADLESS` to `true`.
5353

54-
.. versionadded:: 0.2.0 headless
55-
.. versionadded:: 0.6.0 MSAL_REQUESTS_AUTH_HEADLESS environment variable
54+
- New in version 0.2.0: headless
55+
- New in version 0.6.0: MSAL_REQUESTS_AUTH_HEADLESS environment variable
5656

5757

5858
.. code-block:: python

setup.cfg

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
author = msal_requests_auth Contributors
33
author_email = alansnow21@gmail.com
44
name = msal_requests_auth
5+
version = attr: msal_requests_auth.__version__
56
description = Authentication using python requests and MSAL
67
keywords = msal, requests
78
long_description = file: README.rst
9+
long_description_content_type = text/x-rst
810
license = BSD License
9-
license_file = LICENSE
11+
license_files = LICENSE
1012
platform = any
1113
classifiers =
1214
Development Status :: 2 - Pre-Alpha
@@ -50,6 +52,3 @@ dev =
5052
pylint
5153
all =
5254
%(dev)s
53-
54-
[bdist_wheel]
55-
universal = 1

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/usr/bin/env python
22
from setuptools import setup
33

4-
from msal_requests_auth import __version__
5-
6-
setup(version=__version__)
4+
setup()

0 commit comments

Comments
 (0)