Skip to content

Commit

Permalink
Build and test with Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Dec 17, 2023
1 parent 62034cc commit 83ef873
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# note: always use the -latest OS variants b/c if conditions
# match them as literals
os: [ubuntu-latest]
python-version: [3.9]
python-version: [3.11]

steps:

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
restart: always
volumes:
- web_kiwitcms_org_coverage:/coverage
- ./social_auth_kerberos/:/venv/lib64/python3.9/site-packages/social_auth_kerberos/:z,ro
- ./social_auth_kerberos/:/venv/lib64/python3.11/site-packages/social_auth_kerberos/:z,ro

volumes:
web_kiwitcms_org_coverage:
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@ def get_long_description():
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.11",
],
)
10 changes: 5 additions & 5 deletions tests/Dockerfile.kiwitcms
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
FROM kiwitcms/kiwi

USER 0
RUN microdnf -y --nodocs install gcc krb5-devel python3-devel psmisc && \
RUN microdnf -y --nodocs install gcc krb5-devel python3.11-devel psmisc && \
microdnf clean all && mkdir /coverage && chown 1001:0 /coverage
USER 1001

RUN pip install --no-cache-dir social-auth-app-django gssapi coverage
RUN pip3 install --no-cache-dir social-auth-app-django gssapi coverage

COPY /.coveragerc /Kiwi/.coveragerc
COPY ./kiwitcms_kerberos/ /venv/lib64/python3.9/site-packages/kiwitcms_kerberos/
COPY ./kiwitcms_kerberos/kerberos_settings.py /venv/lib64/python3.9/site-packages/tcms_settings_dir/
COPY ./kiwitcms_kerberos/ /venv/lib64/python3.11/site-packages/kiwitcms_kerberos/
COPY ./kiwitcms_kerberos/kerberos_settings.py /venv/lib64/python3.11/site-packages/tcms_settings_dir/

# prepare DB during build b/c after turning on coverage this will be slow
RUN /Kiwi/manage.py migrate && \
/Kiwi/manage.py createsuperuser --noinput --username super-root --email root@example.com

COPY ./sitecustomize.py /venv/lib/python3.9/site-packages/sitecustomize.py
COPY ./sitecustomize.py /venv/lib/python3.11/site-packages/sitecustomize.py

0 comments on commit 83ef873

Please sign in to comment.