forked from cohere-ai/cohere-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (34 loc) · 1.44 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import setuptools
from setuptools.command.install import install
from setuptools.dist import Distribution
with open('README.md', 'r', encoding='utf-8') as fh:
long_description = fh.read()
class InstallPlatlib(install):
def finalize_options(self):
install.finalize_options(self)
if self.distribution.has_ext_modules():
self.install_lib = self.install_platlib
class BinaryDistribution(Distribution):
def is_pure(self) -> bool:
return False
def has_ext_modules(foo) -> bool:
return True
setuptools.setup(name='cohere',
version='2.7.0',
author='1vn',
author_email='ivan@cohere.ai',
description='A Python library for the Cohere API',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/cohere-ai/cohere-python',
packages=setuptools.find_packages(),
install_requires=['requests'],
include_package_data=True,
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
python_requires='>=3.6',
distclass=BinaryDistribution,
cmdclass={'install': InstallPlatlib})