diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2021-01-09 13:11:39 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2021-01-09 13:11:39 +0100 |
| commit | 132ad1949beb6aa2f474be4ac1427e0d05ebda64 (patch) | |
| tree | 634f37025958b01efad5ddaf2d150b3e1f6e68ef /setup.py | |
| download | cyberschuessel-132ad1949beb6aa2f474be4ac1427e0d05ebda64.tar.gz cyberschuessel-132ad1949beb6aa2f474be4ac1427e0d05ebda64.zip | |
initial commit
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..eeacabc --- /dev/null +++ b/setup.py @@ -0,0 +1,33 @@ +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(), + description='A web server to play the word guessing game Salatschuessel', + platforms=['POSIX'], + packages=find_packages(), + include_package_data=True, + install_requires=install_requires, + zip_safe=False) + |
