Skip to content

Commit

Permalink
CRAN tweaks (#48)
Browse files Browse the repository at this point in the history
* CRAN tweaks
  • Loading branch information
virgesmith authored Oct 23, 2024
1 parent 22c1582 commit e28f541
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
^\.pytest_cache
^humanleague.cpython
setup.cfg
codecov.yml
pyproject.toml
dist/
build/
Expand Down
6 changes: 3 additions & 3 deletions scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ echo $version

# package
# no binary dist as C++
python3 setup.py sdist
python -m build . --sdist
# upload
# twine upload -u __token__ -p $TEST_PYPI_API_TOKEN --repository-url https://test.pypi.org/legacy/ dist/humanleague-$version.tar.gz
twine upload -u __token__ -p $PYPI_API_TOKEN --repository-url https://upload.pypi.org/legacy/ dist/humanleague-$version.tar.gz
# twine upload -u __token__ -p $TEST_PYPI_API_TOKEN --repository testpypi dist/humanleague-$version.tar.gz
twine upload -u __token__ -p $PYPI_API_TOKEN dist/humanleague-$version.tar.gz

# NB on testPyPI, deps need to been installed from main repo. Use this:
# pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple humanleague
2 changes: 1 addition & 1 deletion src/NDArrayUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ inline bool allclose(const std::vector<double>& a, const std::vector<double>& b,
return false;
}
for (size_t i = 0; i < a.size() ; ++i) {
if (abs(a[i] - b[i]) > abstol) {
if (fabs(a[i] - b[i]) > abstol) {
return false;
}
}
Expand Down

0 comments on commit e28f541

Please sign in to comment.