generated from NASA-AMMOS/slim-starterkit
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ready this for publication to the Python Package Index
- Makes a new console script available: `slim` - Removes `requirements.txt` and replaces it with `pyproject.toml` which has both the dependencies and the package metadata - Updates the instructions to demonstration installation from PyPI as well as how to continue local development - Adds support for `--version` and version tracking - Adds a `.gitignore` - Removes potential [Dependency Confusion Vulnerabilities](https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610) - Comments-out `tabulate` dependency; it doesn't appear to be used - Removes `argparse` dependency; it's part of the standard library
- Loading branch information
1 parent
4a314ca
commit ff551ec
Showing
7 changed files
with
144 additions
and
37 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,15 @@ | ||
.DS_Store | ||
._* | ||
*.py[co] | ||
.*.cfg | ||
*.egg-info | ||
dist | ||
build | ||
eggs | ||
downloads | ||
*.log | ||
*~ | ||
*.sublime-workspace | ||
.venv | ||
venv | ||
__pycache__ |
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,64 @@ | ||
[project] | ||
name = 'slim-cli' | ||
dynamic = ['version'] | ||
requires-python = '>=3.7' | ||
dependencies = [ | ||
# Note: these dependencies were taking from original `requirements.txt` | ||
# file (now retired in favor of this file, `pyproject.toml`). However, | ||
# pessimistic version constraints were added in order to avoid the | ||
# Dependency Confusion Vulnerability. | ||
|
||
'azure-identity ~= 1.17.1', | ||
'gitpython ~= 3.1.43', | ||
'ollama ~= 0.3.1', | ||
'openai ~= 1.42.0', | ||
'python-dotenv ~= 1.0.1', | ||
'requests ~= 2.32.3', | ||
'rich ~= 13.7.1', | ||
|
||
# Commenting-out tabulate since it's not used in the code currenty: | ||
# 'tabulate ~= 0.9.0', | ||
] | ||
authors = [ | ||
{name = 'James Ray', email='[email protected]'}, | ||
{name = 'Kyongsik Yun', email='[email protected]'}, | ||
{name = 'Rishi Verma', email='[email protected]'}, | ||
{name = 'Sean Kelly', email='[email protected]'} | ||
] | ||
description = 'Automation of the application of software lifecycle best practices to your GitHub repositories' | ||
readme = 'README.md' | ||
keywords = ['software', 'development', 'automation', 'practice', 'slim', 'nasa', 'ammos'] | ||
classifiers = [ | ||
'Development Status :: 2 - Pre-Alpha', | ||
'Environment :: Console', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Natural Language :: English', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 3', | ||
] | ||
license = {file = 'LICENSE'} | ||
|
||
|
||
[project.urls] | ||
Homepage = 'https://github.com/SLIM/slim-cli' | ||
Issues = 'https://github.com/SLIM/slim-cli/issues' | ||
|
||
|
||
[project.scripts] | ||
slim = 'jpl.slim.cli:main' | ||
|
||
|
||
[tool.hatch.version] | ||
path = 'src/jpl/slim/VERSION.txt' | ||
pattern = '(?P<version>.+)' | ||
|
||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ['src/jpl'] | ||
|
||
|
||
[build-system] | ||
requires = ['hatchling'] | ||
build-backend = 'hatchling.build' |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
0.0.0 |
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,9 @@ | ||
# encoding: utf-8 | ||
|
||
'''🛠️ SLIM command-line tools.''' | ||
|
||
import importlib.resources | ||
|
||
|
||
PACKAGE_NAME = __name__ | ||
__version__ = VERSION = importlib.resources.files(__name__).joinpath('VERSION.txt').read_text().strip() |
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