python-dotenvx 0.2.3__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.
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/CHANGELOG.md +7 -1
- {python_dotenvx-0.2.3/src/python_dotenvx.egg-info → python_dotenvx-0.2.4}/PKG-INFO +11 -2
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/README.md +3 -0
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/src/dotenvx/__version__.py +1 -1
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/src/dotenvx/main.py +14 -2
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4/src/python_dotenvx.egg-info}/PKG-INFO +11 -2
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/LICENSE +0 -0
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/MANIFEST.in +0 -0
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/pyproject.toml +0 -0
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/setup.cfg +0 -0
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/setup.py +0 -0
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/src/dotenvx/__init__.py +0 -0
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/src/dotenvx/bin/dotenvx +0 -0
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/src/python_dotenvx.egg-info/SOURCES.txt +0 -0
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/src/python_dotenvx.egg-info/dependency_links.txt +0 -0
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/src/python_dotenvx.egg-info/entry_points.txt +0 -0
- {python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/src/python_dotenvx.egg-info/top_level.txt +0 -0
|
@@ -2,7 +2,13 @@
|
|
|
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.2.
|
|
5
|
+
## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.2.4...main)
|
|
6
|
+
|
|
7
|
+
## [0.2.4](https://github.com/dotenvx/dotenvx/compare/v0.2.3...v0.2.4)
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
* Add the ability to specify the `os` and `arch` on `dotenvx-postinstall`
|
|
6
12
|
|
|
7
13
|
## [0.2.3](https://github.com/dotenvx/dotenvx/compare/v0.2.2...v0.2.3)
|
|
8
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-dotenvx
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
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
|
|
@@ -51,6 +51,9 @@ Then run `dotenvx-postinstall` to install the `dotenvx` binary (python-dotenvx i
|
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
53
|
dotenvx-postinstall
|
|
54
|
+
|
|
55
|
+
# or to specify the os-arch – useful for building binaries to a specific target such as linux-x86_64 on aws lambda
|
|
56
|
+
dotenvx-postinstall --os linux --arch x86_64
|
|
54
57
|
```
|
|
55
58
|
|
|
56
59
|
Then use it in code.
|
|
@@ -70,7 +73,13 @@ print(os.getenv("S3_BUCKET"))
|
|
|
70
73
|
|
|
71
74
|
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.
|
|
72
75
|
|
|
73
|
-
## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.2.
|
|
76
|
+
## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.2.4...main)
|
|
77
|
+
|
|
78
|
+
## [0.2.4](https://github.com/dotenvx/dotenvx/compare/v0.2.3...v0.2.4)
|
|
79
|
+
|
|
80
|
+
### Added
|
|
81
|
+
|
|
82
|
+
* Add the ability to specify the `os` and `arch` on `dotenvx-postinstall`
|
|
74
83
|
|
|
75
84
|
## [0.2.3](https://github.com/dotenvx/dotenvx/compare/v0.2.2...v0.2.3)
|
|
76
85
|
|
|
@@ -30,6 +30,9 @@ Then run `dotenvx-postinstall` to install the `dotenvx` binary (python-dotenvx i
|
|
|
30
30
|
|
|
31
31
|
```sh
|
|
32
32
|
dotenvx-postinstall
|
|
33
|
+
|
|
34
|
+
# or to specify the os-arch – useful for building binaries to a specific target such as linux-x86_64 on aws lambda
|
|
35
|
+
dotenvx-postinstall --os linux --arch x86_64
|
|
33
36
|
```
|
|
34
37
|
|
|
35
38
|
Then use it in code.
|
|
@@ -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.2.
|
|
4
|
+
__version__ = "0.2.4"
|
|
5
5
|
__author__ = "dotenv"
|
|
6
6
|
__author_email__ = "mot@dotenvx.com"
|
|
7
7
|
__license__ = "BSD-3-Clause"
|
|
@@ -2,6 +2,7 @@ import os
|
|
|
2
2
|
import json
|
|
3
3
|
import shutil
|
|
4
4
|
import subprocess
|
|
5
|
+
import argparse
|
|
5
6
|
|
|
6
7
|
from dotenvx import __file__ as package_path
|
|
7
8
|
|
|
@@ -49,12 +50,23 @@ def is_stub_file(path, max_stub_size=1024):
|
|
|
49
50
|
return False
|
|
50
51
|
|
|
51
52
|
def postinstall():
|
|
52
|
-
|
|
53
|
+
parser = argparse.ArgumentParser()
|
|
54
|
+
parser.add_argument("--os", help="Override OS", default="")
|
|
55
|
+
parser.add_argument("--arch", help="Override architecture", default="")
|
|
56
|
+
args = parser.parse_args()
|
|
57
|
+
|
|
58
|
+
bin_dir = os.path.join(os.path.dirname(__file__), "bin")
|
|
53
59
|
os.makedirs(bin_dir, exist_ok=True)
|
|
54
60
|
|
|
61
|
+
url = f"https://dotenvx.sh?directory={bin_dir}"
|
|
62
|
+
if args.os:
|
|
63
|
+
url += f"&os={args.os}"
|
|
64
|
+
if args.arch:
|
|
65
|
+
url += f"&arch={args.arch}"
|
|
66
|
+
|
|
55
67
|
try:
|
|
56
68
|
subprocess.run(
|
|
57
|
-
["sh", "-c", f
|
|
69
|
+
["sh", "-c", f'curl -sfS "{url}" | sh'],
|
|
58
70
|
check=True
|
|
59
71
|
)
|
|
60
72
|
except subprocess.CalledProcessError as e:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-dotenvx
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
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
|
|
@@ -51,6 +51,9 @@ Then run `dotenvx-postinstall` to install the `dotenvx` binary (python-dotenvx i
|
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
53
|
dotenvx-postinstall
|
|
54
|
+
|
|
55
|
+
# or to specify the os-arch – useful for building binaries to a specific target such as linux-x86_64 on aws lambda
|
|
56
|
+
dotenvx-postinstall --os linux --arch x86_64
|
|
54
57
|
```
|
|
55
58
|
|
|
56
59
|
Then use it in code.
|
|
@@ -70,7 +73,13 @@ print(os.getenv("S3_BUCKET"))
|
|
|
70
73
|
|
|
71
74
|
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.
|
|
72
75
|
|
|
73
|
-
## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.2.
|
|
76
|
+
## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.2.4...main)
|
|
77
|
+
|
|
78
|
+
## [0.2.4](https://github.com/dotenvx/dotenvx/compare/v0.2.3...v0.2.4)
|
|
79
|
+
|
|
80
|
+
### Added
|
|
81
|
+
|
|
82
|
+
* Add the ability to specify the `os` and `arch` on `dotenvx-postinstall`
|
|
74
83
|
|
|
75
84
|
## [0.2.3](https://github.com/dotenvx/dotenvx/compare/v0.2.2...v0.2.3)
|
|
76
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
|
{python_dotenvx-0.2.3 → python_dotenvx-0.2.4}/src/python_dotenvx.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|