Commit Graph

57 Commits

Author SHA1 Message Date
Lonami Exo
180105a965 Follow PEP 518 2020-10-05 10:47:46 +02:00
Lonami Exo
4f6e5c5f5a Remove another debug print, bump v1.10.4 2019-09-21 18:21:09 +02:00
Lonami Exo
2ffd1e8e7c Clean-up usage of root directory in docs generation
Instead, make use of the current working directory.
This should ease most of it and remove noise, since
now root is just the current directory.
2019-07-17 10:11:52 +02:00
Lonami Exo
eb02eadb9f Fix TempWorkDir not actually working 2019-07-17 09:34:17 +02:00
Lonami Exo
e5485f3d54 Document raw methods with friendly variants 2019-05-26 21:15:43 +02:00
Lonami Exo
b20dc3b804 Fix setup.py calling generate with the wrong arguments 2019-05-05 12:04:51 +02:00
Lonami Exo
84c197be60 Better clean command in setup.py 2019-05-04 17:51:14 +02:00
Lonami Exo
1e17ef1c98 Apply several lints 2019-05-03 21:38:41 +02:00
Lonami Exo
202ce1f494 Remove async_generator from dependencies 2019-02-27 11:13:29 +01:00
Lonami Exo
8224e5aabf Make use of pathlib nearly everywhere (breaks docs gen)
Python 3.6 introduced support for the os.PathLike interface,
which means Python 3.5 did not have it yet and attempting to
use it in os functions would fail. Instead we can use pathlib
for everything, but not all work is done yet.
2018-12-21 13:24:16 +01:00
Lonami Exo
e71c556ca7 Use pathlib.Path in setup.py 2018-12-15 13:26:18 +01:00
Lonami Exo
50b77d881d Clarify who can use methods in the documentation 2018-12-03 16:17:37 +01:00
Lonami Exo
8eca29be25 Make use of the new method info when generating docs 2018-11-30 21:48:15 +01:00
Lonami Exo
f05109f186 Update code generator to parse CSV files 2018-11-30 21:39:13 +01:00
Lonami Exo
dd0eb7a90e Explicitly open files as 'r' instead of leaving it out 2018-06-29 11:34:57 +02:00
Lonami Exo
72835dfb44 Update to v1.0 2018-06-27 13:41:20 +02:00
Lonami Exo
777c91ee14 Fix setup.py 2018-06-21 10:48:47 +02:00
Lonami Exo
4e9a84c3b5 Remove underscore from module names 2018-06-18 21:02:42 +02:00
Lonami Exo
f3f0c28505 Support converting .tl -> .json 2018-06-13 10:48:35 +02:00
Lonami Exo
4bdc28a775 Show invalid bot methods in the docs 2018-06-06 17:35:06 +02:00
Lonami Exo
32b7e9e27a Whitelist generator's mismatching ID and ya username 2018-05-12 16:12:42 +02:00
Lonami Exo
3008ada98d Distinguish between mtproto/telegram TL like tdlib does 2018-04-28 10:19:55 +02:00
Lonami Exo
e616af8a70 Fix isfile should be isdir when pip installing locally 2018-04-23 20:52:27 +02:00
Lonami Exo
53f7b6063c Fix generate(["clean"]) usage on setup.py 2018-04-15 15:43:18 +02:00
Lonami Exo
5a8f825db8 Use a sensible default for empty setup.py gen command 2018-04-15 13:20:56 +02:00
Lonami Exo
3ed81481f8 Enhance setup.py gen command 2018-04-15 13:19:25 +02:00
Lonami Exo
fc1bc05ca1 Move tlobject and source_builder into their correct folders 2018-04-14 15:16:13 +02:00
Lonami Exo
55b5fca6fd Add python_requires to setup.py 2018-04-04 10:21:55 +02:00
Lonami Exo
09c04282c9 Fix typing dependency must be installed below Python 3.5.2 2018-03-22 19:02:40 +01:00
Lonami Exo
32fd64d655 Remove SQLAlchemy session 2018-03-17 17:38:16 +01:00
Tulir Asokan
935de0afbb Add Python type hints to attributes of TL types (#678) 2018-03-12 10:58:56 +01:00
Lonami Exo
e8a21dc3b9 Fix telethon_generator/ package not being excluded from PyPi 2018-03-04 11:23:18 +01:00
Tulir Asokan
07c2fc50ec Add SQLAlchemy-based session 2018-03-02 13:22:30 +02:00
Dmitry D. Chernov
760d84514f setup: Fix regex failure to match version in case of CRLF line feeds
This could happen e.g. in case of using pip3 to install Telethon directly from the git repo.
2018-02-24 18:25:08 +10:00
Lonami Exo
7c647b57e3 Mention cryptg as an optional dependency 2018-02-17 12:14:23 +01:00
Lonami Exo
2ccb6063e0 Call gen_tl() when installing through setup.py (#530) 2018-01-15 18:46:04 +01:00
Lonami Exo
7509ba9067 Assert that module was generated correctly on setup.py pypi 2017-11-29 12:34:15 +01:00
Andrei Fokau
ef794bf75d Fix importing dependencies during installing (#384) 2017-10-28 12:21:07 +02:00
Lonami Exo
1f1e040af9 Fix setup.py if/elif/else chain 2017-10-22 13:57:02 +02:00
Lonami Exo
83595a0e2d Use more constants in setup.py 2017-10-20 17:32:30 +02:00
Lonami Exo
be9358282a Generate and fetch new errors from setup.py 2017-10-20 17:29:45 +02:00
Lonami Exo
c134d9ba27 Run setup.py gen_tl when installing (may fix #271) 2017-09-29 12:40:03 +02:00
Lonami Exo
7838f8561b Allow running setup.py from other directories 2017-09-29 12:38:53 +02:00
Lonami Exo
2bb26d6389 Modify setup.py to work even if generated code was wrong 2017-09-26 14:29:35 +02:00
Lonami Exo
060b8a8b9c Fix setup.py import subprocess.run (not supported on < py3.5) 2017-09-19 10:16:41 +02:00
Lonami Exo
aea95a398b Add a pypi option to setup.py to easily update the library 2017-09-18 14:03:06 +02:00
Lonami Exo
98bbcb6cd6 Favour rsa module over PyCrypto since the former is pure Python 2017-08-24 18:41:48 +02:00
Lonami Exo
66876b6722 Use pycrypto's RSA instead the old weird RSA implementation 2017-08-23 21:49:27 +02:00
Lonami Exo
3585fb8cc6 Fix setup.py for source distributions 2017-07-04 11:02:54 +02:00
Dmitry D. Chernov
aa7e8dba8a Fix setup.py failing on Python < 3.6 2017-06-24 21:39:43 +02:00