Skip to content

Commit

Permalink
move to 'src' structure & migrate to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
whitews committed Mar 28, 2024
1 parent 64e086d commit 44be3c0
Show file tree
Hide file tree
Showing 56 changed files with 8 additions and 28 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ['setuptools>=61.0']
build-backend = 'setuptools.build_meta'
2 changes: 1 addition & 1 deletion run_tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import unittest

if __name__ == '__main__':
unittest.main('flowkit.tests')
unittest.main('tests')
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools import setup, find_packages

# read in version string
VERSION_FILE = 'flowkit/_version.py'
VERSION_FILE = 'src/flowkit/_version.py'
__version__ = None # to avoid inspection warning and check if __version__ was loaded
exec(open(VERSION_FILE).read())

Expand All @@ -31,7 +31,8 @@
setup(
name='FlowKit',
version=__version__, # noqa PyTypeChecker
packages=find_packages(exclude=["flowkit/tests/"]),
packages=['flowkit'],
package_dir={'': 'src'},
package_data={'': ['_resources/*.xsd']},
include_package_data=True,
description='Flow Cytometry Toolkit',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@
Tests for exporting to GatingML
"""
import unittest
import sys
import os
import glob
import re
from io import BytesIO
import numpy as np
import pandas as pd

sys.path.append(os.path.abspath('../..'))

from flowkit import Sample, Session

data1_fcs_path = 'data/gate_ref/data1.fcs'
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
Tests for custom gates in the GatingStrategy Class
"""
import copy
import os
import sys
import unittest
import flowkit as fk

sys.path.append(os.path.abspath('../..'))


class GatingStrategyCustomGatesTestCase(unittest.TestCase):
def setUp(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@
"""
import copy
import unittest
import sys
import os
import numpy as np
import pandas as pd

sys.path.append(os.path.abspath('../..'))

import flowkit as fk

data1_fcs_path = 'data/gate_ref/data1.fcs'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 1 addition & 5 deletions flowkit/tests/gatingml_tests.py → tests/gatingml_tests.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import unittest
import sys
import os
import glob
import re
import numpy as np
import pandas as pd

sys.path.append(os.path.abspath('../..'))

from flowkit import Sample, GatingStrategy, Session, gates, parse_gating_xml
from flowkit import Sample, GatingStrategy, Session, parse_gating_xml

data1_fcs_path = 'data/gate_ref/data1.fcs'
data1_sample = Sample(data1_fcs_path)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions flowkit/tests/sample_tests.py → tests/sample_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@
"""
import copy
import unittest
import sys
import os
from pathlib import Path
import numpy as np
import pandas as pd
import flowio
import warnings

sys.path.append(os.path.abspath('../..'))

from flowkit import Sample, transforms, read_multi_dataset_fcs
from flowkit.exceptions import DataOffsetDiscrepancyError

Expand Down
File renamed without changes.
4 changes: 0 additions & 4 deletions flowkit/tests/session_tests.py → tests/session_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@
"""
import copy
import unittest
import sys
import os
import numpy as np
import pandas as pd

sys.path.append(os.path.abspath('../..'))

from flowkit import Session, Sample, Matrix, Dimension, gates, transforms, load_samples
from .gating_strategy_prog_gate_tests import data1_sample, poly1_gate, poly1_vertices, comp_matrix_01, asinh_xform1

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 44be3c0

Please sign in to comment.