-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (44 loc) · 1.68 KB
/
Copy pathsetup.py
File metadata and controls
50 lines (44 loc) · 1.68 KB
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
46
47
48
49
50
"""
@Project : dichotomous-score
@File : setup.py
@Author : Shaobo Cui
@Date : 17.10.2024 14:16
"""
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os
def get_version():
with open("oppositescore/__init__.py", encoding="utf-8") as f:
for line in f:
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError("Version not found")
# Read the README file for the long description
with open(os.path.join(os.path.dirname(__file__), 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Read the requirements file
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt'), encoding='utf-8') as f:
requirements = [line.strip() for line in f if line.strip()]
setup(
include_package_data=True,
name='opposite-score',
version=get_version(),
description='Optimized Text Embeddings Designed for Measuring Opposite/Contrasting Relationships',
long_description=long_description,
long_description_content_type='text/markdown',
author='Shaobo Cui',
author_email='shaobo.cui@epfl.ch',
url='https://github.com/cui-shaobo/conditional-dichotomy-quantification',
packages=find_packages(include=['oppositescore', 'oppositescore.*']),
install_requires=requirements,
zip_safe=False,
keywords='text embedding, NLP, opposite relationships, dichotomy',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.9',
],
python_requires='>=3.7, <3.12',
)