From 36f8d8dd3ad5191550d85f7828cd913b00d968e0 Mon Sep 17 00:00:00 2001 From: axelvonkamp Date: Mon, 19 Aug 2024 14:14:06 +0200 Subject: [PATCH] PyPI support --- conda-recipe/meta.yaml | 2 +- pyproject.toml | 18 ++++++++++++++++++ setup.py | 11 ++++++----- 3 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 pyproject.toml diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index 11568b9..43d90d4 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -1,4 +1,4 @@ -{% set version = '0.0.11' %} +{% set version = '0.0.12' %} package: name: optlang_enumerator diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..70bca86 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,18 @@ +[project] +name = "optlang_enumerator" +version = "0.0.12" +authors = [ + { name="Axel von Kamp", email="vonkamp@mpi-magdeburg.mpg.de" }, +] +description = "Module for enumerating minimal cut sets" +readme = "README.md" +requires-python = ">=3.7" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: Apache License 2.0", + "Operating System :: OS Independent", +] + +[project.urls] +Homepage = "https://github.com/cnapy-org/optlang_enumerator" +Issues = "https://github.com/cnapy-org/optlang_enumerator/issues" diff --git a/setup.py b/setup.py index 3dac083..6e403b5 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,13 @@ from setuptools import setup setup(name='optlang_enumerator', - version='0.0.11', - description='Enumeration of multiple solutions to a MILP with optlang.', - url='https://github.com/cnapy-org/optlang_enumerator.git', + version='0.0.12', + description='Module for enumerating minimal cut sets', + url='https://github.com/cnapy-org/optlang_enumerator', author='Axel von Kamp', - author_email='axelk1@gmx.de', + author_email='vonkamp@mpi-magdeburg.mpg.de', license='Apache License 2.0', packages=['optlang_enumerator'], - install_requires=['numpy==1.23', 'scipy', 'cobra>=0.26.3', 'optlang', 'efmtool_link', 'sympy>=1.12', 'swiglpk'], + package_dir={'optlang_enumerator': 'optlang_enumerator'}, + install_requires=['numpy==1.23', 'scipy', 'cobra>=0.26.3', 'optlang', 'efmtool_link>=0.0.6', 'sympy>=1.12', 'swiglpk'], zip_safe=False)