From 81bb0941e387422c6202c2cfb9499cef1aca3308 Mon Sep 17 00:00:00 2001 From: Tom Schierenbeck Date: Tue, 24 Oct 2023 14:21:43 +0200 Subject: [PATCH] Fixed bug in setup.py --- requirements.txt | 4 ++-- setup.py | 16 ++++++---------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/requirements.txt b/requirements.txt index a455868..ee22720 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -portion==2.4.1 -pydantic==2.4.2 +portion>=2.4.1 +pydantic>=2.4.2 diff --git a/setup.py b/setup.py index 996ba08..f71c47e 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ -from setuptools import setup -import os import codecs +import os + +from setuptools import setup long_description = """Probabilistic Machine Learning frequently requires descriptions of random variables and events that are shared among many packages.This package provides a common interface for describing random variables and events, @@ -22,13 +23,8 @@ def get_version(rel_path): raise RuntimeError("Unable to find version string.") -def requirements(): - with open('requirements.txt', 'r') as f: - return [_.strip() for _ in f.readlines() if _.strip()] - - setup(name='random_events', - version=get_version(os.path.join("src", "random_events", "__init__.py")), + version=get_version(os.path.join("src", "random_events", "__init__.py")), description='Define random events for probabilistic reasoning', long_description=long_description, long_description_content_type='text/plain', @@ -36,9 +32,9 @@ def requirements(): author_email='tom_sch@uni-bremen.de', url='https://github.com/tomsch420/random-events', packages=['random_events'], - install_requires=['setuptools'] + requirements(), + install_requires=["setuptools", "portion", "pydantic"], keywords='random events probabilistic machine learning probability theory variables', project_urls={'Source': 'https://github.com/tomsch420/random-events', 'Documentation': 'TODO'}, python_requires='>=3.6', - package_dir={'': 'src'},) + package_dir={'': 'src'}, )