Skip to content

Commit 72318f1

Browse files
committed
Fix poetry builds
1 parent 11c721d commit 72318f1

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ all: setup develop
2424
venv: .venv/bin/python
2525

2626
setup: venv
27-
$(PIP) install -r requirements-dev.txt
27+
$(PIP) install -r requirements-dev.txt | grep -v "already satisfied" || true
2828

2929
.venv/bin/python:
3030
test -d .venv || which python3 && python3 -m venv .venv || virtualenv .venv
@@ -45,6 +45,10 @@ develop: .venv/lib/python*/site-packages/readability-lxml.egg-link
4545
.PHONY: clean_all
4646
clean_all: clean_venv
4747

48+
.PHONY: build
49+
build:
50+
poetry build
51+
4852
# ###########
4953
# Deploy
5054
# ###########

pyproject.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ version = "0.8.4"
44
description = "fast html to text parser (article readability tool) with python 3 support"
55
authors = ["Yuri Baburov <[email protected]>"]
66
license = "Apache License 2.0"
7-
readme = "README.rst"
7+
readme = "README.md"
8+
packages = [
9+
{ include = "readability" },
10+
]
811

912
[tool.poetry.dependencies]
1013
python = ">=3.8.2,<3.14"
1114
chardet = "^5.2.0"
12-
cssselect = "~1.2"
15+
cssselect = [
16+
{ version = "~1.2", markers = "python_version < '3.9'" },
17+
{ version = "~1.3", markers = "python_version >= '3.9'" }
18+
]
1319
lxml = {extras = ["html-clean"], version = "^5.4.0"}
1420
lxml-html-clean = {markers = "python_version < \"3.11\"", version = "^0.4.2"}
1521

requirements-dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
nose
2-
twine
2+
twine
3+
flake8

0 commit comments

Comments
 (0)