From 1a38ac1008acf15266c3b82977ff3c3bdf178198 Mon Sep 17 00:00:00 2001 From: Stefan Binder Date: Fri, 12 Apr 2024 17:06:29 +0200 Subject: [PATCH] chore: Update org name from altair-viz to vega (#3400) * chore: Update org name from altair-viz to vega * Revert wrong changes * Ruff format --- .github/ISSUE_TEMPLATE/bug-report.yml | 2 +- .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/workflows/build.yml | 2 +- CONTRIBUTING.md | 2 +- README.md | 6 +++--- RELEASING.md | 2 +- altair/utils/core.py | 2 +- altair/utils/schemapi.py | 2 +- doc/about/roadmap.rst | 4 ++-- doc/conf.py | 2 +- doc/getting_started/getting_help.rst | 6 +++--- doc/getting_started/installation.rst | 6 +++--- doc/getting_started/resources.rst | 2 +- doc/index.rst | 8 ++++---- doc/releases/changes.rst | 2 +- doc/user_guide/display_frontends.rst | 2 +- doc/user_guide/encodings/channels.rst | 2 +- doc/user_guide/internals.rst | 2 +- doc/user_guide/jupyter_chart.rst | 2 +- doc/user_guide/marks/geoshape.rst | 2 +- doc/user_guide/transform/filter.rst | 2 +- paper/paper.md | 2 +- pyproject.toml | 2 +- tests/utils/test_dataframe_interchange.py | 2 +- tools/generate_schema_wrapper.py | 2 +- tools/schemapi/schemapi.py | 2 +- 26 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index eb1c512c4..b9112fb45 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -9,7 +9,7 @@ body: Note that since Altair is a Python wrapper around the Vega-Lite visualization grammar, [most bugs should be reported directly to Vega-Lite](https://github.com/vega/vega-lite/issues). You can click the Action Button (`...`) of your Altair chart and "Open in Vega Editor" to see if you get the same error in the Vega Editor. - If you can't reproduce the bug in the Vega Editor, then make sure you are using [the latest version of Altair](https://github.com/altair-viz/altair/releases) and search for duplicate issues before filling out the form below. + If you can't reproduce the bug in the Vega Editor, then make sure you are using [the latest version of Altair](https://github.com/vega/altair/releases) and search for duplicate issues before filling out the form below. - type: textarea id: what-happened attributes: diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 81569d8d9..91860977e 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -4,5 +4,5 @@ contact_links: url: https://stackoverflow.com/tags/altair about: Please ask questions such as "How do I do X?" or "Why does this not work?" on Stack Overflow using the `altair` tag. - name: Discussion - url: https://github.com/altair-viz/altair/discussions + url: https://github.com/vega/altair/discussions about: If you want to discuss a topic or ask a question that is not a good fit for Stack Overflow, please open a new disscussion here on GitHub. diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 843f16f33..73bb570c9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,7 +36,7 @@ jobs: # We uninstall pyarrow and vegafusion for one job to test that we have not # accidentally introduced a hard dependency on these libraries. # Uninstalling for Python 3.8 is an arbitrary choice. - # Also see https://github.com/altair-viz/altair/pull/3114 + # Also see https://github.com/vega/altair/pull/3114 if: ${{ matrix.python-version == '3.8' }} run: | pip uninstall -y pyarrow vegafusion vegafusion-python-embed diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e433f629c..2e573cce8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,7 +1,7 @@ # Feedback and Contribution We welcome any input, feedback, bug reports, and contributions via [Altair's -GitHub Repository](http://github.com/altair-viz/altair/). In particular, we +GitHub Repository](http://github.com/vega/altair/). In particular, we welcome companion efforts from other visualization libraries to render the Vega-Lite specifications output by Altair. We see this portion of the effort as much bigger than Altair itself: the Vega and Vega-Lite specifications are diff --git a/README.md b/README.md index e18c9dce9..e426770a9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Vega-Altair -[![github actions](https://github.com/altair-viz/altair/workflows/build/badge.svg)](https://github.com/altair-viz/altair/actions?query=workflow%3Abuild) +[![github actions](https://github.com/vega/altair/workflows/build/badge.svg)](https://github.com/vega/altair/actions?query=workflow%3Abuild) [![typedlib_mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://www.mypy-lang.org) [![JOSS Paper](https://joss.theoj.org/papers/10.21105/joss.01057/status.svg)](https://joss.theoj.org/papers/10.21105/joss.01057) [![PyPI - Downloads](https://img.shields.io/pypi/dm/altair)](https://pypi.org/project/altair) @@ -105,7 +105,7 @@ For full installation instructions, please see [the documentation](https://altai If you have a question that is not addressed in the documentation, you can post it on [StackOverflow](https://stackoverflow.com/questions/tagged/altair) using the `altair` tag. -For bugs and feature requests, please open a [Github Issue](https://github.com/altair-viz/altair/issues). +For bugs and feature requests, please open a [Github Issue](https://github.com/vega/altair/issues). ## Development @@ -122,7 +122,7 @@ hatch run test ``` For information on how to contribute your developments back to the Vega-Altair repository, see -[`CONTRIBUTING.md`](https://github.com/altair-viz/altair/blob/main/CONTRIBUTING.md) +[`CONTRIBUTING.md`](https://github.com/vega/altair/blob/main/CONTRIBUTING.md) ## Citing Vega-Altair diff --git a/RELEASING.md b/RELEASING.md index ee3540a42..609f61f4d 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -61,4 +61,4 @@ pip package by the conda-forge bot (may take up to ~an hour): https://github.com/conda-forge/altair-feedstock/pulls -13. Publish a new release in https://github.com/altair-viz/altair/releases/ +13. Publish a new release in https://github.com/vega/altair/releases/ diff --git a/altair/utils/core.py b/altair/utils/core.py index baf1013f7..88d03b6e7 100644 --- a/altair/utils/core.py +++ b/altair/utils/core.py @@ -371,7 +371,7 @@ def to_list_if_array(val): # This is because Javascript parses date-only times in UTC, but # parses full ISO-8601 dates as local time, and dates in Vega and # Vega-Lite are displayed in local time by default. - # (see https://github.com/altair-viz/altair/issues/1027) + # (see https://github.com/vega/altair/issues/1027) df[col_name] = ( df[col_name].apply(lambda x: x.isoformat()).replace("NaT", "") ) diff --git a/altair/utils/schemapi.py b/altair/utils/schemapi.py index 11332a1ea..9325b3a70 100644 --- a/altair/utils/schemapi.py +++ b/altair/utils/schemapi.py @@ -269,7 +269,7 @@ def _json_path(err: jsonschema.exceptions.ValidationError) -> str: """Drop in replacement for the .json_path property of the jsonschema ValidationError class, which is not available as property for ValidationError with jsonschema<4.0.1. - More info, see https://github.com/altair-viz/altair/issues/3038 + More info, see https://github.com/vega/altair/issues/3038 """ path = "$" for elem in err.absolute_path: diff --git a/doc/about/roadmap.rst b/doc/about/roadmap.rst index 65142402c..d3756fbad 100644 --- a/doc/about/roadmap.rst +++ b/doc/about/roadmap.rst @@ -8,7 +8,7 @@ informed by the needs of the Vega-Altair community, and the priorities of the ac project contributors. It's designed to communicate the direction of the project, but it's not a commitment that these items will be completed in a particular timeframe. If you would like to help contribute to any of these areas, or suggest new ones, -please `start a discussion `_. +please `start a discussion `_. Vega-Altair is deeply integrated with other components in the Vega ecosystem, and as such many items on the roadmap will require work in other projects. @@ -107,7 +107,7 @@ Map Tile Support ---------------- We want Vega-Altair to provide first-class support for displaying map tiles from xyz tile providers like OpenStreetMap. We've released a first version of -`altair_tiles `_ to accomplish this. Feedback is very welcome! +`altair_tiles `_ to accomplish this. Feedback is very welcome! Scale/Performance Improvements ------------------------------ diff --git a/doc/conf.py b/doc/conf.py index 7c93d2eca..e7d7d2892 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -146,7 +146,7 @@ "icon_links": [ { "name": "GitHub", - "url": "https://github.com/altair-viz/altair", + "url": "https://github.com/vega/altair", "icon": "fab fa-github fa-lg", "type": "fontawesome", }, diff --git a/doc/getting_started/getting_help.rst b/doc/getting_started/getting_help.rst index e89fb7e08..807d2f11f 100644 --- a/doc/getting_started/getting_help.rst +++ b/doc/getting_started/getting_help.rst @@ -12,9 +12,9 @@ or by viewing the full site :ref:`genindex`. In addition to reading this documentation page, it can be helpful to also browse the `Vega-Lite documentation `_. -.. _GitHub: http://github.com/altair-viz/altair -.. _Git Issues: http://github.com/altair-viz/altair/issues +.. _GitHub: http://github.com/vega/altair +.. _Git Issues: http://github.com/vega/altair/issues .. _Vega: http://vega.github.io/vega .. _Vega-Lite: http://vega.github.io/vega-lite -.. _bugs and feature requests: https://github.com/altair-viz/altair/issues/new/choose +.. _bugs and feature requests: https://github.com/vega/altair/issues/new/choose .. _StackOverflow: https://stackoverflow.com/tags/altair diff --git a/doc/getting_started/installation.rst b/doc/getting_started/installation.rst index 86a124a01..27a5220b9 100644 --- a/doc/getting_started/installation.rst +++ b/doc/getting_started/installation.rst @@ -46,9 +46,9 @@ development version directly from GitHub using: .. code-block:: bash - pip install -e git+https://github.com/altair-viz/altair.git + pip install -e git+https://github.com/vega/altair.git -Please see `CONTRIBUTING.md `_ +Please see `CONTRIBUTING.md `_ for details on how to contribute to the Altair project. .. _conda: https://docs.conda.io/ @@ -56,4 +56,4 @@ for details on how to contribute to the Altair project. .. _vega_datasets: https://github.com/altair-viz/vega_datasets .. _JupyterLab: http://jupyterlab.readthedocs.io/ .. _Jupyter Notebook: https://jupyter-notebook.readthedocs.io/ -.. _Altair source repository: http://github.com/altair-viz/altair +.. _Altair source repository: http://github.com/vega/altair diff --git a/doc/getting_started/resources.rst b/doc/getting_started/resources.rst index ad507cba5..4a35f1eb9 100644 --- a/doc/getting_started/resources.rst +++ b/doc/getting_started/resources.rst @@ -3,7 +3,7 @@ Resources ========= -We hope to make it easier to find learning resources and projects related to Altair by listing them here. If you know of a project that should be added, please let us know by opening an `Issue on GitHub `_. +We hope to make it easier to find learning resources and projects related to Altair by listing them here. If you know of a project that should be added, please let us know by opening an `Issue on GitHub `_. .. _learning-resources: diff --git a/doc/index.rst b/doc/index.rst index a1648ac22..c4edeee50 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -59,11 +59,11 @@ Vega-Altair: Declarative Visualization in Python User Guide Examples API - Release Notes + Release Notes About -.. _GitHub: http://github.com/altair-viz/altair -.. _Git Issues: http://github.com/altair-viz/altair/issues +.. _GitHub: http://github.com/vega/altair +.. _Git Issues: http://github.com/vega/altair/issues .. _Vega-Lite: http://vega.github.io/vega-lite -.. _bugs and feature requests: https://github.com/altair-viz/altair/issues/new/choose +.. _bugs and feature requests: https://github.com/vega/altair/issues/new/choose .. _StackOverflow: https://stackoverflow.com/tags/altair diff --git a/doc/releases/changes.rst b/doc/releases/changes.rst index e2eb5d754..27b233978 100644 --- a/doc/releases/changes.rst +++ b/doc/releases/changes.rst @@ -3,4 +3,4 @@ Release Notes ============= -We have moved the release notes to GitHub. You can now find them `here `_. +We have moved the release notes to GitHub. You can now find them `here `_. diff --git a/doc/user_guide/display_frontends.rst b/doc/user_guide/display_frontends.rst index 813a43cc4..c860cc356 100644 --- a/doc/user_guide/display_frontends.rst +++ b/doc/user_guide/display_frontends.rst @@ -177,7 +177,7 @@ Package The above mentioned frameworks all require you to run a web application on a server if you want to share your work with others. A web application gives you a lot of flexibility, you can for example fetch data from a database based on the value of a dropdown menu in the dashboard. However, it comes with some complexity as well. For use cases where the interactivity provided by Altair itself is enough, you can also use tools which generate HTML pages which do not require a web server such as `Quarto `_ or `Jupyter Book `_. -If you are using a dashboarding package that is not listed here, please `open an issue `_ on GitHub so that we can add it. +If you are using a dashboarding package that is not listed here, please `open an issue `_ on GitHub so that we can add it. .. _display-general: diff --git a/doc/user_guide/encodings/channels.rst b/doc/user_guide/encodings/channels.rst index 27e886d30..e0e00cb29 100644 --- a/doc/user_guide/encodings/channels.rst +++ b/doc/user_guide/encodings/channels.rst @@ -163,7 +163,7 @@ The same approach works for other mark types, like stacked areas charts. Note that unlike the ``sort`` parameter to positional encoding channels, the :class:`Order` channel cannot take a list of values to sort by and is not automatically sorted when an ordered pandas categorical column is passed. -If we want to sort stacked segments in a custom order, we can `follow the approach in this issue comment `_, although there might be edge cases where this is not fully supported. This workaround also makes the order of the segments align with the order that the colors shows up in a legend that uses custom sorting for the color domain. +If we want to sort stacked segments in a custom order, we can `follow the approach in this issue comment `_, although there might be edge cases where this is not fully supported. This workaround also makes the order of the segments align with the order that the colors shows up in a legend that uses custom sorting for the color domain. For line marks, the :class:`Order` channel encodes the order in which data points are connected. This can be useful for creating a scatter plot that draws lines between the dots using a different field than the x and y axes. diff --git a/doc/user_guide/internals.rst b/doc/user_guide/internals.rst index c5773dad2..ca1f217c7 100644 --- a/doc/user_guide/internals.rst +++ b/doc/user_guide/internals.rst @@ -110,7 +110,7 @@ Altair's python object structure and Vega-Lite's schema definition structure. One of the nice features of Altair is that this low-level object hierarchy is not constructed by hand, but rather *programmatically generated* from the Vega-Lite schema, using the ``generate_schema_wrapper.py`` script that you can find in -`Altair's repository `_. +`Altair's repository `_. This auto-generation of code propagates descriptions from the vega-lite schema into the Python class docstrings, from which the `API Reference `_ diff --git a/doc/user_guide/jupyter_chart.rst b/doc/user_guide/jupyter_chart.rst index d00327f3d..c3c8ce255 100644 --- a/doc/user_guide/jupyter_chart.rst +++ b/doc/user_guide/jupyter_chart.rst @@ -20,7 +20,7 @@ Tested environments include: .. note:: If you try ``JupyterChart`` in another environment that supports Jupyter Widgets, - `let us know how it goes `_ so that we can keep + `let us know how it goes `_ so that we can keep this list up to date. Basic Usage diff --git a/doc/user_guide/marks/geoshape.rst b/doc/user_guide/marks/geoshape.rst index 7ab54b411..37aee0567 100644 --- a/doc/user_guide/marks/geoshape.rst +++ b/doc/user_guide/marks/geoshape.rst @@ -466,7 +466,7 @@ The :class:`FacetChart` pattern, accessible via the :meth:`Chart.facet` method provides a convenient interface for a particular type of horizontal or vertical concatenation of a dataset where one field contain multiple ``variables``. -Unfortunately, until https://github.com/altair-viz/altair/issues/2369 is resolved +Unfortunately, until https://github.com/vega/altair/issues/2369 is resolved regular faceting will not work for geographic visualization: .. altair-plot:: diff --git a/doc/user_guide/transform/filter.rst b/doc/user_guide/transform/filter.rst index df114d1c6..3fca3f196 100644 --- a/doc/user_guide/transform/filter.rst +++ b/doc/user_guide/transform/filter.rst @@ -170,7 +170,7 @@ selection. This can be accomplished using the various logical operand classes: - :class:`~LogicalNotPredicate` These are not yet part of the Altair interface -(see `Issue 695 `_) +(see `Issue 695 `_) but can be constructed explicitly; for example, here we plot US population distributions for all data *except* the years 1950-1960, by applying a ``LogicalNotPredicate`` schema to a ``FieldRangePredicate``: diff --git a/paper/paper.md b/paper/paper.md index a637c60ba..208c1682b 100644 --- a/paper/paper.md +++ b/paper/paper.md @@ -102,6 +102,6 @@ on the bar chart. The selections drive filters in the other plot. The code for t # Acknowledgements We thank the many contributors that created examples, wrote documentation, and reported bugs. You can find [an up-to-date -list of contributors on GitHub](https://github.com/altair-viz/altair/graphs/contributors). +list of contributors on GitHub](https://github.com/vega/altair/graphs/contributors). # References diff --git a/pyproject.toml b/pyproject.toml index f03b1b721..057ee6c98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ classifiers = [ [project.urls] Documentation = "https://altair-viz.github.io" -Source = "https://github.com/altair-viz/altair" +Source = "https://github.com/vega/altair" [project.optional-dependencies] all = [ diff --git a/tests/utils/test_dataframe_interchange.py b/tests/utils/test_dataframe_interchange.py index 9803a0833..b5b69c6db 100644 --- a/tests/utils/test_dataframe_interchange.py +++ b/tests/utils/test_dataframe_interchange.py @@ -24,7 +24,7 @@ def windows_has_tzdata(): # Skip test on Windows when the tz database is not configured. -# See https://github.com/altair-viz/altair/issues/3050. +# See https://github.com/vega/altair/issues/3050. @pytest.mark.skipif( sys.platform == "win32" and not windows_has_tzdata(), reason="Timezone database is not installed on Windows", diff --git a/tools/generate_schema_wrapper.py b/tools/generate_schema_wrapper.py index fdd73df54..eae1eae69 100644 --- a/tools/generate_schema_wrapper.py +++ b/tools/generate_schema_wrapper.py @@ -803,7 +803,7 @@ def _create_encode_signature( # dict stands for the return types of alt.datum, alt.value as well as # the dictionary representation of an encoding channel class. See - # discussions in https://github.com/altair-viz/altair/pull/3208 + # discussions in https://github.com/vega/altair/pull/3208 # for more background. union_types = ["str", field_class_name, "dict"] docstring_union_types = ["str", rst_syntax_for_class(field_class_name), "Dict"] diff --git a/tools/schemapi/schemapi.py b/tools/schemapi/schemapi.py index 829f477cf..29da970ec 100644 --- a/tools/schemapi/schemapi.py +++ b/tools/schemapi/schemapi.py @@ -267,7 +267,7 @@ def _json_path(err: jsonschema.exceptions.ValidationError) -> str: """Drop in replacement for the .json_path property of the jsonschema ValidationError class, which is not available as property for ValidationError with jsonschema<4.0.1. - More info, see https://github.com/altair-viz/altair/issues/3038 + More info, see https://github.com/vega/altair/issues/3038 """ path = "$" for elem in err.absolute_path: