Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to PEP 518 build setup #191

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.