diff --git a/.github/workflows/test-worker.yml b/.github/workflows/test-worker.yml index 054409b..5771a47 100644 --- a/.github/workflows/test-worker.yml +++ b/.github/workflows/test-worker.yml @@ -54,6 +54,7 @@ jobs: python -m poetry self add poetry-plugin-export python -m poetry export -f requirements.txt --output requirements.txt python -m pip install -r requirements.txt + python -m pip install . - name: Test with pytest run: | diff --git a/CITATION.cff b/CITATION.cff index 0c059c8..10f32cf 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -32,7 +32,7 @@ keywords: license: BSD-3-Clause message: If you use this software, please cite it using these metadata. repository-code: https://github.com/python-thread/thread -reposistory-artifact: https://pypi.org/project/thread +repository-artifact: https://pypi.org/project/thread title: thread type: software version: 1.0.0 diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index 7f4e92b..0000000 --- a/tests/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# Need this file, else it can't import src.thread diff --git a/tests/test_algorithm.py b/tests/test_algorithm.py index 9e5ed4d..cb89174 100644 --- a/tests/test_algorithm.py +++ b/tests/test_algorithm.py @@ -1,5 +1,6 @@ import random -from src.thread.utils import algorithm + +from thread.utils import algorithm def test_chunking_1(): diff --git a/tests/test_decorator.py b/tests/test_decorator.py index 54b4f24..c7733c7 100644 --- a/tests/test_decorator.py +++ b/tests/test_decorator.py @@ -1,5 +1,6 @@ import time -from src.thread import threaded, processor + +from thread import threaded, processor # >>>>>>>>>> Dummy Functions <<<<<<<<<< # diff --git a/tests/test_parallelprocessing.py b/tests/test_parallelprocessing.py index 53b68ac..4056d16 100644 --- a/tests/test_parallelprocessing.py +++ b/tests/test_parallelprocessing.py @@ -1,6 +1,8 @@ import time + import pytest -from src.thread import ParallelProcessing, exceptions + +from thread import ParallelProcessing, exceptions # >>>>>>>>>> Dummy Functions <<<<<<<<<< # diff --git a/tests/test_thread.py b/tests/test_thread.py index 47b5c20..687f68f 100644 --- a/tests/test_thread.py +++ b/tests/test_thread.py @@ -1,6 +1,8 @@ import time + import pytest -from src.thread import Thread, exceptions + +from thread import Thread, exceptions # >>>>>>>>>> Dummy Functions <<<<<<<<<< #