-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.py
More file actions
49 lines (36 loc) · 1.38 KB
/
conf.py
File metadata and controls
49 lines (36 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import os
# useless comment
def _read_file(name: str) -> str:
directory = os.path.dirname(__file__)
filepath = os.path.join(directory, name)
with open(filepath, 'r') as file:
return file.read()
class Author:
def __init__(self, name: str, email: str):
self.name = name
self.email = email
def __repr__(self):
return f'Author({repr(self.name)}, {repr(self.email)})'
name = "tele_weather_bot"
project = "WeatherBot"
version = "0.1"
release = "0.1.5"
description = "Bot para o Telegram com funcionalidades especiais relacionadas ao clima local dx usuárix."
url = "https://gitlab.com/teobmendes/tele_weather_bot"
authors = [
Author("João Hergert", "joaohergert@gmail.com"),
Author("João Paulo Penalber", "joao.p.penalber@gmail.com"),
Author("Pedro Barros Bastos", "pedro.bbastos123@gmail.com"),
Author("Teodoro Bertolozzi", "teobmendes@gmail.com"),
Author("Tiago de Paula", "tiagodepalves@gmail.com")
]
by_name = lambda author: f'{author.name}'
by_email = lambda author: f'{author.name}'
by_first_name = lambda author: f'{author.name.split()[0]}'
by_last_name = lambda author: f'{author.name.split()[-1]}'
by_both = lambda author: f'{author.name} ({author.email})'
def join_authors(func=by_both, sep=', '):
return sep.join(func(author) for author in authors)
readme = _read_file("README.md")
license = None
copyright = ""