Skip to content

Commit 976e018

Browse files
authored
Fix publishing, update package name (#16)
1 parent 913ea26 commit 976e018

File tree

7 files changed

+8
-5
lines changed

7 files changed

+8
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ jobs:
3636
poetry config virtualenvs.create false
3737
poetry build
3838
# basemath is already present as a package (as in math with bases), so use a slightly different name
39-
poetry publish basemath-analysis -u "__token__" --password "$PYPI_TOKEN"
39+
poetry publish -u "__token__" --password "$PYPI_TOKEN"
4040
env:
4141
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
## Version 0.1.1
2+
- Fix import example in README
3+
14
## Version 0.1.0
25
- Initial release

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ customers / number of visitors) by at least 1%.
3535
You initialize Basemath using the following Python code:
3636

3737
```python
38-
import basemath as bm
38+
import basemath_analysis.basemath as bm
3939
bm_test = bm.BaseMathsTest(cr_A, mde, alpha, beta, seed="experiment_name")
4040
```
4141
The parameters are as follows:
File renamed without changes.
File renamed without changes.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "basemath-analysis"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "A library for BaseMath's test, a novel Group Sequential Testing approach that enables the user to stop early."
55
authors = ["Data Products GYG <engineering.data-products@getyourguide.com>"]
66
license = "Apache License 2.0"

tests/basemath/test_basemath.py renamed to tests/basemath_analysis/test_basemath.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import pytest
44

5-
from basemath.basemath import AnalysisException, BaseMathsTest
5+
from basemath_analysis.basemath import AnalysisException, BaseMathsTest
66

77

88
def test_experiment_success():
@@ -225,7 +225,7 @@ def test_guarantee_crossing_bound():
225225
basemath = BaseMathsTest(0.3, 0.9, 0.05, 0.2, seed="test-experiment")
226226
assert basemath.required_samples == 42
227227
assert basemath.evaluate_experiment(0, -1, 0, 10) == 0
228-
with patch("basemath.basemath.stats.uniform.rvs") as mock_rvs:
228+
with patch("basemath_analysis.basemath.stats.uniform.rvs") as mock_rvs:
229229
mock_rvs.return_value = 0.999999999
230230
assert basemath.evaluate_experiment(-1, -10, 10, 40) == -1
231231

0 commit comments

Comments
 (0)