Skip to content

Commit

Permalink
Move from Pipfile back to standard pip req files
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvine committed Jul 19, 2020
1 parent 9eb5c4b commit 48eaa51
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 331 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/notebooks
.ipynb_checkpoints
.DS_Store
venv/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
17 changes: 0 additions & 17 deletions Pipfile

This file was deleted.

304 changes: 0 additions & 304 deletions Pipfile.lock

This file was deleted.

2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pandas>=1.0.0
nose
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pdfminer.six==20200104
unicodecsv>=0.14.1
Pillow>=7.0.0
chardet
pycryptodome
Wand
18 changes: 8 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,24 @@

NAME = "pdfplumber"
HERE = os.path.abspath(os.path.dirname(__file__))

version_ns = {}
with open(os.path.join(HERE, NAME, '_version.py')) as f:
exec(f.read(), {}, version_ns)

base_reqs = [
"chardet",
"pycryptodome",
"unicodecsv>=0.14.1",
"pdfminer.six==20200104",
"pillow>=7.0.0",
"wand"
]
with open(os.path.join(HERE, "requirements.txt")) as f:
base_reqs = f.read().strip().split("\n")

with open(os.path.join(HERE, "requirements-dev.txt")) as f:
dev_reqs = f.read().strip().split("\n")

setup(
name=NAME,
description="Plumb a PDF for detailed information about each char, rectangle, and line.",
version=version_ns['__version__'],
packages=find_packages(exclude=["test",]),
tests_require=[ "nose", "pandas" ] + base_reqs,
install_requires=base_reqs,
tests_require = base_reqs + dev_reqs,
install_requires = base_reqs,
entry_points={
"console_scripts": [ "pdfplumber = pdfplumber.cli:main" ]
}
Expand Down

0 comments on commit 48eaa51

Please sign in to comment.