Skip to content

Commit

Permalink
[Package] Dev bump and switch to setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
NeuroAssassin committed Dec 2, 2020
1 parent f0a8102 commit 52a8041
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 42 deletions.
3 changes: 2 additions & 1 deletion reddash/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@

__version__ = "0.1.7a.dev1"
__author__ = "Neuro Assassin#4779"
3 changes: 0 additions & 3 deletions reddash/app/constants.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import threading
import websocket

__version__ = "0.1.6a"
__author__ = "Neuro Assassin#4779"


class Lock:
def __init__(self):
Expand Down
3 changes: 2 additions & 1 deletion reddash/app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
from rich import rule, columns, table as rtable, panel
from fuzzywuzzy import process

from reddash.app.constants import DEFAULTS, WS_EXCEPTIONS, __version__
from reddash import __version__
from reddash.app.constants import DEFAULTS, WS_EXCEPTIONS


def register_blueprints(app):
Expand Down
56 changes: 56 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
[metadata]
name = Red-Dashboard
version = attr: reddash.__version__
description = An easy-to-use interactive web dashboard to control your Redbot.
license = AGPL-3.0
long_description = file: README.md
long_description_content_type = text/markdown; charset=UTF-8; variant=GFM
author = Neuro Assassin
author_email = redbotdashboard@gmail.com
url = https://github.com/Cog-Creators/Red-Dashboard
project_urls =
Third Party Discord Server = https://discord.gg/vQZTdB9
Documentation = https://red-dashboard.readthedocs.io/en/latest/
Donate on Patreon = https://www.patreon.com/neuroassassin
Source Code = https://github.com/NeuroAssassin/Red-Dashboard
Red Source Code = https://github.com/Cog-Creators/Red-DiscordBot
Red Discord Server = https://discord.gg/red
classifiers =
Development Status :: 3 - Alpha
Framework :: Flask
Intended Audience :: Developers
Intended Audience :: End Users/Desktop
License :: OSI Approved :: GNU Affero General Public License v3
Natural Language :: English
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows
Operating System :: POSIX :: Linux
Programming Language :: Python :: 3.8
Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Content Management System

[options]
packages =
reddash
python_requires = >=3.8.1,<3.9
install_requires =
flask==1.1.2
requests==2.23.0
cryptography==3.2
websocket_client==0.57.0
waitress==1.4.3
rich==1.3.1
fuzzywuzzy==0.18.0
python-Levenshtein==0.12.0
pyjwt==1.7.1
flask-babel==1.0.0

[options.extras_require]
style =
black==19.10b0
docs =
Sphinx==2.4.4
sphinx-rtd-theme==0.4.3

[options.entry_points]
console_scripts =
reddash = reddash.__main__:main
43 changes: 6 additions & 37 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,39 +1,8 @@
from setuptools import setup
import pathlib
import os

HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text()

setup(
name="Red-Dashboard",
version="0.1.7a",
description="An easy-to-use interactive web dashboard to control your Redbot.",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/Cog-Creators/Red-Dashboard",
author="Neuro Assassin",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
],
packages=["reddash"],
include_package_data=True,
install_requires=[
"flask==1.1.2",
"requests==2.23.0",
"cryptography==3.2",
"websocket_client==0.57.0",
"waitress==1.4.3",
"rich==1.3.1",
"fuzzywuzzy==0.18.0",
"python-Levenshtein==0.12.0",
"pyjwt==1.7.1",
"flask-babel==1.0.0",
],
extras_require={
"style": ["black==19.10b0"],
"docs": ["Sphinx==2.4.4", "sphinx-rtd-theme==0.4.3"],
},
entry_points={"console_scripts": ["reddash=reddash.__main__:main"]},
)
if os.getenv("READTHEDOCS", False):
setup(python_requires=">=3.7")
else:
# Metadata and options defined in setup.cfg
setup()

0 comments on commit 52a8041

Please sign in to comment.