mirror of
https://github.com/davegallant/rfd.git
synced 2025-08-07 00:58:14 +00:00
21
setup.py
21
setup.py
@@ -3,29 +3,34 @@ from os import path
|
||||
from setuptools import setup, find_packages
|
||||
from rfd.__version__ import version
|
||||
|
||||
|
||||
def load_requirements(file_name):
|
||||
""" Reads and returns requirements """
|
||||
with io.open(path.join(WORKING_DIR, file_name)) as handle:
|
||||
raw_reqs = handle.read().strip().split("\n")
|
||||
reqs = [req for req in raw_reqs]
|
||||
return reqs
|
||||
|
||||
|
||||
WORKING_DIR = path.abspath(path.dirname(__file__))
|
||||
REQUIREMENTS = load_requirements("requirements.txt")
|
||||
TEST_REQUIREMENTS = load_requirements("requirements_dev.txt")
|
||||
|
||||
# Get long description from README.md
|
||||
with io.open(path.join(WORKING_DIR, "README.md"), encoding="utf-8") as f:
|
||||
long_description = f.read()
|
||||
|
||||
|
||||
setup(
|
||||
author="Dave Gallant",
|
||||
description="CLI for RedFlagDeals.com",
|
||||
entry_points={"console_scripts": ["rfd = rfd.rfd_cli:cli"]},
|
||||
install_requires=[
|
||||
"beautifulsoup4>=4.6.0",
|
||||
"click>=7.0",
|
||||
"colorama>=0.3.9",
|
||||
"requests>=2.18.0",
|
||||
],
|
||||
install_requires=REQUIREMENTS,
|
||||
keywords="cli redflagdeals",
|
||||
license="Apache License, Version 2.0",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
name="rfd",
|
||||
packages=find_packages(),
|
||||
url="https://github.com/davegallant/rfd_cli",
|
||||
url="https://github.com/davegallant/rfd",
|
||||
version=version,
|
||||
)
|
||||
|
Reference in New Issue
Block a user