Skip to content

Commit

Permalink
Merge pull request #77 from python-ellar/package_fix
Browse files Browse the repository at this point in the history
rearrangement lib dependencies
  • Loading branch information
eadwinCode authored Mar 2, 2024
2 parents 6538a13 + 6ee186f commit 286d608
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 18 deletions.
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

0 comments on commit 286d608

Please sign in to comment.