Skip to content

Commit 3514bc1

Browse files
committed
fixed relative imports (hopefully)
1 parent 2af8dd6 commit 3514bc1

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

setup.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11

2-
import os, sys
2+
import os
3+
import sys
4+
35
here = (os.path.abspath(os.path.dirname(__file__)))
46
src = os.path.join(here, "src/fuzzylogic")
57
sys.path.append(src)
68

7-
from setuptools import find_packages
8-
from setuptools import setup
9-
10-
9+
from setuptools import find_packages, setup
1110

1211
meta={
1312
"name":"fuzzylogic",
1413
"description":"Fuzzy Logic for Python 3",
1514
"license":"MIT",
1615
"url":"https://github.com/amogorkon/fuzzylogic",
17-
"version":"0.1.2.post4",
16+
"version":"1.0.0",
1817
"author":"Anselm Kiefner",
1918
"author_email":"fuzzylogic-pypi@anselm.kiefner.de",
2019
"python_requires":">3.6",

src/fuzzylogic/classes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
import matplotlib.pyplot as plt
1111
import numpy as np
1212

13-
from combinators import MAX, MIN, bounded_sum, product, simple_disjoint_sum
14-
from functions import inv, normalize
13+
from .combinators import MAX, MIN, bounded_sum, product, simple_disjoint_sum
14+
from .functions import inv, normalize
1515

1616

1717
class FuzzyWarning(UserWarning):

src/fuzzylogic/combinators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
from numpy import multiply
1919

20-
from functions import noop
20+
from .functions import noop
2121

2222

2323
def MIN(*funcs):

src/fuzzylogic/hedges.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
These should work with Sets and functions.
66
"""
77

8-
from classes import Set
8+
from .classes import Set
99

1010

1111
def very(g):

0 commit comments

Comments
 (0)