File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,15 +13,14 @@ jobs:
1313 uses : actions/setup-python@v3
1414 with :
1515 python-version : ${{ matrix.python-version }}
16+ - name : Install Poetry
17+ run : curl -sSL https://install.python-poetry.org | python3 -
1618 - name : Install dependencies
1719 run : |
18- python -m pip install --upgrade pip
19- pip install '.[dev]'
20- pip install .
21- pip install pylint
20+ poetry install
2221 - name : Run pylint
2322 run : |
24- pylint tiny_web_crawler
23+ poetry run pylint tiny_web_crawler
2524
2625 test :
2726 needs : lint
@@ -35,14 +34,14 @@ jobs:
3534 uses : actions/setup-python@v3
3635 with :
3736 python-version : ${{ matrix.python-version }}
37+ - name : Install Poetry
38+ run : curl -sSL https://install.python-poetry.org | python3 -
3839 - name : Install dependencies
3940 run : |
40- python -m pip install --upgrade pip
41- pip install '.[dev]'
42- pip install .
41+ poetry install
4342 - name : Run tests
4443 run : |
45- pytest
44+ poetry run pytest
4645
4746 publish :
4847 needs : test
@@ -55,12 +54,13 @@ jobs:
5554 uses : actions/setup-python@v3
5655 with :
5756 python-version : ' 3.x'
57+ - name : Install Poetry
58+ run : curl -sSL https://install.python-poetry.org | python3 -
5859 - name : Install dependencies
5960 run : |
60- python -m pip install --upgrade pip
61- pip install build
61+ poetry install
6262 - name : Build package
63- run : python -m build
63+ run : poetry build
6464 - name : Publish package
6565 uses : pypa/gh-action-pypi-publish@v1.5.1
6666 with :
Original file line number Diff line number Diff line change 1+ [tool .poetry ]
2+ name = " tiny-web-crawler"
3+ version = " 0.1.5"
4+ description = " A simple and efficient web crawler in Python."
5+ authors = [" Indrajith Indraprastham <indr4jith@gmail.com>" ]
6+ license = " GPL-3.0-or-later"
7+ readme = " README.md"
8+ homepage = " http://github.com/indrajithi/tiny-web-crawler"
9+ repository = " http://github.com/indrajithi/tiny-web-crawler"
10+ documentation = " http://github.com/indrajithi/tiny-web-crawler"
11+
12+ [tool .poetry .dependencies ]
13+ python = " ^3.8"
14+ validators = " ^0.28.3"
15+ beautifulsoup4 = " ^4.12.3"
16+ lxml = " ^5.2.2"
17+ colorama = " ^0.4.6"
18+ requests = " ^2.32.3"
19+
20+ [tool .poetry .dev-dependencies ]
21+ pytest = " ^6.2"
22+ responses = " ^0.13.4"
23+ pylint = " ^2.7"
24+
125[build-system ]
2- requires = [" setuptools " , " wheel " ]
3- build-backend = " setuptools.build_meta "
26+ requires = [" poetry-core>=1.0.0 " ]
27+ build-backend = " poetry.core.masonry.api "
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments