-
Notifications
You must be signed in to change notification settings - Fork 32
/
setup.py
45 lines (38 loc) · 1.23 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
45
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='clueai',
version='0.0.2.2.6',
author='matrix',
author_email='[email protected]',
description='A Python library for the ClueAI API',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/clue-ai/clueai-python',
packages=setuptools.find_packages(),
install_requires=[
'requests',
'Pillow'
],
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
python_requires='>=3.6',
distclass=BinaryDistribution,
cmdclass={'install': InstallPlatlib}
)