Skip to content

Commit 8a5e5ca

Browse files
committed
update Readme and setup.py
1 parent 2218197 commit 8a5e5ca

File tree

5 files changed

+76
-0
lines changed

5 files changed

+76
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
11
# dotenv-vault-python
2+
3+
dotenv-vault-python allows your app to sync the `.env` file to the cloud. This means that you can work anywhere, in any machine, and in any cloud infrastructure with cofidence.
4+
5+
## Getting Started
6+
```
7+
pip install python-dotenv-vault --no-cache-dir
8+
```
9+
10+
11+
## Push to pipy
12+
```
13+
pip install twine
14+
python setup.py publish
15+
# enter username and password
16+
```

setup.py

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import os
2+
import sys
3+
from setuptools import setup, find_packages
4+
5+
src = {}
6+
dir = os.path.abspath(os.path.dirname(__file__))
7+
with open(os.path.join(dir, "src/dotenv", "__version__.py"), "r") as f:
8+
exec(f.read(), src)
9+
10+
with open("README.md", "r") as f:
11+
readme = f.read()
12+
13+
# 'setup.py publish' shortcut.
14+
if sys.argv[-1] == "publish":
15+
os.system("python setup.py sdist")
16+
os.system(f"twine upload dist/python-dotenv-vault-{src['__version__']}.tar.gz")
17+
sys.exit()
18+
19+
setup(
20+
name='python-dotenv-vault',
21+
description=src['__description__'],
22+
version=src['__version__'],
23+
license=src['__license__'],
24+
author=src['__author__'],
25+
author_email=src['__author_email__'],
26+
packages=find_packages('src'),
27+
package_dir={'': 'src'},
28+
url=src['__url__'],
29+
keywords=[
30+
'environment',
31+
'environment variables',
32+
'deployments',
33+
'settings',
34+
'env',
35+
'dotenv',
36+
'configurations',
37+
'python',
38+
'dotenv-vault'
39+
],
40+
install_requires=[],
41+
)

src/dotenv/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .main import load_dotenv_vault

src/dotenv/__version__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# _ _ _ _ _ _
2+
# __| |___| |_ ___ _ ___ _______ ____ _ _ _| | |_ ___ _ __ _ _| |_| |_ ___ _ _
3+
# / _` / _ \ _/ -_) ' \ V /___\ V / _` | || | | _|___| '_ \ || | _| ' \/ _ \ ' \
4+
# \__,_\___/\__\___|_||_\_/ \_/\__,_|\_,_|_|\__| | .__/\_, |\__|_||_\___/_||_|
5+
# |_| |__/
6+
7+
__title__ = "python-dotenv-vault"
8+
__description__ = "Syncing your .env to the cloud."
9+
__url__ = "https://github.com/dotenv-org/dotenv-vault-python"
10+
__version__ = "0.0.4"
11+
__author__ = "dotenv"
12+
__author_email__ = "[email protected]"
13+
__license__ = "MIT"

src/dotenv/main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from optparse import Option
2+
from typing import Optional
3+
4+
5+
def load_dotenv():
6+
print('loading dotenv-vault.')

0 commit comments

Comments
 (0)