new advanced example, small fixes
This commit is contained in:
@ -1 +1 @@
|
||||
__version__ = "0.1.0"
|
||||
__version__ = "0.2.0"
|
||||
|
Binary file not shown.
Binary file not shown.
BIN
pyscript_bootstrap_templates/__pycache__/create.cpython-310.pyc
Normal file
BIN
pyscript_bootstrap_templates/__pycache__/create.cpython-310.pyc
Normal file
Binary file not shown.
@ -323,8 +323,6 @@ class InputFile(InputElement):
|
||||
|
||||
name = f.name
|
||||
|
||||
print("loaded ", name)
|
||||
|
||||
uint8_array = Uint8Array.new(await f.arrayBuffer())
|
||||
buffer = io.BytesIO(bytearray(uint8_array))
|
||||
self._files[name] = buffer
|
||||
|
@ -1,10 +1,7 @@
|
||||
|
||||
from distutils.command.config import config
|
||||
from multiprocessing.sharedctypes import Value
|
||||
import pathlib
|
||||
from typing import List
|
||||
import argparse
|
||||
from numpy import isin
|
||||
import requests
|
||||
import json
|
||||
import shutil
|
||||
@ -53,6 +50,7 @@ def create_pwa_manifest(root_folder: pathlib.Path, **kwargs):
|
||||
|
||||
def create_pwa_service_worker(root_folder: pathlib.Path, **kwargs):
|
||||
version = f"{kwargs['title']}_{dt.datetime.utcnow().strftime('%Y%m%d%H%M')}"
|
||||
bslash = "\\"
|
||||
assets = [
|
||||
*[f'"./{p}",' for p in kwargs['paths']],
|
||||
'"./index.html",',
|
||||
@ -62,7 +60,7 @@ def create_pwa_service_worker(root_folder: pathlib.Path, **kwargs):
|
||||
'"./resources/pyscript.css",',
|
||||
'"./resources/pyscript.js",',
|
||||
'"./resources/pyscript.py",',
|
||||
f'"./resources/{kwargs["pyscript_bootstrap_templates_wheel_url"].split("/")[-1]}",', # FIXME: not completely os independent
|
||||
f'"./resources/{kwargs["pyscript_bootstrap_templates_wheel_url"].replace(bslash,"/").split("/")[-1]}",', # FIXME: not completely os independent
|
||||
'"./resources/pwa.js",',
|
||||
'"./site.js",'
|
||||
]
|
||||
@ -148,7 +146,9 @@ def generate_project_files(root_folder: pathlib.Path,
|
||||
paths = []
|
||||
|
||||
pyconfig = {
|
||||
"autoclose_loader": True,
|
||||
"splashscreen":{
|
||||
"autoclose": True,
|
||||
},
|
||||
"packages": [
|
||||
f"./resources/{pyscript_bootstrap_templates_wheel_url.split('/')[-1]}",
|
||||
*packages
|
||||
|
@ -0,0 +1,18 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: pyscript-bootstrap-templates
|
||||
Version: 0.1.0
|
||||
Summary: templates and basic python/pyscript wrappers for bootstrap 5
|
||||
Home-page: https://github.com/pypa/sampleproject
|
||||
Author: Jonas Weinz
|
||||
Author-email: author@example.com
|
||||
License: UNKNOWN
|
||||
Keywords: sample,setuptools,development
|
||||
Platform: UNKNOWN
|
||||
Requires-Python: >=3.7, <4
|
||||
Description-Content-Type: text/markdown
|
||||
License-File: LICENSE
|
||||
|
||||
# pyscript-bootstrap-templates
|
||||
|
||||
templates and pyscript wrappers for various bootstrap properties
|
||||
|
@ -0,0 +1,9 @@
|
||||
LICENSE
|
||||
README.md
|
||||
setup.py
|
||||
pyscript-bootstrap-templates/pyscript_bootstrap_templates.egg-info/PKG-INFO
|
||||
pyscript-bootstrap-templates/pyscript_bootstrap_templates.egg-info/SOURCES.txt
|
||||
pyscript-bootstrap-templates/pyscript_bootstrap_templates.egg-info/dependency_links.txt
|
||||
pyscript-bootstrap-templates/pyscript_bootstrap_templates.egg-info/entry_points.txt
|
||||
pyscript-bootstrap-templates/pyscript_bootstrap_templates.egg-info/requires.txt
|
||||
pyscript-bootstrap-templates/pyscript_bootstrap_templates.egg-info/top_level.txt
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1,2 @@
|
||||
[console_scripts]
|
||||
create_pyscript_bootstrap_app = create:main
|
@ -0,0 +1,2 @@
|
||||
pillow
|
||||
parse
|
@ -0,0 +1 @@
|
||||
|
Reference in New Issue
Block a user