Skip to content
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
54 changes: 0 additions & 54 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,60 +89,6 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

rhel8-system-python:
name: rhel8-system-python
runs-on: ubuntu-latest
container: "almalinux:8"
steps:
- name: Install System Python and Git
run: yum install -y python3-devel python3-pip python3 git
- uses: actions/checkout@v4
- name: Install Testing Requirements
run: python3 -m pip install nox
- name: Run Tests
run: python3 -m nox -e tests
# - name: Upload to codecov
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# fail_ci_if_error: true

rhel8-appstream-py38:
name: rhel8-appstream-py38
runs-on: ubuntu-latest
container: "almalinux:8"
steps:
- name: Install Python 3.8 and Git from AppStream
run: yum install -y python38-devel python38-pip python38-pip-wheel python38 git
- uses: actions/checkout@v4
- name: Install Testing Requirements
run: python3.8 -m pip install nox
- name: Run Tests
run: python3.8 -m nox -e tests
# - name: Upload to codecov
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# fail_ci_if_error: true

rhel8-appstream-py39:
name: rhel8-appstream-py39
runs-on: ubuntu-latest
container: "almalinux:8"
steps:
- name: Install Python 3.9 and Git from AppStream
run: yum install -y python39-devel python39-pip python39-pip-wheel python39 git
- uses: actions/checkout@v4
- name: Install Testing Requirements
run: python3.9 -m pip install nox
- name: Run Tests
run: python3.9 -m nox -e tests
# - name: Upload to codecov
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# fail_ci_if_error: true

rhel9-system-python:
name: rhel9-system-python
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
__pycache__/
*.egg-info/
.coverage
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,10 @@ repos:
# Run the formatter.
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.18.2
hooks:
- id: mypy

ci:
autofix_prs: false
2 changes: 2 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
pytest_cov_args = ["--cov=find_libpython", "--cov-branch"]
coverage_file = "coverage.xml"

nox.options.default_venv_backend = "uv|virtualenv"


@nox.session
def tests(session):
Expand Down
45 changes: 43 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,40 @@
[build-system]
requires = ["setuptools>=43", "wheel"]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "find_libpython"
authors = [{name = "Takafumi Arakaki"}]
maintainers = [{name = "Kaleb Barrett", email = "[email protected]"}]
license = {text = "MIT"}
description = "Finds the libpython associated with your environment, wherever it may be hiding"
classifiers = [
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries",
]
requires-python = ">=3.9"
dynamic = ["version"]

[project.readme]
file = "README.md"
content-type = "text/markdown"

[project.urls]
Homepage = "https://github.com/ktbarrett/find_libpython"

[project.scripts]
find_libpython = "find_libpython:main"

[tool.setuptools]
packages = ["find_libpython"]
package-dir = {"" = "src"}
include-package-data = false

[tool.setuptools.dynamic]
version = {attr = "find_libpython.__version__"}

[tool.ruff]
target-version = "py37"
target-version = "py39"

[tool.ruff.lint]
select = [
Expand All @@ -17,3 +48,13 @@ ignore = [
"E501", # Line too long
"PLR0912", # Too many branches
]

[tool.mypy]
packages = ["find_libpython"]

[dependency-groups]
dev = [
"mypy",
"nox[uv]",
"ruff",
]
26 changes: 0 additions & 26 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

Loading
Loading