Skip to content

Commit

Permalink
Merge pull request #445 from stripe/ob-fix-setup-py
Browse files Browse the repository at this point in the history
Fix setup.py
  • Loading branch information
ob-stripe authored Jul 10, 2018
2 parents 8770a4a + 4cde7a5 commit 02cd937
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import sys
from codecs import open
from os import path
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand

Expand All @@ -19,20 +19,17 @@ def run_tests(self):
sys.exit(errno)


here = path.abspath(path.dirname(__file__))
here = os.path.abspath(os.path.dirname(__file__))

with open(path.join(here, 'LONG_DESCRIPTION.rst'), encoding='utf-8') as f:
os.chdir(here)

with open(os.path.join(here, 'LONG_DESCRIPTION.rst'), encoding='utf-8') as f:
long_description = f.read()

version_contents = {}
with open(path.join(here, 'stripe', 'version.py'), encoding='utf-8') as f:
with open(os.path.join(here, 'stripe', 'version.py'), encoding='utf-8') as f:
exec(f.read(), version_contents)

tests_require = [
'mock',
'unittest2',
]

setup(
name='stripe',
version=version_contents['VERSION'],
Expand Down Expand Up @@ -75,6 +72,7 @@ def run_tests(self):
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
],
Expand Down

0 comments on commit 02cd937

Please sign in to comment.