pearmut 0.0.1a2__tar.gz → 0.0.2a1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pearmut
3
- Version: 0.0.1a2
3
+ Version: 0.0.2a1
4
4
  Summary: A tool for evaluation of model outputs, primarily MT.
5
5
  Author-email: Vilém Zouhar <vilem.zouhar@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pearmut
3
- Version: 0.0.1a2
3
+ Version: 0.0.2a1
4
4
  Summary: A tool for evaluation of model outputs, primarily MT.
5
5
  Author-email: Vilém Zouhar <vilem.zouhar@gmail.com>
6
6
  License: MIT
@@ -10,10 +10,10 @@ server/model.py
10
10
  server/protocols.py
11
11
  server/run.py
12
12
  server/utils.py
13
- server/../static/dashboard.bundle.js
14
- server/../static/dashboard.html
15
- server/../static/index.html
16
- server/../static/pointwise.bundle.js
17
- server/../static/pointwise.html
18
- server/../static/assets/favicon.svg
19
- server/../static/assets/style.css
13
+ server/static/dashboard.bundle.js
14
+ server/static/dashboard.html
15
+ server/static/index.html
16
+ server/static/pointwise.bundle.js
17
+ server/static/pointwise.html
18
+ server/static/assets/favicon.svg
19
+ server/static/assets/style.css
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pearmut"
3
- version = "0.0.1a2"
3
+ version = "0.0.2a1"
4
4
  description = "A tool for evaluation of model outputs, primarily MT."
5
5
  readme = "README.md"
6
6
  license = { text = "MIT" }
@@ -37,10 +37,10 @@ requires = ["setuptools>=61.0", "wheel"]
37
37
  build-backend = "setuptools.build_meta"
38
38
 
39
39
  [tool.setuptools.package-data]
40
- "pearmut" = ["../static/**"]
40
+ "pearmut" = ["static/**"]
41
41
 
42
- # rm -rf src/web/static/; npm install src/web/ --prefix src/web/; npm run build --prefix src/web/
43
- # rm -rf src/{build,dist}/*; python3 -m build src/
42
+ # rm -rf src/server/static/; npm install src/web/ --prefix src/web/; npm run build --prefix src/web/
43
+ # rm -rf src/{build,dist,pearmut.egg-info}/*; python3 -m build src/
44
44
  # python3 -m twine upload src/dist/* -u __token__
45
45
 
46
46
  # pip install -e src/ --config-settings editable_mode=strict
@@ -12,8 +12,7 @@ from pydantic import BaseModel
12
12
  from .protocols import get_next_item, reset_task, log_response
13
13
  from .utils import ROOT, load_progress_data, save_progress_data
14
14
 
15
- os.makedirs("data/outputs", exist_ok=True)
16
-
15
+ os.makedirs(f"{ROOT}/data/outputs", exist_ok=True)
17
16
 
18
17
  app = FastAPI()
19
18
  app.add_middleware(
@@ -209,4 +208,9 @@ async def _download_progress(
209
208
 
210
209
  return JSONResponse(content=output, status_code=200)
211
210
 
212
- app.mount("/", StaticFiles(directory="src/static", html=True), name="static")
211
+
212
+ app.mount(
213
+ "/",
214
+ StaticFiles(directory=f"{os.path.dirname(os.path.abspath(__file__))}/static/" , html=True, follow_symlink=True),
215
+ name="static",
216
+ )
File without changes
File without changes
File without changes
File without changes
File without changes