Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 598 Bytes
from pathlib import Path
from setuptools import setup
from typing import List
from tutorial_app.constants import VERSION
def parse_requirements(file_name: str = 'requirements.txt') -> List[str]:
file_path = Path(__file__).parent / file_name
with open(file_path, 'r') as requirements_file:
return [
line for line in requirements_file
if line and not line.strip().startswith(('-', '#'))
]
setup(
name='Tutorial-App',
version=VERSION,
packages=['tutorial_app'],
python_requires='>=3.6',
install_requires=parse_requirements(),
)
You can’t perform that action at this time.