File tree 3 files changed +21
-16
lines changed
3 files changed +21
-16
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM python:3.11-slim
2
2
3
3
RUN apt-get update && apt-get install make
4
4
5
- WORKDIR /app
5
+ WORKDIR /yaylib
6
6
7
7
COPY Pipfile .
8
8
Original file line number Diff line number Diff line change 1
- .PHONY :
1
+ # Docker
2
+ .PHONY : up down shell
3
+
2
4
up : # 実行環境の構築&起動
3
5
docker compose up -d
4
- docker compose exec yaylib bash
6
+ make shell
5
7
6
- .PHONY :
7
8
down : # コンテナ停止
8
9
docker compose down
9
10
10
- .PHONY :
11
- clean-doc :
12
- rm -rf docs/yaylib.* docs/modules.rst docs/_build/
11
+ shell :
12
+ docker compose exec yaylib bash
13
13
14
- .PHONY :
15
- doc : # ドキュメントの生成
16
- make clean-doc
17
- sphinx-apidoc -f -e -o ./docs . tests/* * _test.py setup.py
18
- sphinx-build -b singlehtml ./docs ./docs/_build
14
+ # Distribution
15
+ .PHONY : build clean publish
19
16
20
- .PHONY :
21
17
build : # パッケージのビルド
22
18
python setup.py sdist
23
19
python setup.py bdist_wheel
24
20
25
- .PHONY :
26
21
clean : # ビルドファイル削除
27
22
rm -rf build/
28
23
rm -rf dist/
29
24
rm -rf yaylib.egg-info/
30
25
31
- .PHONY :
32
26
publish : # PYPIにパッケージのアップロード
33
27
make build
34
28
twine upload --repository pypi dist/*
35
29
make clean
30
+
31
+ # Documentation
32
+ .PHONY : gen-doc clean-doc
33
+
34
+ gen-doc : # ドキュメントの生成
35
+ make clean-doc
36
+ sphinx-apidoc -f -e -o ./docs . tests/* * _test.py setup.py
37
+ sphinx-build -b singlehtml ./docs ./docs/_build
38
+
39
+ clean-doc :
40
+ rm -rf docs/yaylib.* docs/modules.rst docs/_build/
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ services:
4
4
build :
5
5
context : .
6
6
volumes :
7
- - .:/app
7
+ - .:/yaylib
8
8
tty : true
You can’t perform that action at this time.
0 commit comments