129 Star 331 Fork 121

cosven / FeelUOwn

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
Makefile 2.28 KB
Copy Edit Raw Blame History
Shaowen Yin authored 2023-04-27 16:02 . bundle: fix windows build (#684)
.PHONY: docs
all: unittest
docs:
cd docs && make html
PYLINT_PKGS=
PYLINT_PKGS+=feeluown/gui/pages/
PYLINT_PKGS+=feeluown/gui/uimodels/
PYLINT_PKGS+=feeluown/gui/widgets/lyric.py
PYLINT_PKGS+=feeluown/fuoexec/
PYLINT_PKGS+=feeluown/server/
PYLINT_PKGS+=feeluown/nowplaying/
PYLINT_PKGS+=feeluown/collection.py
PYLINT_PKGS+=feeluown/plugin.py
PYLINT_PKGS+=feeluown/player/lyric.py
pylint:
pylint ${PYLINT_PKGS}
# Packages need to check currently.
# All packages are supposed to be checked in the future.
MYPY_PKGS=
MYPY_PKGS+=feeluown/library/
MYPY_PKGS+=feeluown/player/
MYPY_PKGS+=feeluown/app/
MYPY_PKGS+=feeluown/entry_points/
MYPY_STRICT_PKGS=
MYPY_STRICT_PKGS+=feeluown/collection.py
MYPY_STRICT_PKGS+=feeluown/utils/reader.py
MYPY_STRICT_PKGS+=feeluown/server/
MYPY_STRICT_PKGS+=feeluown/cli/cli.py
MYPY_STRICT_PKGS+=feeluown/gui/
mypy:
# Add flag --check-untyped-defs.
mypy ${MYPY_PKGS}
mypy --check-untyped-defs ${MYPY_STRICT_PKGS}
flake8:
flake8 feeluown/ tests/
# flake8 is mainly used for constrainting coding style
# pylint is mainly used for finding obvious bugs
# mypy is mainly used for better readable code
lint: flake8 pylint
unittest: pytest
pytest:
# Disable faulthandler plugin, because it cause verbose output on windows.
# Besides, the fault currently cause no side effects.
TEST_ENV=travis QT_QPA_PLATFORM=offscreen pytest -p no:faulthandler
integration_test: export QT_QPA_PLATFORM=offscreen
integration_test:
./integration-tests/run.py
test: lint unittest
BUNDLE_FLAGS=
ifeq ($(OS),Windows_NT)
BUNDLE_FLAGS += --name FeelUOwn
BUNDLE_FLAGS += --icon feeluown/gui/assets/icons/feeluown.ico
else
# macOS: since apfs is not case-sensitive, we use FeelUOwnX instead of FeelUOwn
BUNDLE_FLAGS += --name FeelUOwnX --osx-bundle-identifier org.feeluown.FeelUOwnX
BUNDLE_FLAGS += --icon feeluown/gui/assets/icons/feeluown.icns
endif
# Please install pyinstaller manually.
bundle:
pyinstaller -w feeluown/pyinstaller/main.py \
${BUNDLE_FLAGS} \
-w \
--noconfirm
clean: clean_py clean_emacs
clean_py:
find . -name "*.pyc" -exec rm -f {} \;
find . -name __pycache__ -delete
find . -name .mypy_cache/ -delete
clean_emacs:
find . -name "*~" -exec rm -f {} \;
find . -name "*flymake.py" -exec rm -f {} \;
find . -name "\#*.py\#" -exec rm -f {} \;
find . -name ".\#*.py\#" -exec rm -f {} \;
Python
1
https://gitee.com/zjuysw/FeelUOwn.git
git@gitee.com:zjuysw/FeelUOwn.git
zjuysw
FeelUOwn
FeelUOwn
master

Search