Skip to content

Commit

Permalink
Merge pull request #212 from parona-source/pkg_resources
Browse files Browse the repository at this point in the history
Move away from deprecated pkg_resources
  • Loading branch information
nicolasbock authored Nov 27, 2023
2 parents 460ab22 + e95c342 commit decf520
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
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

0 comments on commit decf520

Please sign in to comment.