Skip to content

Commit

Permalink
Poetry only build (#369) (#372)
Browse files Browse the repository at this point in the history
* poetry only

* no tox

* added pytest verbose and stdout flags

* locked poetry version
  • Loading branch information
DvirDukhan authored May 8, 2023
1 parent 9f38780 commit 75f2c93
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 38 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ endif
#----------------------------------------------------------------------------------------------

pybind:
$(SHOW)python3 -m poetry build
$(SHOW)poetry build
.PHONY: pybind

#----------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -186,8 +186,8 @@ valgrind:
#----------------------------------------------------------------------------------------------

flow_test:
$(SHOW)$(MAKE) pybind
$(SHOW)tox -e flowenv
$(SHOW)poetry install
$(SHOW)poetry run pytest tests/flow -v -s

.PHONY: flow_test

Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "VecSim"
version = "0.0.1"
description = "Python library around collection of vector similarity algorithms"
build = "setup.py"

packages = [
{ include = 'src'}
Expand All @@ -28,8 +27,6 @@ python = "^3.8"

[tool.poetry.dev-dependencies]
numpy = "^1.21"
tox = "^3.25.0"
tox-poetry = "^0.4.0"
hnswlib = "^0.6.2"
pytest = "^6.2.4"
scipy = "^1.9.1"
Expand All @@ -39,3 +36,7 @@ h5py = "^3.7.0"
[build-system]
requires = ["poetry-core>=1.0.0", "setuptools"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.build]
script = "setup.py"
generate-setup-file = true
4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
pip>=21.1
poetry==1.1.15
tox>=3.25.0
tox-poetry>=0.4.1
poetry==1.4.2
29 changes: 0 additions & 29 deletions tox.ini

This file was deleted.

0 comments on commit 75f2c93

Please sign in to comment.