gitlike-commands 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gitlike-commands-0.2.1 → gitlike_commands-0.2.2}/PKG-INFO +6 -4
- {gitlike-commands-0.2.1 → gitlike_commands-0.2.2}/README.md +1 -1
- {gitlike-commands-0.2.1 → gitlike_commands-0.2.2}/gitlike_commands/__init__.py +5 -3
- {gitlike-commands-0.2.1 → gitlike_commands-0.2.2}/pyproject.toml +3 -3
- gitlike-commands-0.2.1/setup.py +0 -26
- {gitlike-commands-0.2.1 → gitlike_commands-0.2.2}/LICENSE +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gitlike-commands
|
|
3
|
-
Version: 0.2.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 0.2.2
|
|
4
|
+
Summary: Makes driver scripts that enable git-like commands so that foo bar will run foo-bar
|
|
5
5
|
Home-page: https://github.com/unixorn/gitlike-commands
|
|
6
6
|
License: Apache-2.0
|
|
7
7
|
Author: Joe Block
|
|
@@ -9,8 +9,10 @@ Author-email: jpb@unixorn.net
|
|
|
9
9
|
Requires-Python: >=3.9,<4.0
|
|
10
10
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
13
12
|
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
16
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
15
17
|
Classifier: Topic :: System :: System Shells
|
|
16
18
|
Project-URL: Bug Tracker, https://github.com/unixorn/gitlike-commands/issues
|
|
@@ -19,7 +21,7 @@ Description-Content-Type: text/markdown
|
|
|
19
21
|
|
|
20
22
|
# gitlike-commands
|
|
21
23
|
|
|
22
|
-
[](https://opensource.org/
|
|
24
|
+
[](https://opensource.org/license/apache-2-0/)
|
|
23
25
|
[](https://actions-badge.atrox.dev/unixorn/gitlike-commands/goto?ref=main)
|
|
24
26
|

|
|
25
27
|

|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# gitlike-commands
|
|
2
2
|
|
|
3
|
-
[](https://opensource.org/
|
|
3
|
+
[](https://opensource.org/license/apache-2-0/)
|
|
4
4
|
[](https://actions-badge.atrox.dev/unixorn/gitlike-commands/goto?ref=main)
|
|
5
5
|

|
|
6
6
|

|
|
@@ -14,12 +14,14 @@
|
|
|
14
14
|
# See the License for the specific language governing permissions and
|
|
15
15
|
# limitations under the License.
|
|
16
16
|
|
|
17
|
-
__version__ = "0.2.1"
|
|
18
17
|
|
|
19
|
-
import
|
|
18
|
+
from shutil import which
|
|
20
19
|
import os
|
|
21
20
|
import subprocess
|
|
22
21
|
import sys
|
|
22
|
+
from importlib import metadata
|
|
23
|
+
|
|
24
|
+
__version__ = metadata.version(__package__)
|
|
23
25
|
|
|
24
26
|
|
|
25
27
|
def is_program(name):
|
|
@@ -31,7 +33,7 @@ def is_program(name):
|
|
|
31
33
|
:returns: whether or not the program can be found in $PATH
|
|
32
34
|
:rtype: bool
|
|
33
35
|
"""
|
|
34
|
-
return
|
|
36
|
+
return which(name) is not None
|
|
35
37
|
|
|
36
38
|
|
|
37
39
|
def find_subcommand(args):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "gitlike-commands"
|
|
3
|
-
version = "0.2.
|
|
4
|
-
description = ""
|
|
3
|
+
version = "0.2.2"
|
|
4
|
+
description = "Makes driver scripts that enable git-like commands so that foo bar will run foo-bar"
|
|
5
5
|
authors = ["Joe Block <jpb@unixorn.net>"]
|
|
6
6
|
homepage = "https://github.com/unixorn/gitlike-commands"
|
|
7
7
|
repository = "https://github.com/unixorn/gitlike-commands"
|
|
@@ -17,7 +17,7 @@ classifiers = [
|
|
|
17
17
|
python = "^3.9"
|
|
18
18
|
|
|
19
19
|
[tool.poetry.dev-dependencies]
|
|
20
|
-
pytest = "^
|
|
20
|
+
pytest = "^7.4"
|
|
21
21
|
|
|
22
22
|
[tool.poetry.urls]
|
|
23
23
|
"Bug Tracker" = "https://github.com/unixorn/gitlike-commands/issues"
|
gitlike-commands-0.2.1/setup.py
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
from setuptools import setup
|
|
3
|
-
|
|
4
|
-
packages = \
|
|
5
|
-
['gitlike_commands']
|
|
6
|
-
|
|
7
|
-
package_data = \
|
|
8
|
-
{'': ['*']}
|
|
9
|
-
|
|
10
|
-
setup_kwargs = {
|
|
11
|
-
'name': 'gitlike-commands',
|
|
12
|
-
'version': '0.2.1',
|
|
13
|
-
'description': '',
|
|
14
|
-
'long_description': '# gitlike-commands\n\n[](https://opensource.org/licenses/Apache-2.0)\n[](https://actions-badge.atrox.dev/unixorn/gitlike-commands/goto?ref=main)\n\n\n[](https://codeclimate.com/github/unixorn/gitlike-commands)\n\n## Background\n\n`gitlike-commands` is a python module for easily creating `git`-style subcommand handling.\n\nRefactored out of [thelogrus](https://github.com/unixorn/thelogrus/) so you don\'t have to import any modules that aren\'t part of the Python standard library.\n\n## Usage\n\n`subcommand_driver` automatically figures out what name the script was called as, then looks for subcommands and runs them if found, passing in any command line options.\n\nSo if you have a `foo` script in your `$PATH` as shown below\n\n```python\n#!/usr/bin/env python3\nfrom gitlike_commands import subcommand_driver\n\nif __name__ == \'__main__\':\n subcommand_driver()\n```\n\nRunning `foo bar baz` will look for a `foo-bar-baz` script, and if present in your `$PATH`, run it. If there is no `foo-bar-baz`, it will look for `foo-bar`, and if it finds that, run `foo-bar baz`.\n\nIf you\'re using poetry in your python project, you can add a gitlike driver as a scripts entry:\n\n```toml\n[tool.poetry.scripts]\ngitalike-demo = "gitlike_commands:subcommand_driver"\n```\n\nThe subcommands can be written in any language, the only requirements are that they are marked executable and follow the `foo-something` naming convention.',
|
|
15
|
-
'author': 'Joe Block',
|
|
16
|
-
'author_email': 'jpb@unixorn.net',
|
|
17
|
-
'maintainer': None,
|
|
18
|
-
'maintainer_email': None,
|
|
19
|
-
'url': 'https://github.com/unixorn/gitlike-commands',
|
|
20
|
-
'packages': packages,
|
|
21
|
-
'package_data': package_data,
|
|
22
|
-
'python_requires': '>=3.9,<4.0',
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
setup(**setup_kwargs)
|
|
File without changes
|