Skip to content

Commit

Permalink
Add better description to PyPI, more classifiers (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachriggle committed Sep 7, 2016
1 parent de05e7a commit b97f30f
Showing 1 changed file with 32 additions and 5 deletions.
37 changes: 32 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
'tox>=1.8.1',
'pygments>=2.0',
'pysocks',
'python-dateutil']
'python-dateutil',
'pypandoc']

# This is a hack until somebody ports psutil to OpenBSD
if platform.system() != 'OpenBSD':
Expand All @@ -65,6 +66,19 @@
print >> sys.stderr, "$ apt-get install python-dev"
sys.exit(-1)

# Convert README.md to reStructuredText for PyPI
long_description = ''
try:
import pypandoc
try:
pypandoc.get_pandoc_path()
except OSError:
pypandoc.download_pandoc()
long_description = pypandoc.convert_file('README.md', 'rst')
except ImportError:
pass


setup(
name = 'pwntools',
packages = find_packages(),
Expand All @@ -84,19 +98,32 @@
},
entry_points = {'console_scripts': console_scripts},
scripts = glob.glob("bin/*"),
description = "CTF framework and exploit development library.",
description = "Pwntools CTF framework and exploit development library.",
long_description = long_description,
author = "Gallopsled et al.",
author_email = "#pwntools @ freenode.net",
url = 'https://pwntools.com',
download_url = "https://github.com/Gallopsled/pwntools/releases",
install_requires = install_requires,
license = "Mostly MIT, some GPL/BSD, see LICENSE-pwntools.txt",
keywords = 'pwntools exploit ctf capture the flag binary wargame overflow stack heap defcon',
classifiers = [
'Topic :: Security',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Intended Audience :: Developers'
'Topic :: Security',
'Topic :: Software Development :: Assemblers',
'Topic :: Software Development :: Debuggers',
'Topic :: Software Development :: Disassemblers',
'Topic :: Software Development :: Embedded Systems',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: System Shells',
'Topic :: Utilities',
]
)

0 comments on commit b97f30f

Please sign in to comment.