repcmd 0.1.0__tar.gz → 1.1.0__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.
Potentially problematic release.
This version of repcmd might be problematic. Click here for more details.
- {repcmd-0.1.0 → repcmd-1.1.0}/PKG-INFO +2 -2
- {repcmd-0.1.0 → repcmd-1.1.0}/pyproject.toml +3 -4
- repcmd-1.1.0/repcmd/__init__.py +15 -0
- repcmd-1.1.0/repcmd/setup.py +15 -0
- repcmd-0.1.0/repcmd/__init__.py +0 -5
- {repcmd-0.1.0 → repcmd-1.1.0}/LICENSE-MIT.txt +0 -0
- {repcmd-0.1.0 → repcmd-1.1.0}/README.md +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: repcmd
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary:
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: tamuto
|
|
7
|
-
Author-email:
|
|
7
|
+
Author-email: tamuto@infodb.jp
|
|
8
8
|
Requires-Python: >=3.9,<4.0
|
|
9
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "repcmd"
|
|
3
|
-
version = "
|
|
3
|
+
version = "1.1.0"
|
|
4
4
|
description = ""
|
|
5
|
-
authors = ["tamuto <
|
|
5
|
+
authors = ["tamuto <tamuto@infodb.jp>"]
|
|
6
6
|
license = "MIT"
|
|
7
7
|
readme = "README.md"
|
|
8
|
-
|
|
9
8
|
packages = [
|
|
10
9
|
{ include="repcmd", from="." }
|
|
11
10
|
]
|
|
@@ -14,5 +13,5 @@ packages = [
|
|
|
14
13
|
python = "^3.9"
|
|
15
14
|
|
|
16
15
|
[build-system]
|
|
17
|
-
requires = ["poetry-core"]
|
|
16
|
+
requires = ["poetry-core", "setuptools"]
|
|
18
17
|
build-backend = "poetry.core.masonry.api"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import subprocess
|
|
2
|
+
import json
|
|
3
|
+
import os
|
|
4
|
+
|
|
5
|
+
__version__ = '1.0.1'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def execute(data):
|
|
9
|
+
inp = json.dumps(data, ensure_ascii=False)
|
|
10
|
+
cmd = f'{os.path.dirname(__file__)}/repcmd.sh'
|
|
11
|
+
result = subprocess.run(
|
|
12
|
+
[cmd],
|
|
13
|
+
input=inp.encode(),
|
|
14
|
+
stdout=subprocess.PIPE)
|
|
15
|
+
return result.stdout
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import urllib.request
|
|
2
|
+
import tarfile
|
|
3
|
+
import io
|
|
4
|
+
import os
|
|
5
|
+
|
|
6
|
+
release_tag = 'v1.1.0'
|
|
7
|
+
|
|
8
|
+
if __name__ == '__main__':
|
|
9
|
+
url = f'https://github.com/tamuto/repcmd/releases/download/{release_tag}/repcmd.tar.gz'
|
|
10
|
+
|
|
11
|
+
response = urllib.request.urlopen(url)
|
|
12
|
+
|
|
13
|
+
with tarfile.open(fileobj=io.BytesIO(response.read()), mode='r:gz') as tar:
|
|
14
|
+
extract_dir = os.path.dirname(__file__)
|
|
15
|
+
tar.extractall(path=extract_dir)
|
repcmd-0.1.0/repcmd/__init__.py
DELETED
|
File without changes
|
|
File without changes
|