From 6e3a9c5836aa3bb273529959d84dfae074857c78 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 27 Jan 2025 16:24:33 +0100 Subject: move python code into the project's root --- setup.py | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index bfe452b..22ce42b 100644 --- a/setup.py +++ b/setup.py @@ -1,27 +1,9 @@ -import os -import re - from setuptools import find_packages, setup - -def read_version(): - regexp = re.compile(r"^__version__\W*=\W*'([\d.abrc]+)'") - init_py = os.path.join(os.path.dirname(__file__), 'cyberschuessel', - '__init__.py') - with open(init_py) as f: - for line in f: - match = regexp.match(line) - if match is not None: - return match.group(1) - else: - msg = 'Cannot find version in cyberschuessel/__init__.py' - raise RuntimeError(msg) - - install_requires = ['aiohttp', 'aiohttp_jinja2'] setup(name='cyberschuessel', - version=read_version(), + version='0.0.1', description='A web server to play the word guessing game Salatschuessel', platforms=['POSIX'], packages=find_packages(), -- cgit v1.2.3