forked from CTFd/ctfcli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (42 loc) · 1.21 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*- coding: utf-8 -*-
import os
import re
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
with open("ctfcli/__init__.py") as f:
version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)
def read(fname):
try:
with open(os.path.join(os.path.dirname(__file__), fname), "r") as fp:
return fp.read().strip()
except IOError:
return ""
setup(
name="ctfcli",
version=version,
author="Kevin Chung",
author_email="[email protected]",
license="Apache 2.0",
description="Tool for creating and running Capture The Flag competitions",
long_description=read("README.md"),
long_description_content_type="text/markdown",
keywords=["ctf"],
classifiers=[],
zip_safe=False,
install_requires=[
"cookiecutter==2.1.1",
"click==7.0",
"fire==0.2.1",
"pyyaml==5.4",
"Pygments==2.7.4",
"requests==2.28.1",
"colorama==0.4.6",
"appdirs==1.4.3",
"python-frontmatter==1.0.0",
],
packages=find_packages(),
include_package_data=True,
entry_points={"console_scripts": ["ctf = ctfcli.__main__:main"]},
)