1# Copyright 2017 Google Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15import os
16
17import setuptools
18
19
20PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))
21
22with open(os.path.join(PACKAGE_ROOT, 'README.rst')) as file_obj:
23    README = file_obj.read()
24
25
26REQUIREMENTS = [
27    'google-crc32c >= 1.0, < 2.0dev',
28]
29EXTRAS_REQUIRE = {
30    'requests': [
31        'requests >= 2.18.0, < 3.0.0dev',
32    ],
33    'aiohttp': 'aiohttp >= 3.6.2, < 4.0.0dev'
34}
35
36setuptools.setup(
37    name='google-resumable-media',
38    version = "2.1.0",
39    description='Utilities for Google Media Downloads and Resumable Uploads',
40    author='Google Cloud Platform',
41    author_email='googleapis-publisher@google.com',
42    long_description=README,
43    namespace_packages=['google'],
44    scripts=[],
45    url='https://github.com/googleapis/google-resumable-media-python',
46    packages=setuptools.find_packages(exclude=('tests*',)),
47    license='Apache 2.0',
48    platforms='Posix; MacOS X; Windows',
49    include_package_data=True,
50    zip_safe=False,
51    install_requires=REQUIREMENTS,
52    extras_require=EXTRAS_REQUIRE,
53    python_requires='>= 3.6',
54    classifiers=[
55        'Development Status :: 5 - Production/Stable',
56        'Intended Audience :: Developers',
57        'License :: OSI Approved :: Apache Software License',
58        'Operating System :: OS Independent',
59        'Programming Language :: Python :: 3',
60        'Programming Language :: Python :: 3.6',
61        'Programming Language :: Python :: 3.7',
62        'Programming Language :: Python :: 3.8',
63        'Programming Language :: Python :: 3.9',
64        'Programming Language :: Python :: 3.10',
65        'Topic :: Internet',
66    ],
67)
68