-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to pyproject file for package setup
- Loading branch information
1 parent
2016f5d
commit e84fda6
Showing
2 changed files
with
35 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') | ||
|
@@ -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' | ||
] | ||
} | ||
) |