Skip to content

Commit

Permalink
Remove pkg_resources global import, test on Py311 and 312
Browse files Browse the repository at this point in the history
  • Loading branch information
mobiusklein committed Nov 8, 2023
1 parent eabdca9 commit 6954455
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythonpackage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
Empty file.
8 changes: 4 additions & 4 deletions psims/validation/validator.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import pkg_resources

from lxml import etree
from importlib import resources

from six import raise_from

from lxml import etree


def get_xsd(name):
return pkg_resources.resource_stream(__name__, "xsd/%s" % name)
return resources.open_binary(f"psims.validation.xsd", name)


schemas = {
Expand Down
Empty file.

0 comments on commit 6954455

Please sign in to comment.