fix: add custom (built) buefy css to repo
this makes things simpler, and no real reason not to include it
This commit is contained in:
parent
4c0754ee01
commit
00fd484669
5 changed files with 9 additions and 24 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,6 +2,5 @@
|
||||||
*.pyc
|
*.pyc
|
||||||
dist/
|
dist/
|
||||||
docs/_build/
|
docs/_build/
|
||||||
src/wuttafarm/web/static/css/wuttafarm-buefy.css
|
|
||||||
style/dist/
|
style/dist/
|
||||||
style/node_modules/
|
style/node_modules/
|
||||||
|
|
|
||||||
|
|
@ -73,11 +73,3 @@ packages = ["src/wuttafarm"]
|
||||||
exclude = [
|
exclude = [
|
||||||
"style/node_modules/",
|
"style/node_modules/",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.hatch.build.targets.sdist.force-include]
|
|
||||||
# nb. this is necessary due to git ignoring this file (iiuc)
|
|
||||||
"src/wuttafarm/web/static/css/wuttafarm-buefy.css" = "src/wuttafarm/web/static/css/wuttafarm-buefy.css"
|
|
||||||
|
|
||||||
[tool.hatch.build.targets.wheel.force-include]
|
|
||||||
# nb. this is necessary due to git ignoring this file (iiuc)
|
|
||||||
"src/wuttafarm/web/static/css/wuttafarm-buefy.css" = "src/wuttafarm/web/static/css/wuttafarm-buefy.css"
|
|
||||||
|
|
|
||||||
|
|
@ -44,17 +44,13 @@ def main(global_config, **settings):
|
||||||
# make config objects
|
# make config objects
|
||||||
wutta_config = base.make_wutta_config(settings)
|
wutta_config = base.make_wutta_config(settings)
|
||||||
pyramid_config = base.make_pyramid_config(settings)
|
pyramid_config = base.make_pyramid_config(settings)
|
||||||
|
app = wutta_config.get_app()
|
||||||
|
|
||||||
# custom buefy css
|
# custom buefy css
|
||||||
app = wutta_config.get_app()
|
|
||||||
path = app.resource_path("wuttafarm.web.static:css/wuttafarm-buefy.css")
|
|
||||||
if os.path.exists(path):
|
|
||||||
|
|
||||||
# TODO: this is not robust enough, probably..but works for me/now
|
# TODO: this is not robust enough, probably..but works for me/now
|
||||||
wutta_config.setdefault(
|
wutta_config.setdefault(
|
||||||
"wuttaweb.liburl.buefy_css", "/wuttafarm/css/wuttafarm-buefy.css"
|
"wuttaweb.liburl.buefy_css", "/wuttafarm/css/wuttafarm-buefy.css"
|
||||||
)
|
)
|
||||||
|
|
||||||
# nb. ensure buefy version matches what we use for custom css
|
# nb. ensure buefy version matches what we use for custom css
|
||||||
wutta_config.setdefault("wuttaweb.libver.buefy", "0.9.29")
|
wutta_config.setdefault("wuttaweb.libver.buefy", "0.9.29")
|
||||||
wutta_config.setdefault("wuttaweb.libver.buefy_css", "0.9.29")
|
wutta_config.setdefault("wuttaweb.libver.buefy_css", "0.9.29")
|
||||||
|
|
|
||||||
1
src/wuttafarm/web/static/css/wuttafarm-buefy.css
Normal file
1
src/wuttafarm/web/static/css/wuttafarm-buefy.css
Normal file
File diff suppressed because one or more lines are too long
3
tasks.py
3
tasks.py
|
|
@ -22,9 +22,6 @@ def release(c, skip_tests=False):
|
||||||
if os.path.exists("dist"):
|
if os.path.exists("dist"):
|
||||||
shutil.rmtree("dist")
|
shutil.rmtree("dist")
|
||||||
|
|
||||||
# custom styles for buefy
|
|
||||||
update_style(c)
|
|
||||||
|
|
||||||
c.run("python -m build")
|
c.run("python -m build")
|
||||||
c.run("twine upload dist/*")
|
c.run("twine upload dist/*")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue