Skip to content

Commit 7f321c6

Browse files
guedougpotter2
authored andcommitted
Ignore scapy logo on PyPi
1 parent 8857c03 commit 7f321c6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<img src="doc/scapy_logo.png" width=200>
33
</p>
44

5+
<!-- start_ppi_description -->
6+
57
# Scapy
68

79
[![Travis Build Status](https://travis-ci.org/secdev/scapy.svg?branch=master)](https://travis-ci.org/secdev/scapy)
@@ -109,7 +111,7 @@ Python modules, such as `matplotlib` or `cryptography`. See the
109111
[documentation](http://scapy.readthedocs.io/en/latest/installation.html) and
110112
follow the instructions to install them.
111113

112-
<!--- stop_ppi_description -->
114+
<!-- stop_ppi_description -->
113115

114116
## Contributing
115117

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,18 @@ def make_ezipfile(base_name, base_dir, verbose=0, dry_run=0, **kwargs):
4242
archive_util.ARCHIVE_FORMATS["ezip"] = (
4343
make_ezipfile, [], 'Executable ZIP file')
4444

45+
4546
def get_long_description():
4647
try:
4748
with io.open(os.path.join(os.path.dirname(__file__), "README.md"), encoding="utf-8") as f:
48-
return f.read().partition("<!--- stop_ppi_description -->")[0]
49+
readme = f.read()
50+
desc = readme.partition("<!-- start_ppi_description -->")[2]
51+
desc = desc.partition("<!-- stop_ppi_description -->")[0]
52+
return desc.strip()
4953
except IOError:
5054
return None
5155

56+
5257
SCRIPTS = ['bin/scapy', 'bin/UTscapy']
5358
# On Windows we also need additional batch files to run the above scripts
5459
if os.name == "nt":

0 commit comments

Comments
 (0)