| """ Setup |
| """ |
| from setuptools import setup, find_packages |
| from codecs import open |
| from os import path |
|
|
| here = path.abspath(path.dirname(__file__)) |
|
|
| def _read_reqs(relpath): |
| fullpath = path.join(path.dirname(__file__), relpath) |
| with open(fullpath) as f: |
| return [s.strip() for s in f.readlines() if (s.strip() and not s.startswith("#"))] |
| |
| REQUIREMENTS = _read_reqs("requirements.txt") |
|
|
| exec(open('src/open_clip/version.py').read()) |
| setup( |
| name='open_clip_torch', |
| version=__version__, |
| description='OpenCLIP', |
| url='https://github.com/mlfoundations/open_clip', |
| author='', |
| author_email='', |
| classifiers=[ |
| |
| |
| |
| |
| 'Development Status :: 3 - Alpha', |
| 'Intended Audience :: Education', |
| 'Intended Audience :: Science/Research', |
| 'License :: OSI Approved :: Apache Software License', |
| 'Programming Language :: Python :: 3.7', |
| 'Programming Language :: Python :: 3.8', |
| 'Programming Language :: Python :: 3.9', |
| 'Programming Language :: Python :: 3.10', |
| 'Topic :: Scientific/Engineering', |
| 'Topic :: Scientific/Engineering :: Artificial Intelligence', |
| 'Topic :: Software Development', |
| 'Topic :: Software Development :: Libraries', |
| 'Topic :: Software Development :: Libraries :: Python Modules', |
| ], |
|
|
| |
| keywords='CLIP pretrained', |
| package_dir={'': 'src'}, |
| packages=find_packages(where='src'), |
| include_package_data=True, |
| install_requires=REQUIREMENTS, |
| python_requires='>=3.7', |
| ) |