Skip to content

Commit 7858e96

Browse files
committed
Removing old deprecation warning and adding requirement of python >= 3.7 in setup.py
1 parent 00beb16 commit 7858e96

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

setup.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import os
1+
from pathlib import Path
22
from setuptools import find_packages, setup
33

44
# Load version number
5-
__version__ = None
6-
7-
src_dir = os.path.abspath(os.path.dirname(__file__))
8-
version_file = os.path.join(src_dir, 'tap', '_version.py')
5+
__version__ = ''
6+
version_file = Path(__file__).parent.absolute() / 'tap' / '_version.py'
97

108
with open(version_file) as fd:
119
exec(fd.read())
@@ -33,6 +31,7 @@
3331
'docstring-parser >= 0.15'
3432
],
3533
tests_require=['pytest'],
34+
python_requires='>=3.7',
3635
classifiers=[
3736
'Programming Language :: Python :: 3',
3837
'Programming Language :: Python :: 3.7',

tap/tap.py

-7
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,6 @@ def _add_arguments(self) -> None:
303303
if variable not in self.class_variables:
304304
self._add_argument(*name_or_flags, **kwargs)
305305

306-
def add_arguments(self) -> None:
307-
"""Deprecated and will be removed by January 1st, 2021.
308-
309-
Explicitly add arguments to the argument buffer if not using default settings.
310-
"""
311-
pass
312-
313306
def process_args(self) -> None:
314307
"""Perform additional argument processing and/or validation."""
315308
pass

0 commit comments

Comments
 (0)