Skip to content

Commit

Permalink
🚚 Rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Feb 29, 2024
1 parent 1f4b4a1 commit 5cf5ff2
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
- uses: Freed-Wu/update-aur-package@v1.0.11
if: startsWith(github.ref, 'refs/tags/')
with:
package_name: python-tree-sitter-lsp
package_name: python-lsp-tree-sitter
ssh_private_key: ${{secrets.AUR_SSH_PRIVATE_KEY}}

deploy-nur:
Expand Down
82 changes: 41 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
# tree-sitter-lsp

[![readthedocs](https://shields.io/readthedocs/tree-sitter-lsp)](https://tree-sitter-lsp.readthedocs.io)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/neomutt/tree-sitter-lsp/main.svg)](https://results.pre-commit.ci/latest/github/neomutt/tree-sitter-lsp/main)
[![github/workflow](https://github.com/neomutt/tree-sitter-lsp/actions/workflows/main.yml/badge.svg)](https://github.com/neomutt/tree-sitter-lsp/actions)
[![codecov](https://codecov.io/gh/neomutt/tree-sitter-lsp/branch/main/graph/badge.svg)](https://codecov.io/gh/neomutt/tree-sitter-lsp)
[![DeepSource](https://deepsource.io/gh/neomutt/tree-sitter-lsp.svg/?show_trend=true)](https://deepsource.io/gh/neomutt/tree-sitter-lsp)

[![github/downloads](https://shields.io/github/downloads/neomutt/tree-sitter-lsp/total)](https://github.com/neomutt/tree-sitter-lsp/releases)
[![github/downloads/latest](https://shields.io/github/downloads/neomutt/tree-sitter-lsp/latest/total)](https://github.com/neomutt/tree-sitter-lsp/releases/latest)
[![github/issues](https://shields.io/github/issues/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp/issues)
[![github/issues-closed](https://shields.io/github/issues-closed/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp/issues?q=is%3Aissue+is%3Aclosed)
[![github/issues-pr](https://shields.io/github/issues-pr/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp/pulls)
[![github/issues-pr-closed](https://shields.io/github/issues-pr-closed/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp/pulls?q=is%3Apr+is%3Aclosed)
[![github/discussions](https://shields.io/github/discussions/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp/discussions)
[![github/milestones](https://shields.io/github/milestones/all/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp/milestones)
[![github/forks](https://shields.io/github/forks/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp/network/members)
[![github/stars](https://shields.io/github/stars/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp/stargazers)
[![github/watchers](https://shields.io/github/watchers/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp/watchers)
[![github/contributors](https://shields.io/github/contributors/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp/graphs/contributors)
[![github/commit-activity](https://shields.io/github/commit-activity/w/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp/graphs/commit-activity)
[![github/last-commit](https://shields.io/github/last-commit/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp/commits)
[![github/release-date](https://shields.io/github/release-date/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp/releases/latest)

[![github/license](https://shields.io/github/license/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp/blob/main/LICENSE)
[![github/languages](https://shields.io/github/languages/count/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp)
[![github/languages/top](https://shields.io/github/languages/top/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp)
[![github/directory-file-count](https://shields.io/github/directory-file-count/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp)
[![github/code-size](https://shields.io/github/languages/code-size/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp)
[![github/repo-size](https://shields.io/github/repo-size/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp)
[![github/v](https://shields.io/github/v/release/neomutt/tree-sitter-lsp)](https://github.com/neomutt/tree-sitter-lsp)

[![pypi/status](https://shields.io/pypi/status/tree-sitter-lsp)](https://pypi.org/project/tree-sitter-lsp/#description)
[![pypi/v](https://shields.io/pypi/v/tree-sitter-lsp)](https://pypi.org/project/tree-sitter-lsp/#history)
[![pypi/downloads](https://shields.io/pypi/dd/tree-sitter-lsp)](https://pypi.org/project/tree-sitter-lsp/#files)
[![pypi/format](https://shields.io/pypi/format/tree-sitter-lsp)](https://pypi.org/project/tree-sitter-lsp/#files)
[![pypi/implementation](https://shields.io/pypi/implementation/tree-sitter-lsp)](https://pypi.org/project/tree-sitter-lsp/#files)
[![pypi/pyversions](https://shields.io/pypi/pyversions/tree-sitter-lsp)](https://pypi.org/project/tree-sitter-lsp/#files)
# lsp-tree-sitter

[![readthedocs](https://shields.io/readthedocs/lsp-tree-sitter)](https://lsp-tree-sitter.readthedocs.io)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/neomutt/lsp-tree-sitter/main.svg)](https://results.pre-commit.ci/latest/github/neomutt/lsp-tree-sitter/main)
[![github/workflow](https://github.com/neomutt/lsp-tree-sitter/actions/workflows/main.yml/badge.svg)](https://github.com/neomutt/lsp-tree-sitter/actions)
[![codecov](https://codecov.io/gh/neomutt/lsp-tree-sitter/branch/main/graph/badge.svg)](https://codecov.io/gh/neomutt/lsp-tree-sitter)
[![DeepSource](https://deepsource.io/gh/neomutt/lsp-tree-sitter.svg/?show_trend=true)](https://deepsource.io/gh/neomutt/lsp-tree-sitter)

[![github/downloads](https://shields.io/github/downloads/neomutt/lsp-tree-sitter/total)](https://github.com/neomutt/lsp-tree-sitter/releases)
[![github/downloads/latest](https://shields.io/github/downloads/neomutt/lsp-tree-sitter/latest/total)](https://github.com/neomutt/lsp-tree-sitter/releases/latest)
[![github/issues](https://shields.io/github/issues/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter/issues)
[![github/issues-closed](https://shields.io/github/issues-closed/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter/issues?q=is%3Aissue+is%3Aclosed)
[![github/issues-pr](https://shields.io/github/issues-pr/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter/pulls)
[![github/issues-pr-closed](https://shields.io/github/issues-pr-closed/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter/pulls?q=is%3Apr+is%3Aclosed)
[![github/discussions](https://shields.io/github/discussions/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter/discussions)
[![github/milestones](https://shields.io/github/milestones/all/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter/milestones)
[![github/forks](https://shields.io/github/forks/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter/network/members)
[![github/stars](https://shields.io/github/stars/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter/stargazers)
[![github/watchers](https://shields.io/github/watchers/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter/watchers)
[![github/contributors](https://shields.io/github/contributors/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter/graphs/contributors)
[![github/commit-activity](https://shields.io/github/commit-activity/w/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter/graphs/commit-activity)
[![github/last-commit](https://shields.io/github/last-commit/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter/commits)
[![github/release-date](https://shields.io/github/release-date/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter/releases/latest)

[![github/license](https://shields.io/github/license/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter/blob/main/LICENSE)
[![github/languages](https://shields.io/github/languages/count/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter)
[![github/languages/top](https://shields.io/github/languages/top/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter)
[![github/directory-file-count](https://shields.io/github/directory-file-count/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter)
[![github/code-size](https://shields.io/github/languages/code-size/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter)
[![github/repo-size](https://shields.io/github/repo-size/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter)
[![github/v](https://shields.io/github/v/release/neomutt/lsp-tree-sitter)](https://github.com/neomutt/lsp-tree-sitter)

[![pypi/status](https://shields.io/pypi/status/lsp-tree-sitter)](https://pypi.org/project/lsp-tree-sitter/#description)
[![pypi/v](https://shields.io/pypi/v/lsp-tree-sitter)](https://pypi.org/project/lsp-tree-sitter/#history)
[![pypi/downloads](https://shields.io/pypi/dd/lsp-tree-sitter)](https://pypi.org/project/lsp-tree-sitter/#files)
[![pypi/format](https://shields.io/pypi/format/lsp-tree-sitter)](https://pypi.org/project/lsp-tree-sitter/#files)
[![pypi/implementation](https://shields.io/pypi/implementation/lsp-tree-sitter)](https://pypi.org/project/lsp-tree-sitter/#files)
[![pypi/pyversions](https://shields.io/pypi/pyversions/lsp-tree-sitter)](https://pypi.org/project/lsp-tree-sitter/#files)

A core library to support language servers.

Expand Down Expand Up @@ -122,7 +122,7 @@ PKGBUILD:5:7-5:17:error: 'wrong_arch' is not one of ['any', 'pentium4', 'i486',

<!-- markdownlint-enable MD013 -->

![PKGBUILD](https://github.com/neomutt/tree-sitter-lsp/assets/32936898/58614996-bd8a-4e27-b573-87346c82ea2a)
![PKGBUILD](https://github.com/neomutt/lsp-tree-sitter/assets/32936898/58614996-bd8a-4e27-b573-87346c82ea2a)

Sometimes it will be more complicated:

Expand Down Expand Up @@ -153,7 +153,7 @@ $ mutt-language-server --check neomuttrc
neomuttrc:1:33-1:35:error: 'no' is not of type 'number'
```

![neomuttrc](https://github.com/neomutt/tree-sitter-lsp/assets/32936898/75ebf0c1-784a-43db-ae11-59783af57b4f)
![neomuttrc](https://github.com/neomutt/lsp-tree-sitter/assets/32936898/75ebf0c1-784a-43db-ae11-59783af57b4f)

We put the result to the json's `.set` not `.` just in order to reserve the
other keys for other usages.
Expand Down Expand Up @@ -203,7 +203,7 @@ mutt-language-server --generate-schema neomuttrc

<!-- markdownlint-enable MD013 -->

![hover](https://github.com/neomutt/tree-sitter-lsp/assets/32936898/22a0347e-3d4f-45c5-833b-e89225ce3b74)
![hover](https://github.com/neomutt/lsp-tree-sitter/assets/32936898/22a0347e-3d4f-45c5-833b-e89225ce3b74)

## References

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tree-sitter-lsp
# lsp-tree-sitter

```{autofile} ../../src/*/*.py
---
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
https://www.sphinx-doc.org/en/master/usage/configuration.html
"""

from tree_sitter_lsp import __version__ as version # type: ignore
from tree_sitter_lsp._metainfo import ( # type: ignore
from lsp_tree_sitter import __version__ as version # type: ignore
from lsp_tree_sitter._metainfo import ( # type: ignore
author,
copyright,
project,
Expand Down
10 changes: 5 additions & 5 deletions docs/resources/install.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Install

## [AUR](https://aur.archlinux.org/packages/python-tree-sitter-lsp)
## [AUR](https://aur.archlinux.org/packages/python-lsp-tree-sitter)

```sh
yay -S python-tree-sitter-lsp
yay -S python-lsp-tree-sitter
```

## [NUR](https://nur.nix-community.org/repos/Freed-Wu)
Expand All @@ -25,17 +25,17 @@ yay -S python-tree-sitter-lsp
(
python3.withPackages (
p: with p; [
nur.repos.Freed-Wu.tree-sitter-lsp
nur.repos.Freed-Wu.lsp-tree-sitter
]
)
)
}
```

## [PYPI](https://pypi.org/project/tree-sitter-lsp)
## [PYPI](https://pypi.org/project/lsp-tree-sitter)

```sh
pip install tree-sitter-lsp
pip install lsp-tree-sitter
```

See [requirements](requirements) to know `extra_requires`.
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
[project]
name = "tree-sitter-lsp"
name = "lsp-tree-sitter"
description = "a library to create language servers"
readme = "README.md"
# type_a | type_b
Expand Down Expand Up @@ -37,13 +37,13 @@ email = "wuzhenyu@ustc.edu"
text = "GPL v3"

[project.urls]
Homepage = "https://tree-sitter-lsp.readthedocs.io"
Download = "https://github.com/neomutt/tree-sitter-lsp/releases"
"Bug Report" = "https://github.com/neomutt/tree-sitter-lsp/issues"
Source = "https://github.com/neomutt/tree-sitter-lsp"
Homepage = "https://lsp-tree-sitter.readthedocs.io"
Download = "https://github.com/neomutt/lsp-tree-sitter/releases"
"Bug Report" = "https://github.com/neomutt/lsp-tree-sitter/issues"
Source = "https://github.com/neomutt/lsp-tree-sitter"

[tool.setuptools.package-data]
tree_sitter_lsp = ["py.typed", "assets/**"]
lsp_tree_sitter = ["py.typed", "assets/**"]

[tool.setuptools.dynamic.dependencies]
file = "requirements.txt"
Expand All @@ -66,10 +66,10 @@ file = "requirements/yaml.txt"
# end: scripts/update-pyproject.toml.pl

[tool.setuptools_scm]
write_to = "src/tree_sitter_lsp/_version.py"
write_to = "src/lsp_tree_sitter/_version.py"

[tool.setuptools-generate]
write-to = "src/tree_sitter_lsp/_metainfo.py"
write-to = "src/lsp_tree_sitter/_metainfo.py"

[tool.mdformat]
number = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
r"""Tree-sitter LSP
r"""LSP Tree-sitter
===================
"""

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
from typing import Literal

from tree_sitter_lsp.utils import get_paths
from lsp_tree_sitter.utils import get_paths

FILETYPE = Literal["python", "c"]

Expand Down

0 comments on commit 5cf5ff2

Please sign in to comment.