python-dotenvx 0.1.2__tar.gz → 0.2.1__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,15 @@
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.1...main)
6
+
7
+ ## [0.2.1](https://github.com/dotenvx/dotenvx/compare/v0.2.1...v0.2.1)
8
+
9
+ ### Added
10
+
11
+ * Install the `dotenvx` binary on install of the python package
12
+
13
+ ## 0.2.0
14
+
15
+ 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.1.2
3
+ Version: 0.2.1
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,6 +9,24 @@ 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
+ 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.
25
+ >
26
+ > see [python examples](https://dotenvx.com/docs/languages/python)
27
+ >
28
+
29
+ ---
12
30
 
13
31
  [![dotenvx](https://dotenvx.com/better-banner.png)](https://dotenvx.com)
14
32
 
@@ -21,12 +39,12 @@ License-File: LICENSE
21
39
   
22
40
 
23
41
 
24
- ### 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)
25
43
 
26
44
  Install and use it in code just like `python-dotenv`.
27
45
 
28
46
  ```sh
29
- pip install python-dotenv
47
+ pip install python-dotenvx
30
48
  ```
31
49
  ```python
32
50
  # main.py
@@ -44,8 +62,14 @@ print(os.getenv("S3_BUCKET"))
44
62
 
45
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.
46
64
 
47
- ## [Unreleased](https://github.com/dotenv-org/python-dotenvx/compare/v0.0.1...main)
65
+ ## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.2.1...main)
48
66
 
49
- ## 0.1.1
67
+ ## [0.2.1](https://github.com/dotenvx/dotenvx/compare/v0.2.1...v0.2.1)
68
+
69
+ ### Added
70
+
71
+ * Install the `dotenvx` binary on install of the python package
72
+
73
+ ## 0.2.0
50
74
 
51
75
  Please see commit history.
@@ -1,3 +1,12 @@
1
+ > [!IMPORTANT]
2
+ >
3
+ > Warning: work in progress. until complete, please use [github.com/dotenvx/dotenvx](https://github.com/dotenvx/dotenvx) directly.
4
+ >
5
+ > see [python examples](https://dotenvx.com/docs/languages/python)
6
+ >
7
+
8
+ ---
9
+
1
10
  [![dotenvx](https://dotenvx.com/better-banner.png)](https://dotenvx.com)
2
11
 
3
12
  *a better dotenv*–from the creator of [`dotenv`](https://github.com/motdotla/dotenv).
@@ -9,12 +18,12 @@
9
18
   
10
19
 
11
20
 
12
- ### 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)
13
22
 
14
23
  Install and use it in code just like `python-dotenv`.
15
24
 
16
25
  ```sh
17
- pip install python-dotenv
26
+ pip install python-dotenvx
18
27
  ```
19
28
  ```python
20
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,19 @@ 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
+ bin_dir = os.path.join(dir, 'src', 'dotenvx', 'bin')
23
+ os.makedirs(bin_dir, exist_ok=True)
24
+
25
+ # install dotenvx binary using your install script into bin/
26
+ subprocess.run([
27
+ 'sh', '-c',
28
+ f'curl -sfS "https://dotenvx.sh?directory={bin_dir}" | sh'
29
+ ], check=True)
30
+
31
+ super().run()
32
+
18
33
  setup(
19
34
  name='python-dotenvx',
20
35
  description=src['__description__'],
@@ -40,4 +55,7 @@ setup(
40
55
  ],
41
56
  install_requires=[
42
57
  ],
58
+ package_data={'dotenvx': ['bin/dotenvx']},
59
+ include_package_data=True,
60
+ cmdclass={'install': InstallBinary},
43
61
  )
@@ -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.1.2"
4
+ __version__ = "0.2.1"
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.1.2
3
+ Version: 0.2.1
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,6 +9,24 @@ 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
+ 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.
25
+ >
26
+ > see [python examples](https://dotenvx.com/docs/languages/python)
27
+ >
28
+
29
+ ---
12
30
 
13
31
  [![dotenvx](https://dotenvx.com/better-banner.png)](https://dotenvx.com)
14
32
 
@@ -21,12 +39,12 @@ License-File: LICENSE
21
39
   
22
40
 
23
41
 
24
- ### 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)
25
43
 
26
44
  Install and use it in code just like `python-dotenv`.
27
45
 
28
46
  ```sh
29
- pip install python-dotenv
47
+ pip install python-dotenvx
30
48
  ```
31
49
  ```python
32
50
  # main.py
@@ -44,8 +62,14 @@ print(os.getenv("S3_BUCKET"))
44
62
 
45
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.
46
64
 
47
- ## [Unreleased](https://github.com/dotenv-org/python-dotenvx/compare/v0.0.1...main)
65
+ ## [Unreleased](https://github.com/dotenvx/python-dotenvx/compare/v0.2.1...main)
48
66
 
49
- ## 0.1.1
67
+ ## [0.2.1](https://github.com/dotenvx/dotenvx/compare/v0.2.1...v0.2.1)
68
+
69
+ ### Added
70
+
71
+ * Install the `dotenvx` binary on install of the python package
72
+
73
+ ## 0.2.0
50
74
 
51
75
  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