Skip to content

Commit

Permalink
Move to PEP 518 build setup (#191)
Browse files Browse the repository at this point in the history
Move to the new PEP 518 build setup that uses read only metadata and the
new pyproject.toml configuration file. This should have no affect on end
users of this library as Python has supported this configuration format
in all the currently supported Python versions.
  • Loading branch information
jborean93 committed Jun 3, 2024
1 parent 572de55 commit d4088c0
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 75 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: '3.6'
image: python:3.6-slim
- python-version: '3.7'
image: python:3.7-slim
- python-version: '3.8'
image: python:3.8-slim
- python-version: '3.9'
Expand Down Expand Up @@ -72,14 +68,13 @@ jobs:

- name: Set up Python
uses: actions/setup-python@v5

- name: Installing baseline packages
run: |
echo "Installing baseline pip packages"
python -m pip install --upgrade pip setuptools wheel
with:
python-version: '3.12'

- name: Build package
run: python setup.py sdist bdist_wheel
run: |
python -m pip install build
python -m build
- name: Capture Wheel and SDist
uses: actions/upload-artifact@v4
Expand Down
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
History
=======

0.16.0: TBD
-----------

- Raised minimum Python version to 3.8
- Changed project build metadata to use PEP 518 pyproject.toml

0.15.0: 2024-06-04
------------------

Expand Down
1 change: 0 additions & 1 deletion ci/setup-kerb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ else
fi

echo "Updating pip and installing library"
pip$PY_MAJOR install -U pip setuptools
pip$PY_MAJOR install .
pip$PY_MAJOR install -r requirements-test.txt

Expand Down
39 changes: 39 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[build-system]
requires = [
"setuptools >= 61.0.0", # Support for setuptools config in pyproject.toml
]
build-backend = "setuptools.build_meta"

[project]
name = "requests-kerberos"
description = "A Kerberos authentication handler for python-requests"
requires-python = ">=3.8"
license = { file = "LICENSE" }
authors = [
{ name = "Ian Cordasco", email = "graffatcolmingov@gmail.com" },
{ name = "Cory Benfield" },
{ name = "Michael Komitee'" }
]
classifiers = [
"License :: OSI Approved :: ISC License (ISCL)"
]
dependencies = [
"requests >= 1.1.0",
"cryptography >= 1.3",
"pyspnego[kerberos]"
]
dynamic = ["version", "readme"]

[project.urls]
homepage = "https://github.com/requests/requests-kerberos"

[tool.setuptools]
include-package-data = true
packages = ["requests_kerberos"]

[tool.setuptools.package-data]
"*" = ["LICENSE", "AUTHORS"]

[tool.setuptools.dynamic]
version = { attr = "requests_kerberos.__version__" }
readme = { file = ["README.rst", "HISTORY.rst"], content-type = "text/x-rst" }
2 changes: 1 addition & 1 deletion requests_kerberos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@

__all__ = ('HTTPKerberosAuth', 'MutualAuthenticationError', 'REQUIRED',
'OPTIONAL', 'DISABLED')
__version__ = '0.15.0'
__version__ = '0.16.0'
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

61 changes: 0 additions & 61 deletions setup.py

This file was deleted.

0 comments on commit d4088c0

Please sign in to comment.