Commit e8df88ba authored by xdrazkov's avatar xdrazkov
Browse files

feat: prepare for packaging

parent fd6d90ef
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+28 −0
Original line number Diff line number Diff line
stages:
  - build
  - publish

variables:
  PIP_DISABLE_PIP_VERSION_CHECK: "1"
  PYTHONUNBUFFERED: "1"

build:
  stage: build
  image: python:3.12
  script:
    - python -m pip install --upgrade pip uv
    - uv build
  artifacts:
    paths:
      - dist/*
    expire_in: 1 week

publish:
  stage: publish
  image: python:3.12
  rules:
    - if: $CI_COMMIT_TAG
  script:
    - python -m pip install --upgrade pip uv
    - uv pip install --upgrade twine
    - python -m twine upload --non-interactive --repository-url "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/pypi" dist/*
+1 −1
Original line number Diff line number Diff line
[project]
name = "regstar-library"
version = "0.1.0"
description = ""
description = "Patrolling Strategy Optimization"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [