Remove setup.py

This commit is contained in:
Dave Gallant
2021-05-02 10:29:53 -04:00
parent 4eb3be6016
commit 9ed51cff10
2 changed files with 2 additions and 38 deletions

View File

@@ -3,7 +3,8 @@ name = "rfd"
version = "0.7.0" version = "0.7.0"
description = "view RedFlagDeals.com from the command line" description = "view RedFlagDeals.com from the command line"
authors = ["Dave Gallant <davegallant@gmail.com>"] authors = ["Dave Gallant <davegallant@gmail.com>"]
license = "GPL-3.0 License" license = "GPL-3.0-or-later"
readme = "README.md"
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.6" python = "^3.6"

View File

@@ -1,37 +0,0 @@
import io # for python2
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.__main__:cli"]},
include_package_data=True,
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",
version=version,
)