Skip to content

Commit 2ae2679

Browse files
committed
Migrate setup.py metadata to setup.cfg
1 parent d430da0 commit 2ae2679

File tree

5 files changed

+29
-42
lines changed

5 files changed

+29
-42
lines changed

MANIFEST.in

-2
This file was deleted.
File renamed without changes.
File renamed without changes.

setup.cfg

+28
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,30 @@
1+
[metadata]
2+
name = pytesseract
3+
version = 0.3.7
4+
author = Samuel Hoffstaetter
5+
author_email = samuel@hoffstaetter.com
6+
maintainer = Matthias Lee
7+
maintainer_email = pytesseract@madmaze.net
8+
description = Python-tesseract is a python wrapper for Google's Tesseract-OCR
9+
long_description = file: README.rst
10+
long_description_content_type = text/x-rst
11+
license = Apache License 2.0
12+
license_file = LICENSE
13+
keywords = python-tesseract OCR Python
14+
url = https://github.com/madmaze/pytesseract
15+
classifiers =
16+
License :: OSI Approved :: Apache Software License
17+
Programming Language :: Python :: 3
18+
19+
[options]
20+
packages = find:
21+
include_package_data = True
22+
install_requires = Pillow
23+
python_requires = >=3.6
24+
25+
[options.entry_points]
26+
console_scripts =
27+
pytesseract = pytesseract.pytesseract:main
28+
129
[bdist_wheel]
230
universal = True

setup.py

+1-40
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,2 @@
1-
import os
2-
31
from setuptools import setup
4-
5-
README_PATH = 'README.rst'
6-
LONG_DESC = ''
7-
if os.path.exists(README_PATH):
8-
with open(README_PATH) as readme:
9-
LONG_DESC = readme.read()
10-
11-
INSTALL_REQUIRES = ['Pillow']
12-
PACKAGE_NAME = 'pytesseract'
13-
PACKAGE_DIR = 'src'
14-
15-
setup(
16-
name=PACKAGE_NAME,
17-
version='0.3.7',
18-
author='Samuel Hoffstaetter',
19-
author_email='samuel@hoffstaetter.com',
20-
maintainer='Matthias Lee',
21-
maintainer_email='pytesseract@madmaze.net',
22-
description=(
23-
"Python-tesseract is a python wrapper for Google's Tesseract-OCR"
24-
),
25-
long_description=LONG_DESC,
26-
license='Apache License 2.0',
27-
keywords='python-tesseract OCR Python',
28-
url='https://github.com/madmaze/pytesseract',
29-
packages=[PACKAGE_NAME],
30-
package_dir={PACKAGE_NAME: PACKAGE_DIR},
31-
include_package_data=True,
32-
install_requires=INSTALL_REQUIRES,
33-
python_requires='>=3.6',
34-
entry_points={
35-
'console_scripts': ['{0} = {0}.{0}:main'.format(PACKAGE_NAME)],
36-
},
37-
classifiers=[
38-
'License :: OSI Approved :: Apache Software License',
39-
'Programming Language :: Python :: 3',
40-
],
41-
)
2+
setup()

0 commit comments

Comments
 (0)