From 860c03da5394190e6d3c9f8544d4df0a4c581c23 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Thu, 29 Apr 2021 22:13:11 -0500 Subject: [PATCH] Fix travis builds (#817) Setuptools is installing the library as an egg file, which is causing it to fail to import --- ci-build.sh | 8 ++++---- setup.py | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ci-build.sh b/ci-build.sh index e9d233c..1c895a0 100755 --- a/ci-build.sh +++ b/ci-build.sh @@ -12,14 +12,14 @@ mkdir -p $BUILD python3 -mpycodestyle i3pystatus tests # Check that the setup.py script works -rm -rf ${BUILD}/test-install ${BUILD}/test-install-bin -mkdir ${BUILD}/test-install ${BUILD}/test-install-bin -PYTHONPATH=${BUILD}/test-install python3 setup.py --quiet install --install-lib ${BUILD}/test-install --install-scripts ${BUILD}/test-install-bin +rm -rf ${BUILD}/test-install{,-bin} +mkdir ${BUILD}/test-install{,-bin} +python3 setup.py install --quiet --install-lib ${BUILD}/test-install --install-scripts ${BUILD}/test-install-bin test -f ${BUILD}/test-install-bin/i3pystatus test -f ${BUILD}/test-install-bin/i3pystatus-setting-util -PYTHONPATH=${BUILD}/test-install py.test -q --junitxml ${BUILD}/testlog.xml tests +PYTHONPATH="$(echo ${BUILD}/test-install/i3pystatus-*.egg)" py.test -q --junitxml ${BUILD}/testlog.xml tests # Check that the docs build w/o warnings (-W flag) sphinx-build -Nq -b html -W docs ${BUILD}/docs/ diff --git a/setup.py b/setup.py index 8736ee8..df2c377 100755 --- a/setup.py +++ b/setup.py @@ -15,6 +15,7 @@ setup(name="i3pystatus", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", "Topic :: Desktop Environment :: Window Managers", ], python_requires='>=3.6',