python-dotenvx 0.2.5__tar.gz → 0.3.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.
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/CHANGELOG.md +13 -1
- {python_dotenvx-0.2.5/src/python_dotenvx.egg-info → python_dotenvx-0.3.0}/PKG-INFO +14 -2
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/src/dotenvx/__version__.py +1 -1
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/src/dotenvx/main.py +21 -5
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0/src/python_dotenvx.egg-info}/PKG-INFO +14 -2
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/LICENSE +0 -0
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/MANIFEST.in +0 -0
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/README.md +0 -0
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/pyproject.toml +0 -0
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/setup.cfg +0 -0
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/setup.py +0 -0
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/src/dotenvx/__init__.py +0 -0
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/src/dotenvx/bin/dotenvx +0 -0
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/src/python_dotenvx.egg-info/SOURCES.txt +0 -0
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/src/python_dotenvx.egg-info/dependency_links.txt +0 -0
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/src/python_dotenvx.egg-info/entry_points.txt +0 -0
- {python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/src/python_dotenvx.egg-info/top_level.txt +0 -0
|
@@ -2,7 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.
|
|
5
|
+
## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.3.0...main)
|
|
6
|
+
|
|
7
|
+
## [0.3.0](https://github.com/dotenvx/dotenvx/compare/v0.2.6...v0.3.0)
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
* Add `dotenv_path` and `override` arguments ([#4](https://github.com/dotenvx/python-dotenvx/pull/4))
|
|
12
|
+
|
|
13
|
+
## [0.2.6](https://github.com/dotenvx/dotenvx/compare/v0.2.5...v0.2.6)
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
* Add force to the binary install
|
|
6
18
|
|
|
7
19
|
## [0.2.5](https://github.com/dotenvx/dotenvx/compare/v0.2.4...v0.2.5)
|
|
8
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-dotenvx
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: [dotenvx.com] a better dotenv–from the creator of `dotenv`
|
|
5
5
|
Home-page: https://github.com/dotenvx/python-dotenvx
|
|
6
6
|
Author: dotenv
|
|
@@ -76,7 +76,19 @@ print(os.getenv("S3_BUCKET"))
|
|
|
76
76
|
|
|
77
77
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
78
78
|
|
|
79
|
-
## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.
|
|
79
|
+
## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.3.0...main)
|
|
80
|
+
|
|
81
|
+
## [0.3.0](https://github.com/dotenvx/dotenvx/compare/v0.2.6...v0.3.0)
|
|
82
|
+
|
|
83
|
+
### Added
|
|
84
|
+
|
|
85
|
+
* Add `dotenv_path` and `override` arguments ([#4](https://github.com/dotenvx/python-dotenvx/pull/4))
|
|
86
|
+
|
|
87
|
+
## [0.2.6](https://github.com/dotenvx/dotenvx/compare/v0.2.5...v0.2.6)
|
|
88
|
+
|
|
89
|
+
### Changed
|
|
90
|
+
|
|
91
|
+
* Add force to the binary install
|
|
80
92
|
|
|
81
93
|
## [0.2.5](https://github.com/dotenvx/dotenvx/compare/v0.2.4...v0.2.5)
|
|
82
94
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
__title__ = "python-dotenvx"
|
|
2
2
|
__description__ = "[dotenvx.com] a better dotenv–from the creator of `dotenv`"
|
|
3
3
|
__url__ = "https://github.com/dotenvx/python-dotenvx"
|
|
4
|
-
__version__ = "0.
|
|
4
|
+
__version__ = "0.3.0"
|
|
5
5
|
__author__ = "dotenv"
|
|
6
6
|
__author_email__ = "mot@dotenvx.com"
|
|
7
7
|
__license__ = "BSD-3-Clause"
|
|
@@ -8,8 +8,14 @@ from dotenvx import __file__ as package_path
|
|
|
8
8
|
|
|
9
9
|
ERROR_MISSING_BINARY = "[MISSING_BINARY] missing dotenvx binary\n[MISSING_BINARY] https://github.com/dotenvx/dotenvx/issues/576"
|
|
10
10
|
|
|
11
|
-
def load_dotenvx(
|
|
12
|
-
|
|
11
|
+
def load_dotenvx(
|
|
12
|
+
dotenv_path=None,
|
|
13
|
+
override=False
|
|
14
|
+
):
|
|
15
|
+
output = dotenvx_get(
|
|
16
|
+
dotenv_path=dotenv_path,
|
|
17
|
+
override=override
|
|
18
|
+
)
|
|
13
19
|
|
|
14
20
|
try:
|
|
15
21
|
parsed = json.loads(output)
|
|
@@ -19,10 +25,20 @@ def load_dotenvx():
|
|
|
19
25
|
except Exception as e:
|
|
20
26
|
raise RuntimeError(f"Failed to parse dotenvx output: {e}")
|
|
21
27
|
|
|
22
|
-
def
|
|
28
|
+
def dotenvx_get(
|
|
29
|
+
dotenv_path=None,
|
|
30
|
+
override=False
|
|
31
|
+
):
|
|
23
32
|
binpath = binary()
|
|
33
|
+
cmd = [binpath, "get", "-pp"]
|
|
34
|
+
|
|
35
|
+
if dotenv_path:
|
|
36
|
+
cmd += ["-f", dotenv_path]
|
|
37
|
+
if override:
|
|
38
|
+
cmd.append("--overload")
|
|
39
|
+
|
|
24
40
|
output = subprocess.run(
|
|
25
|
-
|
|
41
|
+
cmd,
|
|
26
42
|
capture_output=True,
|
|
27
43
|
text=True,
|
|
28
44
|
check=True
|
|
@@ -61,7 +77,7 @@ def postinstall():
|
|
|
61
77
|
bin_dir = os.path.join(os.path.dirname(__file__), "bin")
|
|
62
78
|
os.makedirs(bin_dir, exist_ok=True)
|
|
63
79
|
|
|
64
|
-
url = f"https://dotenvx.sh?directory={bin_dir}"
|
|
80
|
+
url = f"https://dotenvx.sh?directory={bin_dir}&force=true"
|
|
65
81
|
if args.os:
|
|
66
82
|
url += f"&os={args.os}"
|
|
67
83
|
if args.arch:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-dotenvx
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: [dotenvx.com] a better dotenv–from the creator of `dotenv`
|
|
5
5
|
Home-page: https://github.com/dotenvx/python-dotenvx
|
|
6
6
|
Author: dotenv
|
|
@@ -76,7 +76,19 @@ print(os.getenv("S3_BUCKET"))
|
|
|
76
76
|
|
|
77
77
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
78
78
|
|
|
79
|
-
## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.
|
|
79
|
+
## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.3.0...main)
|
|
80
|
+
|
|
81
|
+
## [0.3.0](https://github.com/dotenvx/dotenvx/compare/v0.2.6...v0.3.0)
|
|
82
|
+
|
|
83
|
+
### Added
|
|
84
|
+
|
|
85
|
+
* Add `dotenv_path` and `override` arguments ([#4](https://github.com/dotenvx/python-dotenvx/pull/4))
|
|
86
|
+
|
|
87
|
+
## [0.2.6](https://github.com/dotenvx/dotenvx/compare/v0.2.5...v0.2.6)
|
|
88
|
+
|
|
89
|
+
### Changed
|
|
90
|
+
|
|
91
|
+
* Add force to the binary install
|
|
80
92
|
|
|
81
93
|
## [0.2.5](https://github.com/dotenvx/dotenvx/compare/v0.2.4...v0.2.5)
|
|
82
94
|
|
|
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
|
{python_dotenvx-0.2.5 → python_dotenvx-0.3.0}/src/python_dotenvx.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|