-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
43 lines (35 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
import setuptools
from tcgen._version import VERSION
import pathlib
import string
def fix(s):
# Removes non-printable ASCII characters
res = ""
for ch in s:
if ch in string.printable:
res += ch
return res
# Getting dependencies
def parse_requirements_file(path):
with open(path) as fp:
dependencies = (d.strip() for d in fp.read().split("\n") if d.strip())
return [d for d in dependencies if not d.startswith("#")]
def long_description():
with open("README.md") as fp:
return fp.read()
setuptools.setup(
name="cp-tcgen",
version=VERSION,
author="Joshua Liu",
author_email="[email protected]",
description="Test case generator. Quickly design and generate test cases without all the bulk",
long_description=long_description(),
long_description_content_type="text/markdown",
keywords="program competitive programming codeforces",
include_package_data=True,
install_requires=parse_requirements_file("requirements.txt"),
packages=setuptools.find_namespace_packages(include=["tcgen*"]),
license="MIT",
url="https://github.com/JoshuaTianYangLiu/tcgen",
scripts=["scripts/tcgen", "scripts/genout"],
)