-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
51 lines (41 loc) · 1.25 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
46
47
48
49
50
51
import codecs
import fastentrypoints
import os
from setuptools import setup
try:
# pip >= 10
from pip._internal.req import parse_requirements
except ImportError:
# pip <= 9.0.3
from pip.req import parse_requirements
try:
# pip >= 10
from pip._internal.download import PipSession
except ImportError:
# pip <= 9.0.3
from pip.download import PipSession
def get_requirements():
requirements = parse_requirements(
os.path.join(os.path.dirname(__file__), "requirements.txt"),
session=PipSession())
return [str(req.req) for req in requirements]
def read(fname):
file_path = os.path.join(os.path.dirname(__file__), fname)
return codecs.open(file_path, encoding='utf-8').read()
setup(
name='ebenv',
version='0.3.1',
description='AWS Elastic Beanstalk environment dumper/extractor.',
long_description=read('README.md'),
long_description_content_type='text/markdown',
url='https://github.com/steinnes/ebenv',
author='Steinn Eldjarn Sigurdarson',
author_email='[email protected]',
keywords=['aws', 'elasticbeanstalk', 'environment'],
install_requires=get_requirements(),
packages=['ebenv'],
entry_points='''
[console_scripts]
ebenv=ebenv:cli
'''
)