Replies: 1 comment
-
Hi @belamu, The publish.yml workflow triggers the PyPI upload. This is where you can look for details. As far as I know, this simply zips the nicegui directory according to pyproject.toml. The code in main.py contains the NiceGUI website and is irrelevant for PyPI. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
nicegui got packaged in nixpkgs and it builds without errors.
Unfortunately when it is run, it does not find any static files.
You can read all the details in PR 383925 with an solution attempt in PR 386199.
Of course a solution proposment in this PR would be most helpful. But since most nicegui people are not nix people, you could already help me a lot if you could describe how the static files find their way into the pypy package.
What I have figured out so far:
The static files in a virtualenv installation are in
.venv/lib/python3.12/site-packages/nicegui/static
. Also if I download a source distribution from pypy I also find static files in a subdirectory.In the nix-installation with a nix-shell I just found
/nix/store/kadadmsgpkvqqgfblpx711va3qbyr03q-python3-3.12.9-env/bin/nicegui-pack
and [...]/bin/.nicegui-pack-wrapped but [...]/lib has no nicegui files.
The static files are added in main.py in the line
app.add_static_files('/static', str(Path(__file__).parent / 'website' / 'static'))
From some forum threads about poetry I understood that those non-python files need to be mentioned in an
include
option but that does not exist inpyproject.toml
.Beta Was this translation helpful? Give feedback.
All reactions