diff --git a/pyproject.toml b/pyproject.toml index 6402e6c..18d2fdc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,35 @@ [build-system] -requires = ["setuptools>=60"] -build-backend = "setuptools.build_meta" \ No newline at end of file +requires = ["setuptools>=61"] +build-backend = "setuptools.build_meta" + +[project] +name = "npg_porch" +requires-python = ">=3.8" +authors = [{name="Marina Gourtovaia", email="mg8@sanger.ac.uk"}, {name="Kieron Taylor", email="kt19@sanger.ac.uk"}] +description = "API server for tracking unique workflow executions" +readme = "README.md" +license = {file = "LICENSE.md"} +dependencies = [ + "aiosqlite", + "asyncpg", + "fastapi", + "pydantic < 2.0.0", + "pysqlite3", + "psycopg2-binary", + "sqlalchemy >= 1.4.29 <2", + "ujson", + "uvicorn", + "uuid" +] +dynamic = ["version"] + +[tools.setuptools] +packages = "find:" + +[project.optional-dependencies] +test = [ + "pytest", + "pytest-asyncio", + "requests", + "flake8" +] diff --git a/setup.py b/setup.py index addb276..88f955a 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -from setuptools import find_packages, setup +from setuptools import setup from distutils.util import convert_path version_path = convert_path('server/npg/version.py') @@ -7,36 +7,5 @@ exec(ver_file.read(), namespace) setup( - name='npg_porch', version=namespace['__version__'], - package_dir={ - '': 'server', - }, - packages=find_packages('server'), - license='GNU General Public License v3.0', - author='Wellcome Sanger Institute', - author_email='npg@sanger.ac.uk', - description='Work allocation and tracking for portable pipelines', - install_requires=[ - 'aiosqlite', - 'asyncpg', - 'fastapi', - 'pydantic<2', - 'pysqlite3', - 'psycopg2-binary', - 'sqlalchemy>=1.4.29,<2', - 'starlette>=0.22.0', - 'ujson', - 'uvicorn', - 'uuid' - ], - extras_require={ - 'test': [ - 'pytest', - 'pytest-asyncio', - 'requests', - 'flake8', - 'httpx' - ] - } )