-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from yeger00/poetry
Starting to add poetry
- Loading branch information
Showing
9 changed files
with
1,188 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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,26 @@ | ||
name: Publish Package | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: install poetry | ||
uses: snok/[email protected] | ||
|
||
- name: build | ||
run: make build | ||
|
||
- name: publish | ||
run: make publish PASSWORD=${{ secrets.PYPI_API_TOKEN }} |
This file contains 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 |
---|---|---|
|
@@ -20,14 +20,11 @@ jobs: | |
with: | ||
python-version: '3.10' | ||
|
||
- name: install requirements | ||
run: pip install -r requirements.txt | ||
|
||
- name: install Pytest | ||
run: pip install -r requirements.test.txt | ||
- name: install poetry | ||
uses: snok/[email protected] | ||
|
||
- name: lint | ||
run: ruff check . | ||
run: make lint | ||
|
||
- name: test | ||
run: pytest | ||
run: make test |
This file contains 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,22 @@ | ||
install: | ||
poetry install --no-interaction | ||
|
||
build: | ||
poetry build | ||
|
||
lint: | ||
poetry install --no-interaction --no-root --with tests | ||
poetry run ruff check . | ||
|
||
test: | ||
poetry install --no-interaction --no-root --with tests | ||
poetry run pytest | ||
|
||
publish: | ||
poetry install --no-interaction --no-root --with publish | ||
TWINE_USERNAME="__token__" \ | ||
TWINE_PASSWORD="$(PASSWORD)" \ | ||
poetry run twine upload dist/* | ||
|
||
bump: | ||
poetry version patch |
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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,34 @@ | ||
[tool.poetry] | ||
name = "pylspclient" | ||
version = "0.0.2" | ||
description = "LSP client implementation in Python" | ||
authors = ["yeger00 <[email protected]>"] | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.10" | ||
|
||
[tool.poetry.group.tests] | ||
optional = true | ||
|
||
[tool.poetry.group.tests.dependencies] | ||
ruff = "^0.1.6" | ||
pytest = "^7.4.0" | ||
python-lsp-server = "^1.9.0" | ||
|
||
[tool.poetry.group.dev] | ||
optional = true | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
ipython = "^8.8.0" | ||
ipdb = "^0.13.11" | ||
|
||
[tool.poetry.group.publish] | ||
optional = true | ||
|
||
[tool.poetry.group.publish.dependencies] | ||
twine = "^4.0.2" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.