Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
add version constant
Browse files Browse the repository at this point in the history
  • Loading branch information
spookybear0 committed Nov 4, 2020
1 parent c4c8fa9 commit 06f8743
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

version = "v0.1.0"

class XorKeys:
"""XOR keys for GD specific responses."""

Expand Down
5 changes: 3 additions & 2 deletions gdpys/__main__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import click, asyncio
from outdated import warn_if_outdated
from constants import version

@click.group(name="gdpys")
def gdpys():
pass
warn_if_outdated("gdpys", version)

@gdpys.command(name="start")
@click.option("--debug", default=False, is_flag=True)
Expand All @@ -11,7 +13,6 @@ def start(debug):

@gdpys.command(name="cron")
def cron():
#click.echo("Not implemented yet.");return
cron = __import__("cron.cron").cron
loop = asyncio.get_event_loop()
loop.run_until_complete(cron.run_cron())
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ click >= 7.1.0
aiohttp_jinja2
jinja2
aiohttp_session
fernet
fernet
outdated
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import os
from setuptools import setup

from constants import version

def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()


setup(
name="gdpys",
version="0.0.1",
version=__version__,
author="RealistikDash",
description=(
"GDPyS is a Python based Geometry Dash server, it has many unique features including plugins and custom magic and awarded sections. What makes GDPyS better than other alternatives is because of the speed. GDPyS runs much faster than other alternatives and offers many configuration options like Cheatless AntiCheat and more."
Expand Down

0 comments on commit 06f8743

Please sign in to comment.