Skip to content
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

rearrangement lib dependencies #77

Merged
merged 2 commits into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install Flit
run: pip install flit
- name: Install Dependencies
run: flit install --symlink
run: make install
- name: Install build dependencies
run: pip install build
- name: Build distribution
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install Flit
run: pip install flit
- name: Install Dependencies
run: flit install --symlink
run: make install
- name: Test
run: make test-cov
- name: Coverage
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install Flit
run: pip install flit
- name: Install Dependencies
run: flit install --symlink
run: make install
- name: Test
run: pytest tests

Expand All @@ -36,7 +36,7 @@ jobs:
- name: Install Flit
run: pip install flit
- name: Install Dependencies
run: flit install --symlink
run: make install
- name: Ruff linting check
run: ruff check ellar_cli tests
- name: mypy
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ clean: ## Removing cached python compiled files
find . -name __pycache__ | xargs rm -rfv

install: ## Install dependencies
flit install --deps develop --symlink
pip install -r requirements.txt
flit install --symlink

install-full: ## Install dependencies
make install
Expand Down
14 changes: 1 addition & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ dependencies = [
"tomlkit >=0.11.1,<1.0.0,!=0.11.2,!=0.11.3",
"uvicorn[standard] == 0.27.1",
"ellar >= 0.7.1",
"click >= 8.1.7",
]

[project.scripts]
Expand All @@ -54,19 +55,6 @@ Documentation = "https://github.com/python-ellar/ellar-cli"
Source = "https://github.com/python-ellar/ellar-cli"
Homepage = "https://python-ellar.github.io/ellar-cli/"

[project.optional-dependencies]
test = [
"pytest >=7.1.3,<9.0.0",
"pytest-cov >=2.12.0,<5.0.0",
"mypy == 1.8.0",
"ruff ==0.3.0",
"pytest-asyncio",
"autoflake",
]
dev = [
"pre-commit"
]

[tool.ruff]
select = [
"E", # pycodestyle errors
Expand Down
6 changes: 6 additions & 0 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
autoflake
mypy == 1.8.0
pytest >=7.1.3,<9.0.0
pytest-asyncio
pytest-cov >=2.12.0,<5.0.0
ruff ==0.3.0
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-e .
-r requirements-tests.txt

pre-commit >=2.17.0,<4.0.0
Loading