Skip to content

Commit

Permalink
fix(build): some poetry tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyTheFactory committed Oct 29, 2023
1 parent c11f950 commit 8c0c0ef
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 49 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ venv
.ruff_cache

tests/localdebug
requirements_poetry.txt
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ repos:
name: update-requirements-txt
description: 'Generate requirements.txt based on poetry.lock'
entry: poetry
args: [export, --without-hashes, --without, dev, --without-urls, --format, requirements.txt, --output, requirements.txt]
args: [export, --without-hashes, --without, dev, --without-urls, --format, requirements.txt, --output, requirements_poetry.txt]
language: system
pass_filenames: false
37 changes: 18 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ classifiers = [
"Programming Language :: Python :: 3",
"Natural Language :: English",
"Topic :: Text Processing",
"Topic :: Text Processing :: Scrapers",
"Topic :: Text Processing :: Markup :: HTML",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
Expand All @@ -29,26 +28,26 @@ documentation = "https://newspaper4k.readthedocs.io/en/latest/"

[tool.poetry.dependencies]
python = "^3.6"
beautifulsoup4 = "^4.4.1"
Pillow = "^3.3.0"
PyYAML = "^5.1"
cssselect = "^0.9.2"
lxml = "^3.6.0"
nltk = "^3.6.6"
requests = "^2.20.0"
feedparser = "^5.2.1"
tldextract = "^2.0.1"
feedfinder2 = "^0.0.4"
jieba3k = "^0.35.1"
python-dateutil = "^2.5.3"
beautifulsoup4 = ">=4.4.1"
Pillow = ">=3.3.0"
PyYAML = ">=5.1"
cssselect = ">=0.9.2"
lxml = ">=3.6.0"
nltk = ">=3.6.6"
requests = ">=2.20.0"
feedparser = ">=5.2.1"
tldextract = ">=2.0.1"
feedfinder2 = ">=0.0.4"
jieba3k = ">=0.35.1"
python-dateutil = ">=2.5.3"
tinysegmenter = "0.3"
pythainlp = "^3.1.0"
pythainlp = ">=3.1.0"
[tool.poetry.dev-dependencies]
coverage = {version = "^7.3.2", python = "^3.8"}
pre-commit = {version = "^3.5.0", python = "^3.8"}
ruff = {version = "^0.1.2", python = "^3.8"}
codespell = {version = "^2.2.6 ", python = "^3.8"}
pytest = {version = "^7.0.0", python = "^3.8"}
coverage = {version = ">=7.3.2", python = "^3.8"}
pre-commit = {version = ">=3.5.0", python = "^3.8"}
ruff = {version = ">=0.1.2", python = "^3.8"}
codespell = {version = ">=2.2.6 ", python = "^3.8"}
pytest = {version = ">=7.0.0", python = "^3.8"}

[build-system]
requires = ["poetry-core"]
Expand Down
43 changes: 14 additions & 29 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,29 +1,14 @@
beautifulsoup4==4.12.2 ; python_version >= "3.6" and python_version < "4.0"
certifi==2023.7.22 ; python_version >= "3.6" and python_version < "4.0"
charset-normalizer==2.0.12 ; python_version >= "3.6" and python_version < "4.0"
click==8.0.4 ; python_version >= "3.6" and python_version < "4.0"
colorama==0.4.5 ; python_version >= "3.6" and python_version < "4.0" and platform_system == "Windows"
cssselect==0.9.2 ; python_version >= "3.6" and python_version < "4.0"
feedfinder2==0.0.4 ; python_version >= "3.6" and python_version < "4.0"
feedparser==5.2.1 ; python_version >= "3.6" and python_version < "4.0"
idna==3.4 ; python_version >= "3.6" and python_version < "4.0"
importlib-metadata==4.8.3 ; python_version >= "3.6" and python_version < "3.8"
importlib-resources==5.4.0 ; python_version >= "3.6" and python_version < "3.7"
jieba3k==0.35.1 ; python_version >= "3.6" and python_version < "4.0"
joblib==1.1.1 ; python_version >= "3.6" and python_version < "4.0"
lxml==3.8.0 ; python_version >= "3.6" and python_version < "4.0"
nltk==3.6.7 ; python_version >= "3.6" and python_version < "4.0"
pillow==3.4.2 ; python_version >= "3.6" and python_version < "4.0"
python-dateutil==2.8.2 ; python_version >= "3.6" and python_version < "4.0"
pyyaml==5.4.1 ; python_version >= "3.6" and python_version < "4.0"
regex==2023.8.8 ; python_version >= "3.6" and python_version < "4.0"
requests-file==1.5.1 ; python_version >= "3.6" and python_version < "4.0"
requests==2.27.1 ; python_version >= "3.6" and python_version < "4.0"
six==1.16.0 ; python_version >= "3.6" and python_version < "4.0"
soupsieve==2.3.2.post1 ; python_version >= "3.6" and python_version < "4.0"
tinysegmenter==0.3 ; python_version >= "3.6" and python_version < "4.0"
tldextract==2.2.3 ; python_version >= "3.6" and python_version < "4.0"
tqdm==4.64.1 ; python_version >= "3.6" and python_version < "4.0"
typing-extensions==4.1.1 ; python_version >= "3.6" and python_version < "3.8"
urllib3==1.26.18 ; python_version >= "3.6" and python_version < "4.0"
zipp==3.6.0 ; python_version >= "3.6" and python_version < "3.8"
beautifulsoup4>=4.4.1
cssselect>=0.9.2
feedfinder2>=0.0.4
feedparser>=5.2.1
jieba3k>=0.35.1
lxml>=3.6.0
nltk>=3.6.6
Pillow>=3.3.0
pythainlp>=3.1.0
python-dateutil>=2.5.3
PyYAML>=5.1
requests>=2.20.0
tinysegmenter==0.3 # TODO(codelucas): Investigate making this >=0.3
tldextract>=2.0.1

0 comments on commit 8c0c0ef

Please sign in to comment.