envstack 0.2.2__tar.gz → 0.2.4__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.
- {envstack-0.2.2 → envstack-0.2.4}/PKG-INFO +1 -1
- {envstack-0.2.2 → envstack-0.2.4}/lib/envstack/__init__.py +1 -1
- {envstack-0.2.2 → envstack-0.2.4}/lib/envstack/cli.py +3 -4
- {envstack-0.2.2 → envstack-0.2.4}/lib/envstack/env.py +1 -3
- {envstack-0.2.2 → envstack-0.2.4}/lib/envstack/path.py +1 -2
- {envstack-0.2.2 → envstack-0.2.4}/lib/envstack/wrapper.py +1 -1
- {envstack-0.2.2 → envstack-0.2.4}/lib/envstack.egg-info/PKG-INFO +1 -1
- {envstack-0.2.2 → envstack-0.2.4}/setup.py +24 -10
- {envstack-0.2.2 → envstack-0.2.4}/README.md +0 -0
- {envstack-0.2.2 → envstack-0.2.4}/lib/envstack/config.py +1 -1
- {envstack-0.2.2 → envstack-0.2.4}/lib/envstack/exceptions.py +0 -0
- {envstack-0.2.2 → envstack-0.2.4}/lib/envstack/logger.py +0 -0
- {envstack-0.2.2 → envstack-0.2.4}/lib/envstack.egg-info/SOURCES.txt +0 -0
- {envstack-0.2.2 → envstack-0.2.4}/lib/envstack.egg-info/dependency_links.txt +0 -0
- {envstack-0.2.2 → envstack-0.2.4}/lib/envstack.egg-info/entry_points.txt +0 -0
- {envstack-0.2.2 → envstack-0.2.4}/lib/envstack.egg-info/not-zip-safe +0 -0
- {envstack-0.2.2 → envstack-0.2.4}/lib/envstack.egg-info/requires.txt +0 -0
- {envstack-0.2.2 → envstack-0.2.4}/lib/envstack.egg-info/top_level.txt +0 -0
- {envstack-0.2.2 → envstack-0.2.4}/setup.cfg +0 -0
- {envstack-0.2.2 → envstack-0.2.4}/stack.env +0 -0
|
@@ -35,13 +35,12 @@ Contains command line interface for envstack.
|
|
|
35
35
|
|
|
36
36
|
import argparse
|
|
37
37
|
import os
|
|
38
|
-
import sys
|
|
39
38
|
import pprint
|
|
39
|
+
import sys
|
|
40
40
|
import traceback
|
|
41
41
|
|
|
42
|
-
from envstack import __version__
|
|
43
|
-
from envstack import
|
|
44
|
-
from envstack.env import expandvars, load_environ, trace_var, build_sources
|
|
42
|
+
from envstack import __version__, config
|
|
43
|
+
from envstack.env import build_sources, expandvars, load_environ, trace_var
|
|
45
44
|
from envstack.wrapper import run_command
|
|
46
45
|
|
|
47
46
|
|
|
@@ -37,9 +37,7 @@ import os
|
|
|
37
37
|
import re
|
|
38
38
|
import string
|
|
39
39
|
|
|
40
|
-
from envstack import config
|
|
41
|
-
from envstack import path
|
|
42
|
-
from envstack import logger
|
|
40
|
+
from envstack import config, logger, path
|
|
43
41
|
from envstack.exceptions import *
|
|
44
42
|
|
|
45
43
|
# named variable delimiter pattern
|
|
@@ -36,8 +36,7 @@ Contains pathing classes and functions.
|
|
|
36
36
|
import os
|
|
37
37
|
import re
|
|
38
38
|
|
|
39
|
-
from envstack import logger
|
|
40
|
-
from envstack import config
|
|
39
|
+
from envstack import config, logger
|
|
41
40
|
from envstack.exceptions import *
|
|
42
41
|
|
|
43
42
|
# template path field regex: extracts bracketed {keys}
|
|
@@ -30,25 +30,38 @@
|
|
|
30
30
|
#
|
|
31
31
|
|
|
32
32
|
import os
|
|
33
|
-
from setuptools import setup, find_packages
|
|
34
33
|
import shutil
|
|
35
34
|
|
|
35
|
+
from setuptools import find_packages, setup
|
|
36
|
+
from setuptools.command.install import install
|
|
37
|
+
|
|
36
38
|
here = os.path.abspath(os.path.dirname(__file__))
|
|
37
39
|
with open(os.path.join(here, "README.md")) as f:
|
|
38
40
|
long_description = f.read()
|
|
39
41
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
|
|
43
|
+
class PostInstallCommand(install):
|
|
44
|
+
"""Custom post-installation for copying stack.env."""
|
|
45
|
+
|
|
46
|
+
def initialize_options(self):
|
|
47
|
+
install.initialize_options(self)
|
|
48
|
+
self.original_cwd = os.getcwd()
|
|
49
|
+
|
|
50
|
+
def run(self):
|
|
51
|
+
install.run(self)
|
|
52
|
+
print("Installing stack.env file to %s" % os.getcwd())
|
|
53
|
+
source = os.path.join(os.path.dirname(__file__), "stack.env")
|
|
54
|
+
destination = os.path.join(self.original_cwd, "stack.env")
|
|
55
|
+
if os.path.exists(source):
|
|
56
|
+
shutil.copy(source, destination)
|
|
57
|
+
print(f"Copied {source} to {destination}")
|
|
58
|
+
else:
|
|
59
|
+
print(f"{source} not found")
|
|
60
|
+
|
|
48
61
|
|
|
49
62
|
setup(
|
|
50
63
|
name="envstack",
|
|
51
|
-
version="0.2.
|
|
64
|
+
version="0.2.4",
|
|
52
65
|
description="Stacked environment variable management system.",
|
|
53
66
|
long_description=long_description,
|
|
54
67
|
long_description_content_type="text/markdown",
|
|
@@ -67,5 +80,6 @@ setup(
|
|
|
67
80
|
"siteconf>=0.1.5",
|
|
68
81
|
],
|
|
69
82
|
data_files=[(".", ["stack.env"])],
|
|
83
|
+
cmdclass={"install": PostInstallCommand},
|
|
70
84
|
zip_safe=False,
|
|
71
85
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|