-
Notifications
You must be signed in to change notification settings - Fork 53
Use pyproject.toml (superseded) #779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7201144
Use pyproject.toml
almarklein 968296b
forgot to safe
almarklein a89107e
black
almarklein 872d9cf
tweak to allow sed to do its thing
almarklein 3fb0802
Merge branch 'main' into pyproject
almarklein be61a44
black that one file that ci complains about
almarklein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip setuptools | ||
# remove pygfx from install_requires, we install using pygfx@main | ||
sed -i "/pygfx/d" ./setup.py | ||
sed -i "/pygfx/d" ./pyproject.toml | ||
pip install git+https://github.com/pygfx/pygfx.git@main | ||
pip install -e ".[docs,notebook,imgui]" | ||
- name: Show wgpu backend | ||
|
@@ -68,7 +68,7 @@ jobs: | |
if: ${{ github.ref == 'refs/heads/main' }} | ||
# any push to main goes to fastplotlib.org/ver/dev | ||
run: echo "DOCS_VERSION_DIR=dev" >> "$GITHUB_ENV" | ||
|
||
# upload docs via SCP | ||
- name: Deploy docs | ||
uses: appleboy/[email protected] | ||
|
@@ -90,7 +90,7 @@ jobs: | |
with: | ||
message: | | ||
📚 Docs preview built and uploaded! https://www.fastplotlib.org/ver/${{ env.DOCS_VERSION_DIR }} | ||
|
||
# upload docs via SCP | ||
- name: Deploy docs release | ||
if: ${{ github.ref_type == 'tag' }} | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
__version__ = "0.5.0" | ||
|
||
version_info = tuple( | ||
int(i) if i.isnumeric() else i for i in __version__.split("+")[0].split(".") | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,84 @@ | ||
# ===== Project info | ||
|
||
[project] | ||
dynamic = ["version"] | ||
name = "fastplotlib" | ||
description = "Next-gen fast plotting library running on WGPU using the Pygfx rendering engine " | ||
readme = "README.md" | ||
license = { file = "LICENSE" } | ||
authors = [{ name = "Kushal Kolar" }, { name = "Caitlin Lewis" }] | ||
keywords = [ | ||
"visualization", | ||
"science", | ||
"interactive", | ||
"pygfx", | ||
"webgpu", | ||
"wgpu", | ||
"vulkan", | ||
"gpu", | ||
] | ||
requires-python = ">= 3.10" | ||
dependencies = [ | ||
"numpy>=1.23.0", | ||
"pygfx>=0.9.0", | ||
"wgpu>=0.20.0", | ||
"cmap>=0.1.3", | ||
# (this comment keeps this list multiline in VSCode) | ||
] | ||
|
||
[project.optional-dependencies] | ||
docs = [ | ||
"sphinx", | ||
"sphinx-gallery", | ||
"pydata-sphinx-theme", | ||
"glfw", | ||
"ipywidgets>=8.0.0,<9", | ||
"sphinx-copybutton", | ||
"sphinx-design", | ||
"pandoc", | ||
"imageio[ffmpeg]", | ||
"matplotlib", | ||
"scikit-learn", | ||
] | ||
notebook = [ | ||
"jupyterlab", | ||
"jupyter-rfb>=0.5.1", | ||
"ipywidgets>=8.0.0,<9", | ||
"sidecar", | ||
] | ||
tests = [ | ||
"pytest", | ||
"nbmake", | ||
"black", | ||
"scipy", | ||
"imageio[ffmpeg]", | ||
"scikit-learn", | ||
"tqdm", | ||
] | ||
imgui = ["imgui-bundle"] | ||
dev = ["fastplotlib[docs,notebook,tests,imgui]"] | ||
|
||
[project.urls] | ||
Homepage = "https://www.fastplotlib.org/" | ||
Documentation = "https://www.fastplotlib.org/" | ||
Repository = "https://github.com/fastplotlib/fastplotlib" | ||
|
||
# ===== Building | ||
|
||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
requires = ["flit_core >=3.2,<4"] | ||
kushalkolar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
build-backend = "flit_core.buildapi" | ||
|
||
# ===== Tooling | ||
|
||
# [tool.ruff] | ||
# line-length = 88 | ||
|
||
# [tool.ruff.lint] | ||
# select = ["F", "E", "W", "N", "B", "RUF", "TC"] | ||
# ignore = [ | ||
# "E501", # Line too long | ||
# "E731", # Do not assign a `lambda` expression, use a `def` | ||
# "B019", # Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks | ||
# "RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`" | ||
# ] |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.