Skip to content
New issue

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

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

Already on GitHub? # to your account

Move back to using setup.cfg #24

Merged
merged 1 commit into from
Dec 16, 2022
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
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4

- uses: actions/download-artifact@v3
with:
name: artifact
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## 0.5.0 - TBD

* Added exception that is raised when `krb5.init_context()` failed
* Moved back to `setup.cfg` based setuptools project for compatibility with `pip` present on system distributions

## 0.4.1 - 2022-10-25

* Added Python 3.11 wheel
Expand Down
42 changes: 5 additions & 37 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,46 +1,14 @@
[build-system]
requires = [
"Cython >= 0.29.29, < 3.0.0", # 0.29.29 includes fixes for Python 3.11
"setuptools >= 61.0.0", # Support for setuptools config in pyproject.toml
"setuptools >= 42.0.0", # Supports license_files
]
build-backend = "setuptools.build_meta"

[project]
name = "krb5"
version = "0.5.0"
description = "Kerberos API bindings for Python"
readme = "README.md"
requires-python = ">=3.7"
license = {file = "LICENSE"}
authors = [
{ name = "Jordan Borean", email = "jborean93@gmail.com" }
]
keywords = ["krb5", "kerberos"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
]

[project.urls]
homepage = "https://github.com/jborean93/pykrb5"

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-data]
krb5 = ["py.typed", "*.pyi"]

[tool.setuptools.exclude-package-data]
krb5 = ["*.pxd", "*.pyx"]
# FUTURE: Mandate newer setuptools to use pyproject.toml configuration
# Currently it fails when using older pip versions that are still used by some
# Linux distributions with:
# WARNING: Generating metadata for package krb5 produced metadata for project name unknown. Fix your #egg=krb5 fragments.

[tool.black]
line-length = 120
Expand Down
43 changes: 43 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[metadata]
name = krb5
version = 0.5.0
url = https://github.com/jborean93/pykrb5
author = Jordan Borean
author_email = jborean93@gmail.com
license = MIT
license_files = LICENSE
description = Kerberos API bindings for Python
long_description = file: README.md
long_description_content_type = text/markdown
keywords =
krb5
kerberos
classifiers =
Development Status :: 4 - Beta
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11

[options]
package_dir =
=src
packages = find:
include_package_data = True
python_requires = >= 3.7

[options.packages.find]
where = src

[options.package_data]
krb5 =
py.typed
*.pyi

[options.exclude_package_data]
krb5 =
*.pxd
*.pyx