Ole André Vadla Ravnås
92522348e0
extension: Fix the UnixSocketAddress include guard
2022-10-06 23:49:23 +02:00
Ole André Vadla Ravnås
5d3c23bfda
extension: Remove useless symbol versioning
2022-10-06 22:50:50 +02:00
Ole André Vadla Ravnås
146b7474e0
extension: Require Python >= 3.7
...
As we already require it at the higher level, anyway.
2022-10-06 22:50:50 +02:00
Ole André Vadla Ravnås
de8b4c5b99
meson: Remove some forgotten Python 2.x remnants
2022-10-06 22:50:50 +02:00
Ole André Vadla Ravnås
89c8a17442
extension: Add missing cast
2022-10-06 22:50:50 +02:00
Ole André Vadla Ravnås
457c4ab417
extension: Add support for building from source
...
So we can support environments for which wheels cannot be uploaded to
PyPI, such as Termux on Android.
2022-10-06 22:50:50 +02:00
Ole André Vadla Ravnås
f8ba250318
setup: Move from codecs.open() to open()
2022-10-06 22:50:50 +02:00
Ole André Vadla Ravnås
5952d91055
setup: Tweak style of the config
2022-10-06 22:50:50 +02:00
Ole André Vadla Ravnås
74cc6dde2f
docs: Improve the README
2022-10-06 22:50:50 +02:00
Ole André Vadla Ravnås
6470583f8b
core: Avoid using Python's union syntax
...
So we don't depend on Python >= 3.10.
2022-10-06 22:50:50 +02:00
Ole André Vadla Ravnås
acafa09a82
Tell setuptools that we are using the limited API
2022-10-06 22:50:50 +02:00
Ole André Vadla Ravnås
d57e503ca0
Tell bdist_wheel that we are using the limited API
2022-10-06 14:32:08 +02:00
Ole André Vadla Ravnås
1dcc59800d
Fix incorrect parameter name in function prototype
2022-10-06 14:24:07 +02:00
Ole André Vadla Ravnås
389b23b9b5
msvs: Move to the new PythonLocation property
2022-10-06 14:15:41 +02:00
dependabot[bot]
d66367a228
examples: Bump web_client dependencies ( #219 )
2022-10-06 14:15:13 +02:00
Ole André Vadla Ravnås
2269a323bb
Move to the stable Python C API
...
So it doesn't become a nightmare to distribute wheels.
2022-10-06 14:13:46 +02:00
Ole André Vadla Ravnås
f10bd17644
Fix typo in comment
2022-10-06 14:13:46 +02:00
Ole André Vadla Ravnås
b2391c7ae9
Rename and simplify remaining MSVS project files
2022-09-27 12:01:46 +02:00
Yotam Nachum
b82a9436a0
Remove old Visual Studio python 2 project files
2022-09-24 19:02:41 +03:00
Yotam Nachum
64b4b85298
Add _frida stub file to package data
2022-09-24 19:02:17 +03:00
Yotam
6e08dbb2cc
Merge pull request #220 from yotamN/fix/type-hinting
...
Fix type hinting
2022-09-24 18:59:05 +03:00
Yotam Nachum
64670182fe
Add Mypy to CI
2022-09-24 18:57:27 +03:00
Yotam Nachum
4f5c83fd09
Fix type hinting
2022-09-24 18:54:10 +03:00
Orip
2c805431bd
Remove PEP503 parser and egg downloader from setup.py
2022-09-21 20:20:26 +02:00
Yotam
85e7cb9b94
Merge pull request #217 from yotamN/feature/linting
...
Add pyflakes to CI
2022-09-17 19:32:24 +03:00
Yotam Nachum
aa80aac2b0
Add pyflakes to CI
2022-09-17 18:59:00 +03:00
Yotam Nachum
c0d8bc7cad
Remove unused variables
2022-09-17 18:59:00 +03:00
Yotam
a264326074
Merge pull request #193 from yotamN/feature/deprecate-python2
...
Deprecate Python 2
2022-09-17 17:45:26 +03:00
Orip
102373d50d
Remove python2 support from the tests
2022-09-12 20:59:52 +03:00
Yotam Nachum
f251da8807
Add GitHub actions
2022-09-12 20:59:52 +03:00
Orip
32e3def2a1
Fix Device.get_bus
...
The Previous implementation called the `_Device.get_bus` method which doesn't exist
2022-09-12 20:59:52 +03:00
Yotam Nachum
600d68a982
Add _frida type hinting
2022-09-12 20:59:52 +03:00
Yotam Nachum
af23dd92f2
Add docstrings
2022-09-12 20:59:52 +03:00
Yotam Nachum
057d901c06
Add type hinting
...
Lots of functions were using *args and **kwargs that were kind of
useless with type hinting, so I explicitly named every possible argument
and its type. It breaks backward compatibility (sort of) because you can
pass nonsense arguments anymore.
2022-09-12 20:59:52 +03:00
Yotam Nachum
fc00ac2b75
Automatically format code with Black and Isort
2022-09-12 20:59:52 +03:00
Orip
32df9f05b2
Use bytes literals instead of encode method
2022-09-12 20:59:52 +03:00
Yotam Nachum
c4785c3f7c
Use f-strings
...
f-strings is a new, shorter alternative to `.format` method that was
introduced in Python 3.6.
2022-09-12 20:59:52 +03:00
Yotam Nachum
a89af5355f
Use print as function instead of keyword
2022-09-12 20:59:52 +03:00
Yotam Nachum
c5b7077a40
Use new except syntax
2022-09-12 20:59:52 +03:00
Yotam Nachum
8f5cca32f4
Remove string format specifiers
2022-09-12 20:59:52 +03:00
Yotam Nachum
8491ee563b
Remove handling of Python 2 from setup.py
2022-09-12 20:59:52 +03:00
Yotam Nachum
b8ced413df
Remove unicode prefix from strings
2022-09-12 20:59:51 +03:00
Yotam Nachum
bb5594badb
Remove Python 2 support from C code
2022-09-12 20:59:38 +03:00
Yotam Nachum
bb8cb7ae7d
Remove Python 2 imports fallback
2022-09-12 20:21:45 +03:00
Yotam Nachum
91554f8311
Remove unused import
2022-09-12 11:55:02 +03:00
Yotam Nachum
0d9e17f757
Remove object parent class
...
Python 3 classes inherit from object class implicitly
2022-09-12 11:55:02 +03:00
Yotam Nachum
27337a5ce5
Remove unused backward compatibility header
2022-09-12 11:55:00 +03:00
Yotam Nachum
f38b846015
Remove handling of Python 2 version in error msg
2022-09-12 11:48:38 +03:00
Yotam Nachum
62bf077ebd
Remove handling of old string type basestring
...
We don't need it anymore with Python 3 only
2022-09-12 11:48:36 +03:00
Yotam Nachum
2ff04ba3ea
Remove Python 2 from supported versions
...
Python 2 was EOL over two years ago so we should stop supporting it.
Python 3.4 to 3.6 is EOL as well so there is no reason in keeping it as
well. Python 3.9 and 3.10 are new versions that we should support
2022-08-06 17:04:26 +03:00