From db55f4257a00c2b184e423ebd4282e7810876eea Mon Sep 17 00:00:00 2001 From: Abe Arab Date: Wed, 29 Jan 2025 21:12:20 -0800 Subject: [PATCH] Add pyproject.toml for Poetry configuration and remove setup.py --- pyproject.toml | 30 ++++++++++++++++++++++++++++++ screenpro/__init__.py | 5 ----- setup.py | 36 ------------------------------------ 3 files changed, 30 insertions(+), 41 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..f55322c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,30 @@ +[tool.poetry] +name = "ScreenPro2" +version = "0.5.0" +description = "Flexible analysis of high-content CRISPR screening" +authors = [ + "Abe Arab " +] +license = "MIT" +readme = "README.md" +homepage = "https://github.com/ArcInstitute/ScreenPro2" +repository = "https://github.com/ArcInstitute/ScreenPro2" +keywords = ["CRISPR", "screening", "bioinformatics"] +packages = [ + { include = "screenpro" }, + { include = "pyproject.toml" }, +] + +[tool.poetry.dependencies] +python = ">=3.9" + +[tool.poetry.scripts] +screenpro = "screenpro.main:main" + +[tool.poetry.group.test.dependencies] +pytest = "*" +tomli = "*" + +[build-system] +requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"] +build-backend = "poetry_dynamic_versioning.backend" \ No newline at end of file diff --git a/screenpro/__init__.py b/screenpro/__init__.py index 13123b4..7aa5592 100644 --- a/screenpro/__init__.py +++ b/screenpro/__init__.py @@ -29,8 +29,3 @@ from .ngs import GuideCounter from .assays import PooledScreens, GImaps from .dashboard import DrugScreenDashboard - - -__version__ = "0.4.18" -__author__ = "Abe Arab" -__email__ = 'abea@arcinstitute.org' # "abarbiology@gmail.com" diff --git a/setup.py b/setup.py deleted file mode 100644 index 973102f..0000000 --- a/setup.py +++ /dev/null @@ -1,36 +0,0 @@ -from setuptools import setup, find_packages -from screenpro.__init__ import __version__, __author__, __email__ -from pathlib import Path - -this_directory = Path(__file__).parent -long_description = (this_directory / "README.md").read_text() - -setup( - python_requires='>=3.9', - name='ScreenPro2', - description="Flexible analysis of high-content CRISPR screening", - long_description=long_description, - long_description_content_type='text/markdown', - license="MIT License", - - version=__version__, - author=__author__, - author_email=__email__, - maintainer=__author__, - maintainer_email=__email__, - - url='https://github.com/ArcInstitute/ScreenPro2', - packages=find_packages(include=['screenpro', 'screenpro.*']), - entry_points={ - "console_scripts": ["screenpro=screenpro.main:main"], - }, - classifiers=[ - 'Intended Audience :: Science/Research', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - - ] -)