Fix travis builds (#817)

Setuptools is installing the library as an egg file, which is causing it
to fail to import
This commit is contained in:
Erik Johnson 2021-04-29 22:13:11 -05:00 committed by GitHub
parent 3bc23608fd
commit 860c03da53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -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/

View File

@ -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',