Skip to content

Commit 81eb1c8

Browse files
committed
build: 修改软件包构建相关命令和配置
1 parent 83c6823 commit 81eb1c8

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
# BGE 开放平台 Makefile 工具
22

33
PYTHON=`which python`
4+
PIP = `which pip`
45

56
install:
67
$(PYTHON) setup.py install
78

89
# 构建源码包
910
build:
10-
$(PYTHON) setup.py bdist_wheel
11-
$(PYTHON) setup.py sdist
11+
python -m build
1212

1313
# 单元测试
1414
test:
15-
pip install pytest pytest-cov; \
15+
$(PIP) install pytest pytest-cov; \
1616
chmod +x ./test_env.sh; \
1717
./test_env.sh
1818

1919
upload-test:
20-
pip install twine; \
20+
$(PIP) install twine; \
2121
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
2222

2323
upload:
24-
pip install twine; \
24+
$(PIP) install twine; \
2525
twine upload dist/*
2626

2727
changelog:

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ url = https://github.com/teambge/bge-python-sdk
1010
author = leafcoder,xiangji1204
1111
author_email = leafcoder@gmail.com,xiangji1204@genomics.cn
1212
license = MIT
13-
license_file = LICENSE
13+
license_files = LICENSE
1414
keywords = bge-python-sdk bge bgesdk sdk
1515
classifiers =
1616
Development Status :: 5 - Production/Stable

0 commit comments

Comments
 (0)