Skip to content

Commit 275c131

Browse files
authored
Merge pull request #363 from michael-k/setup
Simplify setup.py
2 parents 7fba3a3 + bf4bcdd commit 275c131

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

setup.py

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
1-
import sys
2-
31
from setuptools import setup, find_packages
42
from os import path
53
from aws_xray_sdk.version import VERSION
64

75
CURRENT_DIR = path.abspath(path.dirname(__file__))
86

9-
try:
10-
from pypandoc import convert
11-
read_md = lambda f: convert(f, 'rst')
12-
except ImportError:
13-
read_md = lambda f: open(f, 'r').read()
14-
15-
long_description = read_md(path.join(CURRENT_DIR, 'README.md'))
16-
17-
INSTALL_REQUIRED_DEPS = [
18-
'enum34;python_version<"3.4"',
19-
'wrapt',
20-
'botocore>=1.11.3',
21-
]
22-
23-
if sys.version_info[0] == 2:
24-
INSTALL_REQUIRED_DEPS.append("future")
7+
with open(path.join(CURRENT_DIR, 'README.md'), 'r') as f:
8+
long_description = f.read()
259

2610
setup(
2711
name='aws-xray-sdk',
@@ -55,7 +39,12 @@
5539
'Programming Language :: Python :: 3.9',
5640
],
5741

58-
install_requires=INSTALL_REQUIRED_DEPS,
42+
install_requires=[
43+
'enum34;python_version<"3.4"',
44+
'wrapt',
45+
'future;python_version<"3"',
46+
'botocore>=1.11.3',
47+
],
5948

6049
keywords='aws xray sdk',
6150

0 commit comments

Comments
 (0)