GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — imgutils/Makefile at main · deepghs/imgutils

Expand file tree

/

Makefile

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
64 lines (54 loc) · 2.25 KB
/

Makefile

Copy path

File metadata and controls

64 lines (54 loc) · 2.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.PHONY: docs test unittest resource
PYTHON := $(shell which python)
PROJ_DIR := .
DOC_DIR := ${PROJ_DIR}/docs
BUILD_DIR := ${PROJ_DIR}/build
DIST_DIR := ${PROJ_DIR}/dist
TEST_DIR := ${PROJ_DIR}/test
TESTFILE_DIR := ${TEST_DIR}/testfile
DATASET_DIR := ${TESTFILE_DIR}/dataset
SRC_DIR := ${PROJ_DIR}/imgutils
TEMPLATES_DIR := ${PROJ_DIR}/templates
RESOURCE_DIR := ${PROJ_DIR}/resource
RANGE_DIR ?= .
RANGE_TEST_DIR := ${TEST_DIR}/${RANGE_DIR}
RANGE_SRC_DIR := ${SRC_DIR}/${RANGE_DIR}
GAMES ?= arknights fgo genshin girlsfrontline azurlane
COV_TYPES ?= xml term-missing
package:
$(PYTHON) -m build --sdist --wheel --outdir ${DIST_DIR}
clean:
rm -rf ${DIST_DIR} ${BUILD_DIR} *.egg-info \
$(shell find ${SRC_DIR}/games -name index.json -type f) \
$(shell find ${SRC_DIR}/games -name danbooru_tags.json -type f) \
$(shell find ${SRC_DIR}/games -name pixiv_names.json -type f) \
$(shell find ${SRC_DIR}/games -name pixiv_characters.json -type f) \
$(shell find ${SRC_DIR}/games -name pixiv_alias.yaml -type f)
test: unittest
unittest:
UNITTEST=1 \
pytest "${RANGE_TEST_DIR}" \
-sv -m unittest \
$(shell for type in ${COV_TYPES}; do echo "--cov-report=$$type"; done) \
--cov="${RANGE_SRC_DIR}" \
$(if ${MIN_COVERAGE},--cov-fail-under=${MIN_COVERAGE},) \
$(if ${WORKERS},-n ${WORKERS},) \
--reruns 8 --reruns-delay 2 --only-rerun '(OSError|Timeout|HTTPError.*429|HTTPError.*502|HTTPError.*504|check your connection|429 error|CAS service error)'
docs:
$(MAKE) -C "${DOC_DIR}" build
pdocs:
$(MAKE) -C "${DOC_DIR}" prod
dataset:
mkdir -p ${DATASET_DIR}
if [ ! -d ${DATASET_DIR}/chafen_arknights ]; then \
hfutils download -r deepghs/chafen_arknights -t dataset -a dataset.zip -o ${DATASET_DIR}/chafen_arknights; \
fi
if [ ! -d ${DATASET_DIR}/monochrome_danbooru ]; then \
hfutils download -r deepghs/monochrome_danbooru -t dataset -a dataset.zip -o ${DATASET_DIR}/monochrome_danbooru; \
fi
if [ ! -d ${DATASET_DIR}/images_test_v1 ]; then \
hfutils download -r deepghs/character_similarity -t dataset -a images_test_v1.tar.xz -o ${DATASET_DIR}/images_test_v1; \
fi
if [ ! -d ${DATASET_DIR}/unsplash_1000 ]; then \
hfutils download -r deepghs/realutils_unittest -a unsplash_1000.zip -o ${DATASET_DIR}/unsplash_1000; \
fi
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.