Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: initialize poetry #1

Merged
merged 3 commits into from
Jan 28, 2023
Merged
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
File renamed without changes.
1,175 changes: 1,175 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]

[tool.poetry]
authors = ["Dean Malmgren <[email protected]>"]
description = "Minimally maintained fork of deanmalmgren/textract to remove '*' dependencies"
license = "MIT"
name = "textract-py3"
packages = [{include = "textract"}]
readme = "README.md"
repository = "https://github.com/KyleKing/textract-py3"
version = "2.0.0"

[tool.poetry.dependencies]
python = "^3.7"
SpeechRecognition = ">=3.8.1"
argcomplete = ">=1.10.0"
beautifulsoup4 = ">=4.8.0"
chardet = ">=3"
docx2txt = ">=0.8"
extract-msg = ">=0.30.11"
"pdfminer.six" = ">=20221105"
python-pptx = ">=0.6.18"
six = ">=1.16.0"
xlrd = ">=1.2.0"

[tool.poetry.extras]
pocketsphinx = ["pocketsphinx>=0.1.15"]

[tool.poetry.group.dev.dependencies]
bumpversion = ">=0.6.0"
nose = ">=1.3.7"
pytest = ">=7.2.1"

[tool.poetry.scripts]
textract = "textract.bin.textract:main"
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# FYI: This file is kept for reference, but not used

import glob
import os
from setuptools import setup
Expand Down
Empty file added textract/bin/__init__.py
Empty file.
14 changes: 4 additions & 10 deletions bin/textract → textract/bin/textract.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
#!/usr/bin/env python
# -*- mode: python -*-
# PYTHON_ARGCOMPLETE_OK

"""
Command-line application.
"""

import sys

from textract.cli import get_parser
from textract import process
from textract.exceptions import CommandLineError
from textract.colors import red
from ..cli import get_parser
from .. import process
from ..exceptions import CommandLineError
from ..colors import red


# extract text
Expand All @@ -29,5 +25,3 @@ def main():
else:
args.output.write(output)


main()