Skip to content

Commit 208b9ab

Browse files
committed
Add package publishing step, remove unused file, update with repo info
1 parent 872c852 commit 208b9ab

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,14 @@ jobs:
2828
poetry install --with dev
2929
. ./.venv/bin/activate
3030
pytest .
31+
rm -rf .venv
32+
- name: Publish to PYPI
33+
if: github.ref_name == 'main'
34+
run: |
35+
pip install poetry
36+
poetry config virtualenvs.create false
37+
poetry build
38+
# basemath is already present as a package (as in math with bases), so use a slightly different name
39+
poetry publish --name basemath-analysis -u "__token__" --password "$PYPI_TOKEN"
40+
env:
41+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

basemath/exceptions.py

Whitespace-only changes.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
name = "basemath"
33
version = "0.1.0"
44
description = "A library for BaseMath's test, a novel Group Sequential Testing approach that enables the user to stop early."
5-
authors = ["Your Name <you@example.com>"]
5+
authors = ["Data Products GYG <engineering.data-products@getyourguide.com>"]
66
license = "Apache License 2.0"
77
readme = "README.md"
8+
repository = "https://github.com/getyourguide/basemath"
89

910
[tool.poetry.dependencies]
1011
python = "^3.8"

0 commit comments

Comments
 (0)