python-dotenvx 0.2.4__py3-none-any.whl → 0.2.5__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.
dotenvx/__version__.py CHANGED
@@ -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"
4
+ __version__ = "0.2.5"
5
5
  __author__ = "dotenv"
6
6
  __author_email__ = "mot@dotenvx.com"
7
7
  __license__ = "BSD-3-Clause"
dotenvx/main.py CHANGED
@@ -30,8 +30,11 @@ def get():
30
30
  return output.stdout.strip()
31
31
 
32
32
  def binary():
33
- local_bin = os.path.join(os.path.dirname(package_path), "bin", "dotenvx")
34
- candidates = [local_bin, shutil.which("dotenvx")]
33
+ candidates = [
34
+ os.path.join(os.path.dirname(__file__), "bin", "dotenvx"), # package-local
35
+ os.path.join(os.getcwd(), "bin", "dotenvx"), # project-local
36
+ shutil.which("dotenvx") # global/system
37
+ ]
35
38
 
36
39
  for candidate in candidates:
37
40
  if candidate and os.path.isfile(candidate) and os.access(candidate, os.X_OK):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-dotenvx
3
- Version: 0.2.4
3
+ Version: 0.2.5
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
@@ -54,6 +54,9 @@ dotenvx-postinstall
54
54
 
55
55
  # or to specify the os-arch – useful for building binaries to a specific target such as linux-x86_64 on aws lambda
56
56
  dotenvx-postinstall --os linux --arch x86_64
57
+
58
+ # you might also find you need to specify PYTHONPATH depend on how/where dotenvx installs to
59
+ PYTHONPATH=. bin/dotenvx-postinstall --os linux --arch x86_64
57
60
  ```
58
61
 
59
62
  Then use it in code.
@@ -73,7 +76,13 @@ print(os.getenv("S3_BUCKET"))
73
76
 
74
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.
75
78
 
76
- ## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.2.4...main)
79
+ ## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.2.5...main)
80
+
81
+ ## [0.2.5](https://github.com/dotenvx/dotenvx/compare/v0.2.4...v0.2.5)
82
+
83
+ ### Added
84
+
85
+ * Add additional bin/* candidate to check for dotenvx binary
77
86
 
78
87
  ## [0.2.4](https://github.com/dotenvx/dotenvx/compare/v0.2.3...v0.2.4)
79
88
 
@@ -0,0 +1,10 @@
1
+ dotenvx/__init__.py,sha256=rfD8JBefABV8cPWOI8_po_RG6OMpFdrQTKRZSM5QipI,31
2
+ dotenvx/__version__.py,sha256=LmZrMiECOTpessWyZ13_ExPOPMjPFoWaA1njD5lAy1g,274
3
+ dotenvx/main.py,sha256=irs9VE4HZZWiBlZR4b_lQpr3ECn6nKFQwshYj_Lg3JQ,2230
4
+ dotenvx/bin/dotenvx,sha256=s7IfiwTOzpRT1vRD1UXsI-DXGv9Lp8ujCGyiwVExP8c,90
5
+ python_dotenvx-0.2.5.dist-info/licenses/LICENSE,sha256=Lt6wCRSMNsJJcSVkhx2Cl9kglLiOQXIo5PPOfbWe6e0,1498
6
+ python_dotenvx-0.2.5.dist-info/METADATA,sha256=QwC72olQVXUN7rtVgMdlR8kvs8fu0ZuzCG8iDjP-oJQ,2954
7
+ python_dotenvx-0.2.5.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
8
+ python_dotenvx-0.2.5.dist-info/entry_points.txt,sha256=Nub8f_4lO2T3-qRk5wJF-ii_fI9PQ7oPTjSI9e1OaXk,65
9
+ python_dotenvx-0.2.5.dist-info/top_level.txt,sha256=nl1TEgPiBhIp7rqusyvY6zlWLlcDroqH5GQxH-ImMkk,8
10
+ python_dotenvx-0.2.5.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- dotenvx/__init__.py,sha256=rfD8JBefABV8cPWOI8_po_RG6OMpFdrQTKRZSM5QipI,31
2
- dotenvx/__version__.py,sha256=GF0tlg06fsiQD3qpsFjScp_xcCARdu-jKlquFBEN5UI,274
3
- dotenvx/main.py,sha256=qWO2QPfedIujpanwMv6Px4Q2LirdUD0-xxiWZzPsgok,2085
4
- dotenvx/bin/dotenvx,sha256=s7IfiwTOzpRT1vRD1UXsI-DXGv9Lp8ujCGyiwVExP8c,90
5
- python_dotenvx-0.2.4.dist-info/licenses/LICENSE,sha256=Lt6wCRSMNsJJcSVkhx2Cl9kglLiOQXIo5PPOfbWe6e0,1498
6
- python_dotenvx-0.2.4.dist-info/METADATA,sha256=L6fDSL5fszkqUZXdu8sv6f2MvjWc0HSFZrD05IDq3e8,2653
7
- python_dotenvx-0.2.4.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
8
- python_dotenvx-0.2.4.dist-info/entry_points.txt,sha256=Nub8f_4lO2T3-qRk5wJF-ii_fI9PQ7oPTjSI9e1OaXk,65
9
- python_dotenvx-0.2.4.dist-info/top_level.txt,sha256=nl1TEgPiBhIp7rqusyvY6zlWLlcDroqH5GQxH-ImMkk,8
10
- python_dotenvx-0.2.4.dist-info/RECORD,,