From 34279b0276a3244f0cca3f5227c959866ddcf4a0 Mon Sep 17 00:00:00 2001 From: carrascomj Date: Wed, 27 Jan 2021 12:08:04 +0100 Subject: [PATCH] chore: change setup management --- ecgem/__init__.py | 2 +- setup.cfg | 27 ++++++++++++++++++++++++++- setup.py | 20 +++----------------- 3 files changed, 30 insertions(+), 19 deletions(-) diff --git a/ecgem/__init__.py b/ecgem/__init__.py index e7e3eae..8750c2b 100644 --- a/ecgem/__init__.py +++ b/ecgem/__init__.py @@ -1 +1 @@ -from .dirt import from_copy_number, from_mmol_gDW +from .io import from_copy_number, from_mmol_gDW diff --git a/setup.cfg b/setup.cfg index 1016f09..0be4377 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,28 @@ +[metadata] +name = ecgem +description = Enzyme Constraint genome-scale models +keywords = + python + metabolic-models + bioinformatics + systems-biology +long_description = file: README.md +version = 0.0.1 + +[options] +zip_safe = True +install_requires = + cobra~=0.20.0 + pandas~=1.1.5 +packages = find: + +[options.extras_require] +dev = + black + isort + tox + pytest + [flake8] max-line-length = 88 -exlude = __init__.py +exclude = __init__.py diff --git a/setup.py b/setup.py index 7ed44b8..7f1a176 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,4 @@ -from setuptools import setup, find_packages +from setuptools import setup - -def readme(): - with open("README.md") as f: - return f.read() - - -setup( - name="ecgem", - version="0.0.1", - description="Enzyme Constraint genome-scale models", - keywords="python metabolic-models bioinformatics systems-biology", - license="MIT", - packages=find_packages(), - install_requires=["cobra==0.20.0", "pandas==1.1.5"], - zip_safe=False, -) +if __name__ == "__main__": + setup()