-
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.
refactor: Convert command-line interface to click instead of argparse (…
…#54) * refactor: convert to click from argparse * test: correct the tests so that results are returned * refactor: put back version and copyright cli options and test them * test: change path to join abspath
- Loading branch information
Showing
9 changed files
with
346 additions
and
387 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Standalone Executable | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build executable 📦 for windows | ||
runs-on: windows-latest | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | ||
with: | ||
egress-policy: audit | ||
|
||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install development dependencies | ||
run: | | ||
python3 -m pip install -r requirements-exe.txt | ||
python3 setup.py build_ext -i | ||
python3 setup.py py2exe >> $GITHUB_STEP_SUMMARY | ||
- uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1 | ||
with: | ||
name: standalone | ||
path: dist/*.exe |
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
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
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ authors = [ | |
{ name = "SANSMIC Authors (see AUTHORS.md)" }, | ||
] | ||
maintainers = [{ name = "David Hart", email = "[email protected]" }] | ||
dependencies = ["numpy", "pandas", 'tomli; python_version < "3.11"'] | ||
dependencies = ["numpy", "pandas", 'tomli; python_version < "3.11"', "click"] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: BSD License", | ||
|
@@ -47,7 +47,7 @@ docs = [ | |
'sphinxcontrib-bibtex', | ||
'breathe', | ||
'exhale', | ||
'sphinx-argparse', | ||
'sphinx-click', | ||
] | ||
|
||
[project.urls] | ||
|
@@ -56,7 +56,7 @@ Issues = "https://github.com/sandialabs/sansmic/issues" | |
Repository = "https://github.com/sandialabs/sansmic.git" | ||
|
||
[project.scripts] | ||
sansmic = "sansmic.app:main" | ||
sansmic = "sansmic.app:run" | ||
sansmic-convert = "sansmic.app:convert" | ||
|
||
[build-system] | ||
|
@@ -124,11 +124,11 @@ default = "semantic-release <semantic-release>" | |
[tool.semantic_release.commit_parser_options] | ||
allowed_tags = [ | ||
# Non-source code changes (no change to version; omit from CHANGELOG by default) | ||
"build", # Changes to build system or external dependencies (omit from CHANGELOG - manually add if needed) | ||
"ci", # Changes to CI configuration files and scripts (omit from CHANGELOG - manually add if needed) | ||
"chore", # Other changes that don't touch the source code (omit from CHANGELOG - manually add if needed) | ||
"build", # Changes to build system or external dependencies (omit from CHANGELOG - manually add if needed) | ||
"ci", # Changes to CI configuration files and scripts (omit from CHANGELOG - manually add if needed) | ||
"chore", # Other changes that don't touch the source code (omit from CHANGELOG - manually add if needed) | ||
# Changes to test suites (no change to version; include in CHANGELOG by default) | ||
"test", # Adding missing tests or correcting existing tests (does not change package code) | ||
"test", # Adding missing tests or correcting existing tests (does not change package code) | ||
# Changes to source code (possible change to version; include in CHANGELOG by default) | ||
"fix", # A bug fix (a patch-level version change) | ||
"perf", # A code change that improves performance (at-least patch-level, possibly minor version change) | ||
|
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ numpy==2.1.2 | |
pandas==2.2.3 | ||
pybind11==2.13.6 | ||
setuptools==75.1.0 | ||
click==8.1.7 |
Oops, something went wrong.