skilleter-thingy 0.0.45__py3-none-any.whl → 0.0.46__py3-none-any.whl
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 skilleter-thingy might be problematic. Click here for more details.
- skilleter_thingy/venv_create.py +7 -16
- {skilleter_thingy-0.0.45.dist-info → skilleter_thingy-0.0.46.dist-info}/METADATA +1 -1
- {skilleter_thingy-0.0.45.dist-info → skilleter_thingy-0.0.46.dist-info}/RECORD +8 -9
- skilleter_thingy/thingy/fish_venv.py +0 -41
- /skilleter_thingy/thingy/{bash_venv.py → venv_template.py} +0 -0
- {skilleter_thingy-0.0.45.dist-info → skilleter_thingy-0.0.46.dist-info}/LICENSE +0 -0
- {skilleter_thingy-0.0.45.dist-info → skilleter_thingy-0.0.46.dist-info}/WHEEL +0 -0
- {skilleter_thingy-0.0.45.dist-info → skilleter_thingy-0.0.46.dist-info}/entry_points.txt +0 -0
- {skilleter_thingy-0.0.45.dist-info → skilleter_thingy-0.0.46.dist-info}/top_level.txt +0 -0
skilleter_thingy/venv_create.py
CHANGED
|
@@ -4,8 +4,7 @@ import os
|
|
|
4
4
|
import stat
|
|
5
5
|
import argparse
|
|
6
6
|
|
|
7
|
-
import thingy.
|
|
8
|
-
import thingy.fish_venv as fish_venv
|
|
7
|
+
import thingy.venv_template as venv_template
|
|
9
8
|
|
|
10
9
|
################################################################################
|
|
11
10
|
|
|
@@ -17,24 +16,16 @@ def main():
|
|
|
17
16
|
|
|
18
17
|
args = parser.parse_args()
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
script = args.name[0]
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
else:
|
|
25
|
-
if shell != 'bash':
|
|
26
|
-
print(f'Warning: Unknown shell: {shell} - using Bash template by default')
|
|
21
|
+
with open(script, 'wt') as scriptfile:
|
|
22
|
+
scriptfile.write(venv_template.TEMPLATE)
|
|
27
23
|
|
|
28
|
-
|
|
24
|
+
statinfo = os.stat(script)
|
|
29
25
|
|
|
30
|
-
|
|
31
|
-
scriptfile.write(template)
|
|
26
|
+
os.chmod(script, statinfo.st_mode|stat.S_IXUSR|stat.S_IXGRP|stat.S_IXOTH)
|
|
32
27
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
os.chmod(args.name[0], statinfo.st_mode|stat.S_IXUSR|stat.S_IXGRP|stat.S_IXOTH)
|
|
36
|
-
|
|
37
|
-
print(f'Created virtual environment: {args.name[0]}')
|
|
28
|
+
print(f'Created virtual environment: {script}')
|
|
38
29
|
|
|
39
30
|
################################################################################
|
|
40
31
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: skilleter_thingy
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.46
|
|
4
4
|
Summary: A collection of useful utilities, mainly aimed at making Git more friendly
|
|
5
5
|
Author-email: John Skilleter <john@skilleter.org.uk>
|
|
6
6
|
Project-URL: Home, https://skilleter.org.uk
|
|
@@ -37,12 +37,11 @@ skilleter_thingy/sysmon.py,sha256=XRZG6EVSzoVYan_N16qVB1l1RaU51uvLWlRA0CDjC54,11
|
|
|
37
37
|
skilleter_thingy/tfm.py,sha256=3ejKNI2P65lGz-50mxRMxW_o5NmoeMDcmhji_0uALhI,33703
|
|
38
38
|
skilleter_thingy/tfparse.py,sha256=u1IZH2J_WH1aORyMozKSI2JKok7_S1MMJhiobzmhlUI,2988
|
|
39
39
|
skilleter_thingy/trimpath.py,sha256=IJU3zl4Hg08g0eU24LZyDlGfNa-5k-TZM5s9zR4OIdA,2385
|
|
40
|
-
skilleter_thingy/venv_create.py,sha256=
|
|
40
|
+
skilleter_thingy/venv_create.py,sha256=tE4Pgubyt7gZs2cb6d_Fds5Df-oUWJswzSSGdSuzbGA,1142
|
|
41
41
|
skilleter_thingy/window_rename.py,sha256=dCBgZqih_3YKHt35hsOAhARFp3QxOi8w8huC63sqJK8,3128
|
|
42
42
|
skilleter_thingy/xchmod.py,sha256=F9_lxKuLqVlHHr3oBI3dkMoFOuwRzYDlpQMTmDcjpBI,4590
|
|
43
43
|
skilleter_thingy/yamlcheck.py,sha256=FXylZ5NtHirDlPVhVEUZUZkTugVR-g51BbjaN06akAc,2868
|
|
44
44
|
skilleter_thingy/thingy/__init__.py,sha256=rVPTxm8L5w52U0YdTd7r_D44SBP7pS3JCJtsf0iIsow,110
|
|
45
|
-
skilleter_thingy/thingy/bash_venv.py,sha256=SsVNvSwojd8NnFeQaZPCRQYTNdwJRplpZpygbUEXRnY,1015
|
|
46
45
|
skilleter_thingy/thingy/colour.py,sha256=D-RTYsND6Xm6m3xl0mOe9QSrTNYsyY0K_a8x3id2gvg,7031
|
|
47
46
|
skilleter_thingy/thingy/dc_curses.py,sha256=fuuQPR11zV_akAhygL_cAhVLC5YAgKgowzlITVbETE8,8539
|
|
48
47
|
skilleter_thingy/thingy/dc_defaults.py,sha256=ahcteQvoWZrO5iTU68zkIY1Zex6iX5uR5ubwI4CCYBk,6170
|
|
@@ -50,7 +49,6 @@ skilleter_thingy/thingy/dc_util.py,sha256=Df73imXhHx3HzcPHiRcHAoea0e3HURdLcrolUs
|
|
|
50
49
|
skilleter_thingy/thingy/dircolors.py,sha256=5NbXMsGWdABLvvZfB70VPmN6N5HyyihfpgoQq1NRJbg,12264
|
|
51
50
|
skilleter_thingy/thingy/docker.py,sha256=9EFatudoVPfB1UbDEtzdJDB3o6ToHiNHv8-oLsUeqiQ,2449
|
|
52
51
|
skilleter_thingy/thingy/files.py,sha256=8wXUHEGALhHvYtJewjSNwHFw-hGHFYbWH9_40lJj5ZY,4257
|
|
53
|
-
skilleter_thingy/thingy/fish_venv.py,sha256=NKL9I5DKNyT7R6UpKRIiYmxg4kxzmywuuYO07uCBCrQ,1004
|
|
54
52
|
skilleter_thingy/thingy/git.py,sha256=9y58KhFx6t9nNyqMbixM5cl8LBcD2sdCh9UgyVPv4bo,38043
|
|
55
53
|
skilleter_thingy/thingy/git2.py,sha256=xfQrOpOk4SLdE6T-pr0FTuYGn0gSY92VMDpmqvX3gDM,35751
|
|
56
54
|
skilleter_thingy/thingy/gitlab.py,sha256=uXAF918xnPk6qQyiwPQDbMZfqtJzhiRqDS7yEtJEIAg,6079
|
|
@@ -61,9 +59,10 @@ skilleter_thingy/thingy/process.py,sha256=88pKHQZXBP1m3Ja7t3DtKJ4Njn7HS2OtcI0Z0i
|
|
|
61
59
|
skilleter_thingy/thingy/run.py,sha256=051lGahG4liYLckQFpmSaGuE9Chd-lFdmJO85LdmeXE,12607
|
|
62
60
|
skilleter_thingy/thingy/tfm_pane.py,sha256=40DmQeLMEUPiKKIJkgN1MEpIen00V70I1HB7Q6git44,19814
|
|
63
61
|
skilleter_thingy/thingy/tidy.py,sha256=wzkyxzCsHXyY46G3Rjqu4ZrqiL8QMbRXyJEeYOmpy-o,5402
|
|
64
|
-
skilleter_thingy
|
|
65
|
-
skilleter_thingy-0.0.
|
|
66
|
-
skilleter_thingy-0.0.
|
|
67
|
-
skilleter_thingy-0.0.
|
|
68
|
-
skilleter_thingy-0.0.
|
|
69
|
-
skilleter_thingy-0.0.
|
|
62
|
+
skilleter_thingy/thingy/venv_template.py,sha256=SsVNvSwojd8NnFeQaZPCRQYTNdwJRplpZpygbUEXRnY,1015
|
|
63
|
+
skilleter_thingy-0.0.46.dist-info/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
|
|
64
|
+
skilleter_thingy-0.0.46.dist-info/METADATA,sha256=RtT0thW60tu7gdRnk7xyNn6NlyblaIZbpF7D55atgDY,5313
|
|
65
|
+
skilleter_thingy-0.0.46.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
66
|
+
skilleter_thingy-0.0.46.dist-info/entry_points.txt,sha256=IT6cZSbGHrd2UzIQbiMRotKiTJnYJBkESC4fAe8gjsE,2026
|
|
67
|
+
skilleter_thingy-0.0.46.dist-info/top_level.txt,sha256=8-JhgToBBiWURunmvfpSxEvNkDHQQ7r25-aBXtZv61g,17
|
|
68
|
+
skilleter_thingy-0.0.46.dist-info/RECORD,,
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
TEMPLATE = \
|
|
2
|
-
"""#!/usr/bin/env fish
|
|
3
|
-
|
|
4
|
-
################################################################################
|
|
5
|
-
|
|
6
|
-
set VENV_NAME $(basename "$0")
|
|
7
|
-
set VENV_DIR __venv__
|
|
8
|
-
|
|
9
|
-
set GREEN "\e[42m"
|
|
10
|
-
set NORMAL "\e[0m"
|
|
11
|
-
|
|
12
|
-
################################################################################
|
|
13
|
-
|
|
14
|
-
function box
|
|
15
|
-
echo -e "$GREEN################################################################################$NORMAL"
|
|
16
|
-
echo -e "$GREEN# $argv$NORMAL"
|
|
17
|
-
echo -e "$GREEN################################################################################$NORMAL"
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
################################################################################
|
|
21
|
-
|
|
22
|
-
box "Creating & activating $VENV_NAME virtual environment"
|
|
23
|
-
|
|
24
|
-
python3 -m venv $VENV_DIR
|
|
25
|
-
|
|
26
|
-
source $VENV_DIR/bin/activate.fish
|
|
27
|
-
|
|
28
|
-
if test -f requirements.txt
|
|
29
|
-
box "Installing/Upgrading packages"
|
|
30
|
-
|
|
31
|
-
python3 -m pip install -r requirements.txt
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
if test -f $VENV_NAME.py
|
|
35
|
-
box "Running $VENV_NAME script"
|
|
36
|
-
|
|
37
|
-
python3 ./$VENV_NAME.py $argv
|
|
38
|
-
|
|
39
|
-
deactivate
|
|
40
|
-
end
|
|
41
|
-
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|