Skip to content

Commit 864b480

Browse files
committed
Added Makefile
1 parent cc65511 commit 864b480

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

Makefile

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
ifeq ($(OS), Windows_NT)
2+
build:
3+
python -m pip install --upgrade build
4+
python -m build
5+
6+
clean:
7+
if exist "./build" rd /s /q build
8+
if exist "./dist" rd /s /q dist
9+
if exist "./filexdb.egg-info" rd /s /q filexdb.egg-info
10+
11+
clean-build:
12+
if exist "./build" rd /s /q build
13+
if exist "./dist" rd /s /q dist
14+
if exist "./filexdb.egg-info" rd /s /q filexdb.egg-info
15+
16+
python -m pip install --upgrade build
17+
python -m build
18+
19+
release:
20+
python -m twine upload --repository testpythonpi dist\*
21+
22+
23+
24+
else # Linux or MAC
25+
build:
26+
python3 -m pip install --upgrade build
27+
python3 -m build
28+
29+
clean:
30+
rm -rf build
31+
rm -rf dist
32+
rm -rf filexdb.egg-info
33+
34+
clean-build:
35+
rm -rf build
36+
rm -rf dist
37+
rm -rf filexdb.egg-info
38+
39+
python3 -m build
40+
41+
release:
42+
python3 -m twine upload --repository testpypi dist/*
43+
44+
45+
endif

0 commit comments

Comments
 (0)