-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
45 lines (41 loc) · 1.09 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import os
from setuptools import setup, find_packages
src = {}
dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(dir, "src/dotenv_vault", "__version__.py"), "r") as f:
exec(f.read(), src)
def read_files(files):
data = []
for file in files:
with open(file, encoding='utf-8') as f:
data.append(f.read())
return "\n".join(data)
readme = read_files(['README.md', 'CHANGELOG.md'])
setup(
name='python-dotenv-vault',
description=src['__description__'],
long_description=readme,
long_description_content_type='text/markdown',
version=src['__version__'],
license=src['__license__'],
author=src['__author__'],
author_email=src['__author_email__'],
packages=find_packages('src'),
package_dir={'': 'src'},
url=src['__url__'],
keywords=[
'environment',
'environment variables',
'deployments',
'settings',
'env',
'dotenv',
'configurations',
'python',
'dotenv-vault'
],
install_requires=[
'python-dotenv~=0.21.0',
'cryptography<42.0.0,>41.0.3'
],
)