diff --git a/requirements.txt b/requirements.txt
index 8f1f68b..2a6cded 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -3,5 +3,5 @@ pytest>=3.6
 pytest-cov>=2.6
 hypothesis>=3.23.0
 travis-sphinx>=2.1.0
-Sphinx>=1.7.5
-sphinx-rtd-theme>=0.2.4
+Sphinx>=1.8.1
+sphinx-rtd-theme>=0.4.3
diff --git a/sdds/reader.py b/sdds/reader.py
index 94927cf..fcf0854 100644
--- a/sdds/reader.py
+++ b/sdds/reader.py
@@ -9,8 +9,8 @@ Read sdds files.
 """
 from typing import IO, Any, List, Optional, Generator, Dict, Union, Tuple, Callable, Type
 import numpy as np
-from classes import (SddsFile, Column, Parameter, Definition, Array, Data, Description,
-                     ENCODING, NUMTYPES, NUMTYPES_CAST, NUMTYPES_SIZES)
+from sdds.classes import (SddsFile, Column, Parameter, Definition, Array, Data, Description,
+                          ENCODING, NUMTYPES, NUMTYPES_CAST, NUMTYPES_SIZES)
 
 
 def read_sdds(file_path: str) -> SddsFile:
diff --git a/sdds/writer.py b/sdds/writer.py
index b7e0f3b..982a237 100644
--- a/sdds/writer.py
+++ b/sdds/writer.py
@@ -10,8 +10,8 @@ Write sdds files.
 """
 from typing import IO, List, Union, Iterable
 import numpy as np
-from classes import (SddsFile, Column, Parameter, Definition, Array, Data, Description,
-                     ENCODING, NUMTYPES)
+from sdds.classes import (SddsFile, Column, Parameter, Definition, Array, Data, Description,
+                          ENCODING, NUMTYPES)
 
 
 def write_sdds(sdds_file: SddsFile, output_path: str) -> None:

Fix local imports
diff --git a/tests/context.py b/tests/context.py
index eb7395a..37e42ae 100644
--- a/tests/context.py
+++ b/tests/context.py
@@ -3,8 +3,4 @@ from os.path import abspath, join, dirname, pardir
 root_path = abspath(join(dirname(__file__), pardir))
 if root_path not in sys.path:
     sys.path.insert(0, root_path)
-sdds_path = join(root_path, "sdds")
-if sdds_path not in sys.path:
-    sys.path.insert(0, sdds_path)
-
 import sdds
diff --git a/tests/test_sdds.py b/tests/test_sdds.py
index e1bd2dd..5aa80f6 100644
--- a/tests/test_sdds.py
+++ b/tests/test_sdds.py
@@ -3,15 +3,15 @@ import io
 import pytest
 import numpy as np
 from . import context
-from reader import (
+from sdds.reader import (
     read_sdds,
     _gen_words,
     _get_def_as_dict,
     _read_header,
     _sort_definitions,
 )
-from writer import write_sdds, _sdds_def_as_str
-from classes import Parameter, Column, Array
+from sdds.writer import write_sdds, _sdds_def_as_str
+from sdds.classes import Parameter, Column, Array
 
 
 CURRENT_DIR = os.path.dirname(__file__)

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest
3.9
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
alabaster==0.7.16
attrs==25.3.0
babel==2.17.0
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
coverage==7.8.0
docutils==0.21.2
exceptiongroup==1.2.2
ghp-import==2.1.0
hypothesis==6.130.5
idna==3.10
imagesize==1.4.1
importlib_metadata==8.6.1
iniconfig==2.1.0
Jinja2==3.1.6
MarkupSafe==3.0.2
numpy==2.0.2
packaging==24.2
pluggy==1.5.0
Pygments==2.19.1
pytest==8.3.5
pytest-cov==6.0.0
python-dateutil==2.9.0.post0
requests==2.32.3
-e git+https://github.com/pylhc/sdds.git@78dd51515a05e5ed560de3bf7cc5d3927399b6c1#egg=sdds
six==1.17.0
snowballstemmer==2.2.0
sortedcontainers==2.4.0
Sphinx==7.4.7
sphinx-rtd-theme==3.0.2
sphinxcontrib-applehelp==2.0.0
sphinxcontrib-devhelp==2.0.0
sphinxcontrib-htmlhelp==2.1.0
sphinxcontrib-jquery==4.1
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==2.0.0
sphinxcontrib-serializinghtml==2.0.0
tomli==2.2.1
travis-sphinx==2.2.1
urllib3==2.3.0
zipp==3.21.0

name: sdds
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - alabaster==0.7.16
      - attrs==25.3.0
      - babel==2.17.0
      - certifi==2025.1.31
      - charset-normalizer==3.4.1
      - click==8.1.8
      - coverage==7.8.0
      - docutils==0.21.2
      - exceptiongroup==1.2.2
      - ghp-import==2.1.0
      - hypothesis==6.130.5
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==8.6.1
      - iniconfig==2.1.0
      - jinja2==3.1.6
      - markupsafe==3.0.2
      - numpy==2.0.2
      - packaging==24.2
      - pluggy==1.5.0
      - pygments==2.19.1
      - pytest==8.3.5
      - pytest-cov==6.0.0
      - python-dateutil==2.9.0.post0
      - requests==2.32.3
      - six==1.17.0
      - snowballstemmer==2.2.0
      - sortedcontainers==2.4.0
      - sphinx==7.4.7
      - sphinx-rtd-theme==3.0.2
      - sphinxcontrib-applehelp==2.0.0
      - sphinxcontrib-devhelp==2.0.0
      - sphinxcontrib-htmlhelp==2.1.0
      - sphinxcontrib-jquery==4.1
      - sphinxcontrib-jsmath==1.0.1
      - sphinxcontrib-qthelp==2.0.0
      - sphinxcontrib-serializinghtml==2.0.0
      - tomli==2.2.1
      - travis-sphinx==2.2.1
      - urllib3==2.3.0
      - zipp==3.21.0
prefix: /opt/conda/envs/sdds

tests/test_sdds.py::test_sdds_write_read tests/test_sdds.py::test_read_word tests/test_sdds.py::test_read_no_more tests/test_sdds.py::test_def_as_dict tests/test_sdds.py::test_sort_defs tests/test_sdds.py::test_read_header
sdds/writer.py requirements.txt sdds/reader.py
sdds/writer.py requirements.txt sdds/reader.py