Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert bin scripts to entry points #109

Merged
merged 16 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pytom-template-matching-gpu"
version = "0.3.4"
version = "0.3.5"
description = "GPU template matching from PyTOM as a lightweight pip package"
readme = "README.md"
license = {file = "LICENSE"}
Expand Down Expand Up @@ -39,6 +39,17 @@ dependencies = [
[project.optional-dependencies]
plotting = ["matplotlib", "seaborn"]

[project.scripts]
"pytom_create_mask.py" = "pytom_tm.entry_points:pytom_create_mask"
"pytom_create_template.py" = "pytom_tm.entry_points:pytom_create_template"
"pytom_match_template.py" = "pytom_tm.entry_points:match_template"
"pytom_extract_candidates.py" = "pytom_tm.entry_points:extract_candidates"
"pytom_merge_stars.py" = "pytom_tm.entry_points:merge_stars"
# as of writing setuptools does not obey entry-point spec here
# ref: https://packaging.python.org/en/latest/specifications/entry-points/
# might fix itself in the future
"pytom_estimate_roc.py" = "pytom_tm.entry_points:estimate_roc [plotting]"

[project.urls]
Repository = "https://github.com/SBC-Utrecht/pytom-template-matching-gpu"
Issues = "https://github.com/SBC-Utrecht/pytom-template-matching-gpu/issues"
Expand All @@ -47,13 +58,3 @@ Issues = "https://github.com/SBC-Utrecht/pytom-template-matching-gpu/issues"
packages = ["pytom_tm", "pytom_tm.angle_lists"]
package-dir = {"" = "src"}
package-data = {"pytom_tm.angle_lists" = ["*.txt"]}
script-files=[ # This is discouraged and should be converted to project.scripts soon
"src/bin/pytom_create_mask.py",
"src/bin/pytom_create_template.py",
"src/bin/pytom_match_template.py",
"src/bin/pytom_extract_candidates.py",
"src/bin/pytom_estimate_roc.py",
"src/bin/pytom_merge_stars.py",
]


54 changes: 0 additions & 54 deletions src/bin/pytom_create_mask.py

This file was deleted.

117 changes: 0 additions & 117 deletions src/bin/pytom_create_template.py

This file was deleted.

Loading