python-dotenvx 0.2.0__tar.gz → 0.2.2__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.
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+
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
+
5
+ ## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.2.2...main)
6
+
7
+ ## [0.2.2](https://github.com/dotenvx/dotenvx/compare/v0.2.1...v0.2.2)
8
+
9
+ ### Changed
10
+
11
+ * Adjust installation of `dotenvx` binary on demand
12
+
13
+ ## [0.2.1](https://github.com/dotenvx/dotenvx/compare/v0.2.1...v0.2.1)
14
+
15
+ ### Added
16
+
17
+ * Install the `dotenvx` binary on install of the python package
18
+
19
+ ## 0.2.0
20
+
21
+ Please see commit history.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: python-dotenvx
3
- Version: 0.2.0
3
+ Version: 0.2.2
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
@@ -9,11 +9,25 @@ License: BSD-3-Clause
9
9
  Keywords: environment,environment variables,deployments,settings,env,dotenv,configurations,python,dotenvx
10
10
  Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
-
12
+ Dynamic: author
13
+ Dynamic: author-email
14
+ Dynamic: description
15
+ Dynamic: description-content-type
16
+ Dynamic: home-page
17
+ Dynamic: keywords
18
+ Dynamic: license
19
+ Dynamic: license-file
20
+ Dynamic: summary
21
+
22
+ > [!IMPORTANT]
23
+ >
24
+ > Warning: work in progress. until complete, please use [github.com/dotenvx/dotenvx](https://github.com/dotenvx/dotenvx) directly.
13
25
  >
14
- > Warning: work in progress. until complete, please use [github.com/dotenvx/dotenvx](https://github.com/dotenvx/dotenvx)
26
+ > see [python examples](https://dotenvx.com/docs/languages/python)
15
27
  >
16
28
 
29
+ ---
30
+
17
31
  [![dotenvx](https://dotenvx.com/better-banner.png)](https://dotenvx.com)
18
32
 
19
33
  *a better dotenv*–from the creator of [`dotenv`](https://github.com/motdotla/dotenv).
@@ -25,12 +39,12 @@ License-File: LICENSE
25
39
   
26
40
 
27
41
 
28
- ### Quickstart [![PyPI version](https://badge.fury.io/py/python-dotenvx.svg)](http://badge.fury.io/py/python-dotenvx)
42
+ ### Quickstart [![PyPI version](https://badge.fury.io/py/python-dotenvx.svg)](http://badge.fury.io/py/python-dotenvx)
29
43
 
30
44
  Install and use it in code just like `python-dotenv`.
31
45
 
32
46
  ```sh
33
- pip install python-dotenv
47
+ pip install python-dotenvx
34
48
  ```
35
49
  ```python
36
50
  # main.py
@@ -48,8 +62,20 @@ print(os.getenv("S3_BUCKET"))
48
62
 
49
63
  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.
50
64
 
51
- ## [Unreleased](https://github.com/dotenv-org/python-dotenvx/compare/v0.0.1...main)
65
+ ## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.2.2...main)
66
+
67
+ ## [0.2.2](https://github.com/dotenvx/dotenvx/compare/v0.2.1...v0.2.2)
68
+
69
+ ### Changed
70
+
71
+ * Adjust installation of `dotenvx` binary on demand
72
+
73
+ ## [0.2.1](https://github.com/dotenvx/dotenvx/compare/v0.2.1...v0.2.1)
74
+
75
+ ### Added
76
+
77
+ * Install the `dotenvx` binary on install of the python package
52
78
 
53
- ## 0.1.1
79
+ ## 0.2.0
54
80
 
55
81
  Please see commit history.
@@ -1,6 +1,11 @@
1
+ > [!IMPORTANT]
1
2
  >
2
- > Warning: work in progress. until complete, please use [github.com/dotenvx/dotenvx](https://github.com/dotenvx/dotenvx)
3
+ > Warning: work in progress. until complete, please use [github.com/dotenvx/dotenvx](https://github.com/dotenvx/dotenvx) directly.
3
4
  >
5
+ > see [python examples](https://dotenvx.com/docs/languages/python)
6
+ >
7
+
8
+ ---
4
9
 
5
10
  [![dotenvx](https://dotenvx.com/better-banner.png)](https://dotenvx.com)
6
11
 
@@ -13,12 +18,12 @@
13
18
   
14
19
 
15
20
 
16
- ### Quickstart [![PyPI version](https://badge.fury.io/py/python-dotenvx.svg)](http://badge.fury.io/py/python-dotenvx)
21
+ ### Quickstart [![PyPI version](https://badge.fury.io/py/python-dotenvx.svg)](http://badge.fury.io/py/python-dotenvx)
17
22
 
18
23
  Install and use it in code just like `python-dotenv`.
19
24
 
20
25
  ```sh
21
- pip install python-dotenv
26
+ pip install python-dotenvx
22
27
  ```
23
28
  ```python
24
29
  # main.py
@@ -1,5 +1,7 @@
1
1
  import os
2
+ import subprocess
2
3
  from setuptools import setup, find_packages
4
+ from setuptools.command.install import install
3
5
 
4
6
  src = {}
5
7
  dir = os.path.abspath(os.path.dirname(__file__))
@@ -15,6 +17,25 @@ def read_files(files):
15
17
 
16
18
  readme = read_files(['README.md', 'CHANGELOG.md'])
17
19
 
20
+ class InstallBinary(install):
21
+ def run(self):
22
+ print("installing dotenvx........")
23
+
24
+ bin_dir = os.path.join(dir, 'src', 'dotenvx', 'bin')
25
+ os.makedirs(bin_dir, exist_ok=True)
26
+
27
+ # install dotenvx binary using your install script into bin/
28
+ subprocess.run(
29
+ ['sh', '-c', f'curl -sfS "https://dotenvx.sh?directory={bin_dir}" | sh'],
30
+ check=True,
31
+ stdout=None,
32
+ stderr=None
33
+ )
34
+
35
+ print("installed dotenvx........")
36
+
37
+ super().run()
38
+
18
39
  setup(
19
40
  name='python-dotenvx',
20
41
  description=src['__description__'],
@@ -40,4 +61,5 @@ setup(
40
61
  ],
41
62
  install_requires=[
42
63
  ],
64
+ cmdclass={'install': InstallBinary},
43
65
  )
@@ -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.0"
4
+ __version__ = "0.2.2"
5
5
  __author__ = "dotenv"
6
6
  __author_email__ = "mot@dotenvx.com"
7
7
  __license__ = "BSD-3-Clause"
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: python-dotenvx
3
- Version: 0.2.0
3
+ Version: 0.2.2
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
@@ -9,11 +9,25 @@ License: BSD-3-Clause
9
9
  Keywords: environment,environment variables,deployments,settings,env,dotenv,configurations,python,dotenvx
10
10
  Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
-
12
+ Dynamic: author
13
+ Dynamic: author-email
14
+ Dynamic: description
15
+ Dynamic: description-content-type
16
+ Dynamic: home-page
17
+ Dynamic: keywords
18
+ Dynamic: license
19
+ Dynamic: license-file
20
+ Dynamic: summary
21
+
22
+ > [!IMPORTANT]
23
+ >
24
+ > Warning: work in progress. until complete, please use [github.com/dotenvx/dotenvx](https://github.com/dotenvx/dotenvx) directly.
13
25
  >
14
- > Warning: work in progress. until complete, please use [github.com/dotenvx/dotenvx](https://github.com/dotenvx/dotenvx)
26
+ > see [python examples](https://dotenvx.com/docs/languages/python)
15
27
  >
16
28
 
29
+ ---
30
+
17
31
  [![dotenvx](https://dotenvx.com/better-banner.png)](https://dotenvx.com)
18
32
 
19
33
  *a better dotenv*–from the creator of [`dotenv`](https://github.com/motdotla/dotenv).
@@ -25,12 +39,12 @@ License-File: LICENSE
25
39
   
26
40
 
27
41
 
28
- ### Quickstart [![PyPI version](https://badge.fury.io/py/python-dotenvx.svg)](http://badge.fury.io/py/python-dotenvx)
42
+ ### Quickstart [![PyPI version](https://badge.fury.io/py/python-dotenvx.svg)](http://badge.fury.io/py/python-dotenvx)
29
43
 
30
44
  Install and use it in code just like `python-dotenv`.
31
45
 
32
46
  ```sh
33
- pip install python-dotenv
47
+ pip install python-dotenvx
34
48
  ```
35
49
  ```python
36
50
  # main.py
@@ -48,8 +62,20 @@ print(os.getenv("S3_BUCKET"))
48
62
 
49
63
  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.
50
64
 
51
- ## [Unreleased](https://github.com/dotenv-org/python-dotenvx/compare/v0.0.1...main)
65
+ ## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.2.2...main)
66
+
67
+ ## [0.2.2](https://github.com/dotenvx/dotenvx/compare/v0.2.1...v0.2.2)
68
+
69
+ ### Changed
70
+
71
+ * Adjust installation of `dotenvx` binary on demand
72
+
73
+ ## [0.2.1](https://github.com/dotenvx/dotenvx/compare/v0.2.1...v0.2.1)
74
+
75
+ ### Added
76
+
77
+ * Install the `dotenvx` binary on install of the python package
52
78
 
53
- ## 0.1.1
79
+ ## 0.2.0
54
80
 
55
81
  Please see commit history.
@@ -1,9 +0,0 @@
1
- # Changelog
2
-
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
-
5
- ## [Unreleased](https://github.com/dotenv-org/python-dotenvx/compare/v0.0.1...main)
6
-
7
- ## 0.1.1
8
-
9
- Please see commit history.
File without changes
File without changes