mirror of
https://github.com/davegallant/rfd.git
synced 2025-08-07 00:58:14 +00:00
black files and remove version symlink. (#13)
This commit is contained in:
28
setup.py
28
setup.py
@@ -1,39 +1,37 @@
|
||||
import io # for python2
|
||||
from os import path
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
try: # for pip >= 10
|
||||
from pip._internal.req import parse_requirements
|
||||
except ImportError: # for pip <= 9.0.3
|
||||
from pip.req import parse_requirements
|
||||
from version import __version__ as version
|
||||
from rfd.__version__ import version
|
||||
|
||||
WORKING_DIR = path.abspath(path.dirname(__file__))
|
||||
|
||||
# Get long description from README.md
|
||||
with io.open(path.join(WORKING_DIR, 'README.md'), encoding='utf-8') as f:
|
||||
with io.open(path.join(WORKING_DIR, "README.md"), encoding="utf-8") as f:
|
||||
long_description = f.read()
|
||||
|
||||
# read requirements.txt and load into list
|
||||
REQUIREMENTS_TXT = parse_requirements(
|
||||
path.join(WORKING_DIR, "requirements.txt"), session='my_session')
|
||||
path.join(WORKING_DIR, "requirements.txt"), session="my_session"
|
||||
)
|
||||
REQUIREMENTS = [str(r.req) for r in REQUIREMENTS_TXT]
|
||||
|
||||
setup(
|
||||
author='Dave Gallant',
|
||||
author_email='davegallant@gmail.com',
|
||||
description='CLI for RedFlagDeals.com',
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'rfd = rfd.rfd_cli:cli',
|
||||
],
|
||||
},
|
||||
author="Dave Gallant",
|
||||
author_email="davegallant@gmail.com",
|
||||
description="CLI for RedFlagDeals.com",
|
||||
entry_points={"console_scripts": ["rfd = rfd.rfd_cli:cli"]},
|
||||
install_requires=REQUIREMENTS,
|
||||
keywords='cli redflagdeals',
|
||||
license='Apache License, Version 2.0',
|
||||
keywords="cli redflagdeals",
|
||||
license="Apache License, Version 2.0",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
name='rfd',
|
||||
name="rfd",
|
||||
packages=find_packages(),
|
||||
url='https://github.com/davegallant/rfd_cli',
|
||||
url="https://github.com/davegallant/rfd_cli",
|
||||
version=version,
|
||||
)
|
||||
|
Reference in New Issue
Block a user