Skip to content

Commit

Permalink
Switch to pyproject file for package setup
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdstrike committed Aug 15, 2023
1 parent 2016f5d commit e84fda6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 34 deletions.
36 changes: 34 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
[build-system]
requires = ["setuptools>=60"]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"

[project]
name = "npg_porch"
requires-python = ">=3.8"
authors = [{name="Marina Gourtovaia", email="[email protected]"}, {name="Kieron Taylor", email="[email protected]"}]
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"
]
33 changes: 1 addition & 32 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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')
Expand All @@ -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='[email protected]',
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'
]
}
)

0 comments on commit e84fda6

Please sign in to comment.