Skip to content

Commit 6956a42

Browse files
authored
Merge pull request #367 from maxfordham/tidy-up-config-files
Tidy-up-config-files
2 parents 950204a + 828af1c commit 6956a42

23 files changed

Lines changed: 911 additions & 2083 deletions

environment.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: ipyautoui-dev
2-
# channels priority
3-
# see https://bioconda.github.io/
4-
# conda-forge has highest prioriy
1+
name: ipyautoui-binder
2+
# NOTE: this is used for Binder only
3+
# required as repo2docker does not support pixi
4+
# https://repo2docker.readthedocs.io/en/latest/configuration/index.html
55
channels:
66
- defaults
77
- conda-forge
@@ -21,11 +21,8 @@ dependencies:
2121
- nb_black
2222
- pytest
2323
- altair # optional
24-
- halo # optional
2524
- plotly # optional
2625
- pip
2726
- pip:
28-
# - maplocal==0.2.1
29-
- pydantic-extra-types
3027
- pytest-examples
3128
- -e .

pixi.lock

Lines changed: 891 additions & 1986 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ dynamic = ["version"]
99
description = "wrapper that sits on top of ipywidgets and other ipy widget libraries to template / automate the creation of widget forms. Uses pydantic to create defined data-container and serialisation to JSON. Includes example patterns for adding new custom widgets."
1010
readme = "README.md"
1111
authors = [{ name = "John Gunstone", email = "gunstone.john@gmail.com" }]
12-
keywords = ["ipyautoui"]
12+
maintainers = [
13+
{ name = "John Gunstone", email = "gunstone.john@gmail.com" },
14+
{ name = "Olly Hensby", email = "o.hensby@maxfordham.com" },
15+
]
16+
keywords = ["ipyautoui", "ui", "ipywidgets", "pydantic", "jsonschema", "form"]
1317
classifiers = [
14-
"Development Status :: 2 - Pre-Alpha",
18+
"Development Status :: 4 - Beta",
1519
"Intended Audience :: Developers",
1620
"Natural Language :: English",
1721
"Programming Language :: Python :: 3.9",
@@ -20,14 +24,14 @@ dependencies = [
2024
"immutables",
2125
"ipython",
2226
"ipywidgets>8",
23-
"jupyterlab>=4.2",
2427
"ipydatagrid==1.3.2",
2528
"ipyfilechooser", # make optional
2629
"ipyvuetify", # make optional
2730
"markdown",
2831
"jsonref",
2932
"numpy",
3033
"openpyxl",
34+
"requests",
3135
"pandas",
3236
"pydantic>=2",
3337
"pydantic-settings",
@@ -40,6 +44,10 @@ dependencies = [
4044

4145
[project.urls]
4246
Homepage = "https://github.com/maxfordham/ipyautoui"
47+
Documentation = "https://maxfordham.github.io/ipyautoui/"
48+
Issues = "https://github.com/maxfordham/ipyautoui/issues"
49+
Changelog = "https://github.com/maxfordham/ipyautoui/releases"
50+
4351

4452
[tool.hatch.version]
4553
source = "vcs"
@@ -66,7 +74,6 @@ pytest_examples = "*"
6674

6775
[tool.pixi.feature.tests.dependencies]
6876
pytest = "*"
69-
# maplocal= "0.2.1"
7077
hatch = "*"
7178

7279
[tool.pixi.feature.dev.pypi-dependencies]
@@ -80,6 +87,7 @@ notebook_intelligence = "*"
8087
quarto = ">=1.6.40,<2"
8188

8289
[tool.pixi.feature.docs.dependencies]
90+
jupyterlab = "*"
8391
quarto = ">=1.6.40,<2"
8492

8593
[tool.pixi.environments]

src/ipyautoui/autodisplay_renderers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import traitlets as tr
3333
import typing as ty
3434
from io import StringIO, BytesIO
35-
from pydantic import HttpUrl, parse_obj_as
35+
from pydantic import HttpUrl
3636

3737

3838
# local imports
@@ -203,7 +203,7 @@ def __init__(self, path: ty.Union[pathlib.Path, HttpUrl, ty.Callable]):
203203
@tr.observe("path")
204204
def _observe_path(self, change):
205205
byts = getbytes(self.path)
206-
self.xl = pd.ExcelFile(BytesIO(byts))
206+
self.xl = pd.ExcelFile(BytesIO(byts)) # NOTE: requires openpyxl
207207

208208
@tr.observe("xl")
209209
def _observe_xl(self, change):

src/ipyautoui/custom/decision_branch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
a UI element that loads a folder for data caching, whilst storing a record of folders in use
2121
"""
2222

23-
# %run ../_dev_maplocal_params.py
2423

2524
# -
2625

src/ipyautoui/custom/editgrid.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# +
1919
"""General widget for editing data"""
2020

21-
# %run ../_dev_maplocal_params.py
2221

2322
# TODO: move editgrid.py to root ?
2423

src/ipyautoui/custom/filechooser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# ---
1515

1616
"""wrapper for ipyfilechooster.FileChooser"""
17-
# %run ../_dev_maplocal_params.py
1817

1918

2019
import pathlib

src/ipyautoui/custom/filesindir.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# name: python3
1515
# ---
1616

17-
# %run ../_dev_maplocal_params.py
1817
#
1918

2019

src/ipyautoui/custom/fileupload.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
"""file upload wrapper"""
1919

20-
# %run ../_dev_maplocal_params.py
2120

2221
# +
2322
import ipywidgets as w

src/ipyautoui/custom/halo_decorator.py

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)