Skip to content

Commit

Permalink
compactify pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
arogozhnikov committed May 15, 2023
1 parent 2353cb0 commit 6c6447f
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,27 +48,24 @@ exclude = [
# should use packages from main section



[tool.hatch.envs.pypi.scripts]
# hatch run pypi:deploy_test
deploy_test = "hatch build --clean && hatch publish -r test"
deploy = "hatch build --clean && hatch publish"

[tool.hatch.envs.testing.env-vars]
# currently using nightly numpy, so we need to add an additional index
PIP_INDEX_URL = "https://pypi.anaconda.org/scipy-wheels-nightly/simple/"
# fallback to original code
PIP_EXTRA_INDEX_URL = "https://pypi.org/simple/"
# allow pre-releases
PIP_PRE = "1"


[tool.hatch.envs.testing]
dependencies = ['numpy', 'pytest']

[tool.hatch.envs.testing.scripts]
# currently using nightly numpy, so we need to add an additional index
# fallback to standard pypi for other packages
# allow pre-releases
env-vars = { PIP_INDEX_URL = "https://pypi.anaconda.org/scipy-wheels-nightly/simple/", PIP_EXTRA_INDEX_URL = "https://pypi.org/simple/", PIP_PRE = "1" }
# [tool.hatch.envs.testing.env-vars]

# hatch run testing:test
test = "pytest tests"
scripts = { test = "pytest tests" }


[tool.black]
line-length = 120
Expand Down

0 comments on commit 6c6447f

Please sign in to comment.