Skip to content

Commit b359fd8

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents b00a513 + 8e6c1ce commit b359fd8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

madoop/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
55
"""
66
import argparse
7+
import importlib.metadata
78
import logging
89
import pathlib
910
import shutil
1011
import sys
1112
import textwrap
12-
import pkg_resources
1313
from .mapreduce import mapreduce
1414
from .exceptions import MadoopError
1515

@@ -21,10 +21,10 @@ def main():
2121
)
2222

2323
optional_args = parser.add_argument_group('optional arguments')
24-
version = pkg_resources.get_distribution("madoop").version
24+
2525
optional_args.add_argument(
2626
'--version', action='version',
27-
version=f'Madoop {version}'
27+
version=f'Madoop {importlib.metadata.version("madoop")}'
2828
)
2929
optional_args.add_argument(
3030
'--example', action=ExampleAction, nargs=0,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "madoop"
7-
version = "1.2.0"
7+
version = "1.2.1"
88
description="A light weight MapReduce framework for education."
99
license = {file = "LICENSE"}
1010
authors = [

0 commit comments

Comments
 (0)