|
| 1 | +#!/usr/bin/env python |
| 2 | + |
| 3 | +import re |
| 4 | +from os import path |
| 5 | +from setuptools import setup, find_packages |
| 6 | + |
| 7 | +__folder__ = path.dirname(__file__) |
| 8 | + |
| 9 | +with open(path.join(__folder__, "README.md")) as ld_file: |
| 10 | + long_description = ld_file.read() |
| 11 | + ld_file.flush() |
| 12 | + |
| 13 | +with open(path.join(__folder__, "CTFDump.py")) as lib_file: |
| 14 | + r = re.search(r"__version__\s+=\s+(?P<q>[\"'])(?P<ver>\d+(?:\.\d+)*)(?P=q)", lib_file.read()) |
| 15 | + version = r.group('ver') |
| 16 | + |
| 17 | +with open(path.join(__folder__, "requirements.txt")) as req_file: |
| 18 | + install_requires = req_file.read() |
| 19 | + |
| 20 | +setup( |
| 21 | + name="CTFDump", |
| 22 | + version=version, |
| 23 | + description="CTFd Dump - When you want to have an offline copy of a CTF.", |
| 24 | + long_description=long_description, |
| 25 | + long_description_content_type="text/markdown", |
| 26 | + author="RealGame (Tomer Zait)", |
| 27 | + |
| 28 | + packages=find_packages(exclude=["examples", "tests"]), |
| 29 | + py_modules=["CTFDump"], |
| 30 | + entry_points={ |
| 31 | + "console_scripts": [ |
| 32 | + "ctf-dump = CTFDump:main", |
| 33 | + ] |
| 34 | + }, |
| 35 | + install_requires=install_requires, |
| 36 | + license="GPLv3", |
| 37 | + platforms="any", |
| 38 | + url="https://github.com/mosheDO/CTFDump", |
| 39 | + classifiers=[ |
| 40 | + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", |
| 41 | + "Development Status :: 5 - Production/Stable", |
| 42 | + "Environment :: Console", |
| 43 | + "Intended Audience :: Science/Research", |
| 44 | + "Natural Language :: English", |
| 45 | + "Operating System :: MacOS :: MacOS X", |
| 46 | + "Operating System :: Microsoft :: Windows", |
| 47 | + "Operating System :: POSIX :: Linux", |
| 48 | + "Programming Language :: Python :: 3", |
| 49 | + "Topic :: Security", |
| 50 | + "Topic :: Internet", |
| 51 | + "Topic :: Internet :: WWW/HTTP", |
| 52 | + ] |
| 53 | +) |
0 commit comments