-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
30 lines (24 loc) · 968 Bytes
/
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
'''
Package setup
'''
from pathlib import Path
from setuptools import setup, find_packages
def parse_requirements(filename) -> list:
'''
Parse a requirements file returning a list of requirements.
Args:
filename (str): The path to the requirements file.
'''
requirements_path: str = Path(__file__).parent / filename
with requirements_path.open() as f:
return [line.strip() for line in f if line.strip() and not line.startswith("#")]
this_directory: str = Path(__file__).parent
long_description: str = (this_directory / "README.md").read_text()
setup(name = "villog",
version = "0.2.4",
description = "A simple python utility tool for your everyday projects.",
author = "Krisztián Villers",
packages = find_packages(),
long_description = long_description,
long_description_content_type = "text/markdown",
install_requires = parse_requirements("requirements.txt"))