Skip to content

Commit

Permalink
Fix package discovery to fix empty docs pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jank324 committed Sep 16, 2023
1 parent 776543d commit 1562496
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dist

test/ACHIP_EA1_2021.1351.001

build
distributions

docs/_build
2 changes: 1 addition & 1 deletion cheetah/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# flake8: noqa
from cheetah import converters
import cheetah.converters
from cheetah.accelerator import *
from cheetah.particles import *
2 changes: 1 addition & 1 deletion cheetah/converters/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# flake8: noqa
from . import astralavista, dontbmad, nocelot
from cheetah.converters import astralavista, dontbmad, nocelot
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pathlib import Path

from setuptools import setup
from setuptools import find_packages, setup

this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
Expand All @@ -17,7 +17,7 @@
),
long_description=long_description,
long_description_content_type="text/markdown",
packages=["cheetah"],
packages=[package for package in find_packages() if package.startswith("cheetah")],
python_requires=">=3.9",
install_requires=["matplotlib", "numpy", "scipy", "torch"],
)

0 comments on commit 1562496

Please sign in to comment.