�&ǐk�@'bJ�h�ۊL'}T� :��'2�Z#$��n�a��� �>a��`��_3d�Qpt�/�P -��#5�,�M��� �pA:©�q�����NW��ډ�A���� �9nʺج���� �TSM��{J6?7��r�@�\����D��� �׶���s�f�TJj?"��D��`?��̒� b�#�%�C*v�$�{�$����5Ծ�F�s��y�e/8��h-�f�̰&(����Gj�L:U� 2�� ����v�_k����Y��gp,�k�WF�R������_C�R��N@���R�@�ߔ?A�w9���F("iNa-S���Q�o�3tDMLh*�#4k�T/iQ��Y*�G��m����)��8�hBm/�I�,g�ﯖ���Z��}�Cz�q@´��d.����L�ŕ�,��1�Z�܌�: ̪���F+J-'��c�tvJ8��]Q-��b��y �6;*J`r_�d ��'�G ~p��)'�C,�%F��E(��2�k�����lР�z�!�=t ��_�0��f7��� ;�p�|�U �%=3.5.1', 'crcmod>=1.7', 'fasteners>=0.14.1', 'gcs-oauth2-boto-plugin>=3.2', 'google-apitools>=0.5.32', 'httplib2==0.20.4', 'google-reauth>=0.1.0', # mock is part of the standard library in Python 3.3 onwards. # 3.0.5 is the last version that supports Python 3.3 or lower. 'mock>=2.0.0, <=3.0.5; python_version < "3.3"', 'monotonic>=1.4', 'pyOpenSSL>=0.13, <=24.2.1', 'retry_decorator>=1.0.0', 'six>=1.16.0', # aiohttp is the extra dependency that contains requests lib. 'google-auth[aiohttp]==2.17.0', 'google-auth-httplib2>=0.2.0', ] CURDIR = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(CURDIR, 'VERSION'), 'r') as f: VERSION = f.read().strip() with open(os.path.join(CURDIR, 'CHECKSUM'), 'r') as f: CHECKSUM = f.read() def PlaceNeededFiles(self, target_dir): """Populates necessary files into the gslib module and unit test modules.""" target_dir = os.path.join(target_dir, 'gslib') self.mkpath(target_dir) # Copy the gsutil root VERSION file into gslib module. with open(os.path.join(target_dir, 'VERSION'), 'w') as fp: fp.write(VERSION) # Copy the gsutil root CHECKSUM file into gslib module. with open(os.path.join(target_dir, 'CHECKSUM'), 'w') as fp: fp.write(CHECKSUM) class CustomBuildPy(build_py.build_py): """Excludes update command from package-installed versions of gsutil.""" def byte_compile(self, files): for filename in files: # Note: we exclude the update command here because binary distributions # (built via setup.py bdist command) don't abide by the MANIFEST file. # For source distributions (built via setup.py sdist), the update command # will be excluded by the MANIFEST file. if 'gslib/commands/update.py' in filename: os.unlink(filename) build_py.build_py.byte_compile(self, files) def run(self): if not self.dry_run: PlaceNeededFiles(self, self.build_lib) build_py.build_py.run(self) class CustomSDist(sdist.sdist): def make_release_tree(self, base_dir, files): sdist.sdist.make_release_tree(self, base_dir, files) PlaceNeededFiles(self, base_dir) setup( name='gsutil', version=VERSION, url='https://cloud.google.com/storage/docs/gsutil', download_url='https://cloud.google.com/storage/docs/gsutil_install', license='Apache 2.0', author='Google Inc.', author_email='buganizer-system+187143@google.com', description=('A command line tool for interacting with cloud storage ' 'services.'), long_description=long_desc, long_description_content_type=long_desc_content_type, zip_safe=True, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: Apache Software License', 'Natural Language :: English', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Topic :: System :: Filesystems', 'Topic :: Utilities', ], # Gsutil supports Python 3.8 to 3.12 python_requires='>=3.8, <3.13', platforms='any', packages=find_packages( exclude=[ # Packages under third_party are installed separately as # dependencies (see the "requires" list above). Note that we do not # exclude vendored dependencies (under gslib/vendored), as our # vendored versions may differ slightly from the official versions. 'third_party', ], ), include_package_data=True, entry_points={ 'console_scripts': ['gsutil = gslib.__main__:main',], }, install_requires=requires, cmdclass={ 'build_py': CustomBuildPy, 'sdist': CustomSDist, }, )