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 away from deprecated pkg_resources #212

Merged
merged 2 commits into from
Nov 27, 2023
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
6 changes: 4 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ jobs:
fail-fast: true
matrix:
include:
- os: ubuntu-22.04
python-version: 3.7
- os: ubuntu-22.04
python-version: 3.8
- os: ubuntu-22.04
python-version: 3.9
- os: ubuntu-22.04
python-version: '3.10'
- os: ubuntu-22.04
python-version: '3.11'
- os: ubuntu-22.04
python-version: '3.12'
runs-on: ${{ matrix.os }}
name: Python ${{ matrix.os }} / ${{ matrix.python-version }} build
steps:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Developer Documentation
=======================

This project supports Python 3.7, 3.8, 3.9, and 3.10. Other Python versions
This project supports Python 3.8, 3.9, 3.10, 3.11 and 3.12. Other Python versions
might work as well but are not regularly tested.

For locally testing changes it is very handy to install `tox` which automates
Expand Down
4 changes: 2 additions & 2 deletions ebuildtester/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import argparse
import multiprocessing
from pkg_resources import get_distribution
from importlib.metadata import version

from ebuildtester.atom import Atom

Expand All @@ -17,7 +17,7 @@ def parse_commandline(args):
parser.add_argument(
"--version",
action="version",
version="v" + get_distribution("ebuildtester").version)
version="v" + version("ebuildtester"))
parser.add_argument(
"--atom",
help="The package atom(s) to install",
Expand Down
Loading