mirror of
https://github.com/jung-geun/PSO.git
synced 2025-12-19 20:44:39 +09:00
19 lines
441 B
YAML
19 lines
441 B
YAML
variables:
|
|
PYTHON_VERSION: "3.9"
|
|
TWINE_USERNAME: "__token__"
|
|
|
|
build-pypi:
|
|
stage: build-pypi
|
|
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"
|