빌드 단계 추가 및 코드 정리

This commit is contained in:
jung-geun
2024-03-08 17:49:44 +09:00
parent 9cce58c177
commit 4cd563190f
10 changed files with 2478 additions and 2384 deletions

View File

@@ -0,0 +1,18 @@
variables:
PYTHON_VERSION: "3.9"
TWINE_USERNAME: "__token__"
build-package:
stage: build
image: python:${PYTHON_VERSION}
script:
- pip install --upgrade pip
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- pip install setuptools wheel twine
- python setup.py bdist_wheel sdist
- twine upload dist/*.whl dist/*.tar.gz
only:
changes:
- "setup.py"
- "pso/__init__.py"