11# -*- coding: utf-8 -*-
22
33import os
4- from setuptools import find_packages
4+ import setuptools
55
66about = {}
77with open (os .path .join ('ExtractTable' , '__version__.py' ), 'r' ) as f :
1010with open ('README.md' , 'r' ) as f :
1111 readme = f .read ()
1212
13- with open ("requirements.txt" ) as fh :
14- requires = [x .strip () for x in fh .readlines ()]
1513
16-
17- def setup_package ():
18- metadata = dict (
14+ setuptools .setup (
1915 name = about ['__title__' ],
2016 version = about ['__version__' ],
2117 description = about ['__description__' ],
@@ -25,8 +21,8 @@ def setup_package():
2521 author = about ['__author__' ],
2622 author_email = about ['__author_email__' ],
2723 license = about ['__license__' ],
28- packages = find_packages (),
29- install_requires = requires ,
24+ packages = setuptools . find_packages (),
25+ install_requires = [ 'requests>=2.21' , 'pandas>=0.24' , 'PyPDF2>=1.26' ] ,
3026 classifiers = [
3127 # Trove classifiers
3228 # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
@@ -36,15 +32,6 @@ def setup_package():
3632 'Programming Language :: Python :: 3.8' ,
3733 'Programming Language :: Python :: 3.9' ,
3834 'Programming Language :: Python :: 3.10'
39- ])
40-
41- try :
42- from setuptools import setup
43- except ImportError :
44- from distutils .core import setup
45-
46- setup (** metadata )
47-
48-
49- if __name__ == '__main__' :
50- setup_package ()
35+ ],
36+ python_requires = ">=3.6" ,
37+ )
0 commit comments