Skip to content

Commit

Permalink
build: specify build system
Browse files Browse the repository at this point in the history
Use Setuptools build-backend.
Tell PSR to build from `main`, using PyPAs Build
  • Loading branch information
JorisVincent committed Apr 7, 2023
1 parent 6c62384 commit 649b078
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion pyproject.toml
Expand Up @@ -52,6 +52,12 @@ docs = [
[project.urls]
repository = "https://github.com/computational-psychology/stimupy.git"

[build-system]
requires = [
"setuptools >= 40.9.0",
]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
where = ["."] # list of folders that contain the packages (["."] by default)
include = ["stimupy*"] # package names should match these glob patterns (["*"] by default)
Expand All @@ -77,4 +83,10 @@ version_variable = [ # version location(s)
major_on_zero = false # don't auto-bump to v1.0.0 yet
patch_without_tag = false # if nothing triggers a patch, bump?
commit_version_number = true # commit changes to version number?
commit_subject = "v{version}"
commit_subject = "v{version}"

branch = "main" # build dists (only) from "main" branch
build_command = "pipx run build" # use PyPAs build to generate distribution packages (sdist, wheel)
upload_to_release = true # upload sdist, wheel to release-tag
upload_to_pypi = false # don't auto-upload to PyPI, we'll separately
remove_dist = false # don't remove dist packages -- need those to upload

0 comments on commit 649b078

Please sign in to comment.