Skip to content

Commit 56edd16

Browse files
authored
Modified setup (#39)
1 parent e9cfde6 commit 56edd16

File tree

2 files changed

+12
-20
lines changed

2 files changed

+12
-20
lines changed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=42",
4+
"wheel"]
5+
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
import os
4-
from setuptools import find_packages
4+
import setuptools
55

66
about = {}
77
with open(os.path.join('ExtractTable', '__version__.py'), 'r') as f:
@@ -10,12 +10,8 @@
1010
with 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

Comments
 (0)