Spaces:
Running
Running
Commit ·
4ddd3db
1
Parent(s): 3cf8aec
migrate setup.py to pyproject.toml
Browse files- pyproject.toml +55 -0
- setup.py +0 -33
pyproject.toml
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[build-system]
|
| 2 |
+
requires = ["setuptools>=64", "wheel"]
|
| 3 |
+
build-backend = "setuptools.build_meta"
|
| 4 |
+
|
| 5 |
+
[project]
|
| 6 |
+
name = "MOSAICapp"
|
| 7 |
+
version = "0.1.0"
|
| 8 |
+
description = "MOSAICapp: Application for Mapping of Subjective Accounts into Interpreted Clusters"
|
| 9 |
+
readme = "README.md"
|
| 10 |
+
license = {text = "MIT"}
|
| 11 |
+
requires-python = ">=3.9"
|
| 12 |
+
authors = [
|
| 13 |
+
{name = "Romy Beauté", email = "r.beaut@sussex.ac.uk"},
|
| 14 |
+
]
|
| 15 |
+
keywords = [
|
| 16 |
+
"topic modelling",
|
| 17 |
+
"phenomenology",
|
| 18 |
+
"consciousness research",
|
| 19 |
+
"NLP",
|
| 20 |
+
"BERTopic",
|
| 21 |
+
]
|
| 22 |
+
classifiers = [
|
| 23 |
+
"Programming Language :: Python :: 3",
|
| 24 |
+
"License :: OSI Approved :: MIT License",
|
| 25 |
+
"Operating System :: OS Independent",
|
| 26 |
+
"Intended Audience :: Science/Research",
|
| 27 |
+
]
|
| 28 |
+
dependencies = [
|
| 29 |
+
"torch",
|
| 30 |
+
"streamlit>=1.37",
|
| 31 |
+
"pandas",
|
| 32 |
+
"numpy",
|
| 33 |
+
"nltk",
|
| 34 |
+
"bertopic",
|
| 35 |
+
"umap-learn",
|
| 36 |
+
"hdbscan",
|
| 37 |
+
"scikit-learn<1.6",
|
| 38 |
+
"sentence-transformers",
|
| 39 |
+
"datamapplot",
|
| 40 |
+
"huggingface_hub>=0.31.0",
|
| 41 |
+
"matplotlib",
|
| 42 |
+
]
|
| 43 |
+
|
| 44 |
+
[project.optional-dependencies]
|
| 45 |
+
dev = ["pytest"]
|
| 46 |
+
|
| 47 |
+
[project.urls]
|
| 48 |
+
Homepage = "https://github.com/romybeaute/MOSAICapp"
|
| 49 |
+
Repository = "https://github.com/romybeaute/MOSAICapp"
|
| 50 |
+
|
| 51 |
+
[tool.setuptools.packages.find]
|
| 52 |
+
include = ["mosaic_core*"]
|
| 53 |
+
|
| 54 |
+
[tool.pytest.ini_options]
|
| 55 |
+
testpaths = ["tests"]
|
setup.py
DELETED
|
@@ -1,33 +0,0 @@
|
|
| 1 |
-
import os
|
| 2 |
-
from setuptools import setup, find_packages
|
| 3 |
-
|
| 4 |
-
# Helper to read requirements.txt
|
| 5 |
-
def read_requirements():
|
| 6 |
-
if os.path.exists("requirements.txt"):
|
| 7 |
-
with open("requirements.txt") as f:
|
| 8 |
-
return [line.strip() for line in f if line.strip() and not line.startswith("#")]
|
| 9 |
-
return []
|
| 10 |
-
|
| 11 |
-
def parse_requirements(filename):
|
| 12 |
-
with open(filename, 'r') as f:
|
| 13 |
-
# Read lines, strip whitespace, filter out comments and pip flags
|
| 14 |
-
return [
|
| 15 |
-
line.strip()
|
| 16 |
-
for line in f
|
| 17 |
-
if line.strip()
|
| 18 |
-
and not line.startswith('#')
|
| 19 |
-
and not line.startswith('-')
|
| 20 |
-
]
|
| 21 |
-
|
| 22 |
-
setup(
|
| 23 |
-
name="MOSAICapp",
|
| 24 |
-
version="0.1.0",
|
| 25 |
-
description="MOSAICapp: Application for Mapping of Subjective Accounts into Interpreted Clusters",
|
| 26 |
-
author="Romy Beauté",
|
| 27 |
-
author_email="r.beaut@sussex.ac.uk",
|
| 28 |
-
url="https://github.com/romybeaute/MOSAICapp",
|
| 29 |
-
packages=find_packages(), # find 'mosaic_core' automatically
|
| 30 |
-
include_package_data=True,
|
| 31 |
-
install_requires=parse_requirements("requirements.txt"), # reads requirements.txt
|
| 32 |
-
python_requires=">=3.9",
|
| 33 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|