Skip to content
Open
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
20 changes: 20 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# https://github.com/direnv/direnv/pull/1352
layout_uv() {
# Watch the uv configuration file for changes
watch_file .python-version pyproject.toml uv.lock

# Use --frozen so that direnv entry does not change the lock contents. This
# can fail if the lock file is badly out of sync, but it'll report that to the
# user and the resolution is obvious.
uv sync --frozen || true

# activate the virtualenv after syncing; this puts the newly-installed
# binaries on PATH.
venv_path="$(expand_path "${UV_PROJECT_ENVIRONMENT:-.venv}")"
if [[ -e $venv_path ]]; then
# shellcheck source=/dev/null
source "$venv_path/bin/activate"
fi
}

layout_uv
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9.23
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ One branch per bug/feature. Don't stack PR on top of other PR branches!

### Testing

Testing can be done by using [Nose](http://nose.readthedocs.io/).
As described in Nose documentation, run `nosetests3` in the top
level of the project directory.
Testing can be done by using [pytest](http://pytest.org).
As described in the [pyest documentation](https://docs.pytest.org/en/stable/how-to/usage.html),
run `pytest` in the top level of the project directory.

Additionally, the project is [configured to use the free Travis CI]
(https://travis-ci.org/chfoo/wpull).
Expand Down
76 changes: 76 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "wpull"
dynamic = ["version", "readme"]
description = "Wget-compatible web downloader and crawler."
authors = [
{name = "Christopher Foo", email = "chris.foo@gmail.com"},
]
license = "GPL-3.0-only"
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Topic :: Internet :: File Transfer Protocol (FTP)",
"Topic :: Internet :: WWW/HTTP",
"Topic :: System :: Archiving",
]
requires-python = ">=3.9,<3.10"
dependencies = [
"chardet==5.0.0",
"dnspython<2",
"frozendict>=2.4.6",
"html5lib==1.1",
"lxml==5.2.1",
"psutil>5,<6",
"sqlalchemy>=1.3,<1.4",
"tornado>=3.2.2,<5.0",
"yapsy==1.12.2",
]

[dependency-groups]
dev = [
"pytest>=8.4.0",
"warcat>=2.2.5",
]

[tool.uv]
default-groups = "all"

[tool.setuptools]
# TODO: use src layout and drop packages listing
packages = [
"wpull",
"wpull.application",
"wpull.application.plugins",
"wpull.application.tasks",
"wpull.backport",
"wpull.database",
"wpull.document",
"wpull.document.htmlparse",
"wpull.driver",
"wpull.network",
"wpull.pipeline",
"wpull.processor",
"wpull.processor.coprocessor",
"wpull.protocol.abstract",
"wpull.protocol.ftp",
"wpull.protocol.ftp.ls",
"wpull.protocol.http",
"wpull.proxy",
"wpull.scraper",
"wpull.testing",
"wpull.testing.integration",
"wpull.thirdparty",
"wpull.warc",
]

[project.scripts]
wpull = "wpull.application.main:main"
wpull3 = "wpull.application.main:main"

[tool.setuptools.dynamic]
readme = {file = ["README.rst"]}
version = {attr = "wpull.version.__version__"}
14 changes: 0 additions & 14 deletions requirements.txt

This file was deleted.

119 changes: 0 additions & 119 deletions setup.py

This file was deleted.

1 change: 0 additions & 1 deletion test/fuzz_fusil_2/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
'''
import os.path
import random
import sys

from fusil.application import Application
from fusil.process.create import ProjectProcess
Expand Down
Loading