From 1ad8886452523d182dcac759432af34c5d39a775 Mon Sep 17 00:00:00 2001 From: goldpulpy Date: Wed, 9 Oct 2024 04:12:09 +0300 Subject: [PATCH] Added configurations for building and installing the package --- pyproject.toml | 38 ++++++++++++++++++++++++++++++++++++++ setup.cfg | 3 +++ setup.py | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 pyproject.toml create mode 100644 setup.cfg create mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..0c251ed --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,38 @@ +[build-system] +requires = ["setuptools>=42", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "pysentence-similarity" +version = "1.0.1" +description = "pysentence-similarity this tool is designed to identify and find similarities between sentences and the base sentence in python language" +authors = [ + { name = "goldpulpy", email = "sawsani1928@gmail.com" } +] +license = { text = "MIT" } +readme = "README.md" +requires-python = ">=3.8" +dependencies = [ + "tokenizers", + "onnxruntime-gpu", + "beautifulsoup4", + "platformdirs", + "h5py" +] +keywords = ["sentence similarity", "NLP", "natural language processing"] +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Natural Language :: English", + "Topic :: Software Development :: Libraries :: Python Modules", + "Intended Audience :: Developers", +] + + +[project.urls] +Homepage = "https://github.com/goldpulpy/pysentence-similarity" +Repository = "https://github.com/goldpulpy/pysentence-similarity" +Documentation = "https://github.com/goldpulpy/pysentence-similarity#readme" +Issue = "https://github.com/goldpulpy/pysentence-similarity/issues" + diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..5daf14f --- /dev/null +++ b/setup.cfg @@ -0,0 +1,3 @@ +[egg_info] +tag_build = +tag_date = 0 \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..adbbf7d --- /dev/null +++ b/setup.py @@ -0,0 +1,40 @@ +"""Setup.py for pysentence-similarity package.""" +from setuptools import setup, find_packages + +setup( + name="pysentence-similarity", + version="1.0.1", + author="goldpulpy", + author_email="sawsani1928@gmail.com", + description="pysentence-similarity this tool is designed to identify " + "and find similarities between sentences and the base sentence " + "in python language", + long_description=open("README.md").read(), + long_description_content_type="text/markdown", + url="https://github.com/goldpulpy/pysentence-similarity", + project_urls={ + "Documentation": "https://github.com/goldpulpy/" + "pysentence-similarity#readme", + "Issues": "https://github.com/goldpulpy/" + "pysentence-similarity/issues", + "Homepage": "https://github.com/goldpulpy/pysentence-similarity", + }, + packages=find_packages(), + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Natural Language :: English", + "Topic :: Software Development :: Libraries :: Python Modules", + "Intended Audience :: Developers", + ], + keywords="sentence similarity NLP natural language processing", + python_requires='>=3.8', + install_requires=[ + "tokenizers", + "onnxruntime-gpu", + "beautifulsoup4", + "platformdirs", + "h5py" + ], +)