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
21 changes: 18 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
# Python
__pycache__/
*.py[co]
*.egg-info
*.egg-info/
*.egg

# tests
# Build artifacts
dist/
build/
*.whl

# Testing
.coverage
.pytest_cache/
.venv/
venv/
*.pyc
*.pyo

# Linting/Type checking
.mypy_cache/
.ruff_cache/

# working folders
# Working folders
/experiments/

# IDE files
Expand Down
4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

17 changes: 3 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
PYTHON=python
VERSION=patch

.PHONY=test publish bump clean

.PHONY=test clean

test:
py.test-2.6 && py.test-3.2 && py.test-2.7 && py.test-3.3 && py.test-3.4

publish: test
${PYTHON} setup.py register sdist bdist_wheel
twine upload dist/*

bump: test
bumpversion ${VERSION} --config-file setup.cfg
git rm .bumpversion.cfg
git commit --amend
pytest

clean:
rm -rf .bumpversion.cfg .coverage dist build
rm -rf .coverage dist build *.egg-info
87 changes: 87 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
[build-system]
requires = ["setuptools>=68.0", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "sumy"
version = "0.3.0"
description = "Module for automatic summarization of text documents and HTML pages."
authors = [{name = "Michal Belica", email = "miso.belica@gmail.com"}]
license = {text = "Apache License, Version 2.0"}
readme = "README.rst"
requires-python = ">=3.10"
keywords = [
"data mining",
"automatic summarization",
"data reduction",
"web-data extraction",
"NLP",
"natural language processing",
"latent semantic analysis",
"LSA",
"TextRank",
"LexRank",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: Czech",
"Natural Language :: Slovak",
"Natural Language :: English",
"Natural Language :: German",
"Natural Language :: French",
"Topic :: Education",
"Topic :: Internet",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Text Processing :: Filters",
"Topic :: Text Processing :: Linguistic",
"Topic :: Text Processing :: Markup :: HTML",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"nltk>=3.9.1",
"breadability>=0.1.20",
]

[project.optional-dependencies]
LSA = ["numpy"]
LexRank = ["numpy"]
dev = ["pytest>=8.0", "pytest-cov>=5.0", "pytest-xdist", "ruff", "mypy"]

[project.scripts]
sumy = "sumy.__main__:main"
sumy_eval = "sumy.evaluation.__main__:main"

[project.urls]
Homepage = "https://github.com/miso-belica/sumy"

[tool.setuptools.packages.find]
include = ["sumy*"]

[tool.setuptools.package-data]
sumy = ["data/stopwords/*.txt"]

[tool.pytest.ini_options]
addopts = "--quiet --tb=short --color=yes --cov=sumy --cov-report=term-missing --no-cov-on-fail"

[tool.ruff]
line-length = 160
target-version = "py310"

[tool.ruff.lint]
select = ["E", "F", "W", "I"]

[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
14 changes: 0 additions & 14 deletions setup.cfg

This file was deleted.

105 changes: 0 additions & 105 deletions setup.py

This file was deleted.

6 changes: 0 additions & 6 deletions sumy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
# -*- coding: utf8 -*-

from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals


__author__ = "Michal Belica"
__version__ = "0.3.0"
Loading