Skip to content

Commit e422669

Browse files
committed
Update setup.py; add print compatibility
1 parent e7112fc commit e422669

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

rawsocketpy/get_hw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def u_to_str(data, separator=":"):
2626
return separator.join("{:02x}".format(ord(c)) for c in data).upper()
2727

2828
def main():
29-
print u_to_str(get_hw("wlp2s0"))
29+
print(u_to_str(get_hw("wlp2s0")))
3030

3131
if __name__ == '__main__':
3232
main()

setup.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
from setuptools import setup
22

3+
with open("README.md", "r") as fh:
4+
long_description = fh.read()
5+
36
setup(name='rawsocketpy',
47
version='0.1',
58
description='This library allows you to implemnet a custom layer 2 communication using raw sockets in Python',
9+
long_description=long_description,
10+
long_description_content_type="text/markdown",
611
url='https://github.com/AlexisTM/rawsocket_python',
712
author='AlexisTM',
813
author_email='alexis.paques@gmail.com',
914
license='MIT',
10-
packages=['rawsocketpy'],
15+
packages=setuptools.find_packages(),
16+
classifiers=(
17+
"Programming Language :: Python :: 2",
18+
"Development Status :: 4 - Beta",
19+
"License :: OSI Approved :: MIT License",
20+
"Operating System :: POSIX :: Linux",
21+
"Topic :: Internet",
22+
"Topic :: System :: Networking",
23+
"Topic :: System :: Networking :: Monitoring",
24+
),
1125
zip_safe=False)

0 commit comments

Comments
 (0)