-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
87 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# reference | ||
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html | ||
# PEP621 | ||
# https://peps.python.org/pep-0621/ | ||
# | ||
# Python Packages | ||
# https://py-pkgs.org/welcome | ||
|
||
|
||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "ptg" | ||
version = "0.0.11" | ||
authors = [ | ||
{ name="Chad Hovey", email="[email protected]" }, | ||
] | ||
description = "SNL SIBL Geometry Engine" | ||
readme = "README.md" | ||
license = { file="LICENSE" } | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
] | ||
dependencies = [ | ||
"copyright @ git+https://github.com/sandialabs/copyright", | ||
"ipykernel", | ||
"matplotlib", | ||
"mypy", | ||
"notebook", | ||
"pybind11", | ||
"pygments", | ||
"pytz", | ||
"pyyaml", | ||
"seaborn", | ||
"scikit-image", | ||
"scipy", | ||
] | ||
|
||
# Optional dependencies video | ||
# https://www.youtube.com/watch?v=yJyo-K7wW2g | ||
|
||
[project.optional-dependencies] | ||
dev = ["black==22.3.0", "flake8", "pytest", "pytest-cov"] | ||
|
||
# Entry Points | ||
# https://setuptools.pypa.io/en/latest/userguide/entry_point.html | ||
[project.scripts] | ||
cli-hello="ptg.command_line:say_hello" | ||
version="ptg.command_line:version" | ||
pydual="ptg.main:main" | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/sandialabs/sibl" | ||
"Bug Tracker" = "https://github.com/sandialabs/sibl/issues" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from ptg import command_line as cl | ||
|
||
|
||
def test_say_hello(): | ||
known = "hello world!" | ||
found = cl.say_hello() | ||
assert known == found | ||
|
||
|
||
def test_version(): | ||
known = "0.0.11" | ||
found = cl.version() | ||
assert known == found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters