Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
#!/usr/bin/env python
import os
import re

from pathlib import Path
from setuptools import find_packages, setup

ROOT = os.path.dirname(__file__)
ROOT = Path(__file__).parent
VERSION_RE = re.compile(r'''__version__ = ['"]([0-9.]+)['"]''')


requires = [
'botocore>=1.37.4,<2.0a.0',
]


def get_version():
init = open(os.path.join(ROOT, 's3transfer', '__init__.py')).read()
init = (ROOT / 's3transfer' / '__init__.py').read_text()
return VERSION_RE.search(init).group(1)


setup(
name='s3transfer',
version=get_version(),
description='An Amazon S3 Transfer Manager',
long_description=open('README.rst').read(),
long_description=(ROOT / 'README.rst').read_text(),
author='Amazon Web Services',
author_email='[email protected]',
url='https://github.com/boto/s3transfer',
Expand Down