From d5318324c235d1a780a88fd07505b270aca178ab Mon Sep 17 00:00:00 2001 From: gpotter2 Date: Wed, 6 Jun 2018 18:46:53 +0200 Subject: [PATCH] Small setup.py fixes --- setup.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 81b2a4afa..8262cfffd 100755 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ archive_util.ARCHIVE_FORMATS["ezip"] = ( def get_long_description(): try: - with io.open("README.md", encoding="utf-8") as f: + with io.open(os.path.join(os.path.dirname(__file__), "README.md"), encoding="utf-8") as f: return f.read().partition("[//]: # (stop_pypi_description)")[0] except IOError: return None @@ -84,7 +84,11 @@ setup( long_description=get_long_description(), long_description_content_type='text/markdown', license='GPLv2', - url='http://www.secdev.org/projects/scapy', + url='https://scapy.net', + project_urls={ + 'Documentation': 'https://scapy.readthedocs.io', + 'Source Code': 'https://github.com/secdev/scapy/', + }, download_url='https://github.com/secdev/scapy/tarball/master', keywords=["network"], classifiers=[