Skip to content

Commit

Permalink
Fixed bug in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsch420 committed Oct 24, 2023
1 parent b3f5d30 commit 81bb094
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
portion==2.4.1
pydantic==2.4.2
portion>=2.4.1
pydantic>=2.4.2
16 changes: 6 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -22,23 +23,18 @@ 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',
author='Tom Schierenbeck',
author_email='[email protected]',
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'}, )

0 comments on commit 81bb094

Please sign in to comment.