Commit Graph

64 Commits

Author SHA1 Message Date
Damien Elmes
8bd5d756e2 bump version 2020-05-18 12:50:20 +10:00
Damien Elmes
09db596009 rebuild rspy on sql change 2020-05-12 21:13:33 +10:00
Damien Elmes
74c97ad6d3 bump version 2020-05-11 19:28:17 +10:00
evandrocoan
e4698b9997 We should not call clippy on Mac OS when running make check 2020-05-02 19:44:51 -03:00
evandrocoan
2008f2b7bc Fixed rspy check not being called
# Conflicts:
#	Makefile
2020-05-01 22:51:17 -03:00
Damien Elmes
b337dda8df bump version 2020-05-02 10:22:00 +10:00
Damien Elmes
0080db4c94
Merge pull request #600 from evandroforks/add_missing_wheels_anki_dependency
Add missing aqt and anki modules dependency requirements
2020-05-02 09:02:21 +10:00
Damien Elmes
d7cdb10aa8 fix some clippy lints 2020-05-02 08:55:27 +10:00
evandrocoan
b6e7ab6a99 Removes duplicated maturin build flags on rspy/Makefile 2020-05-01 01:46:30 -03:00
Damien Elmes
00cf4fc585 bump version 2020-04-28 08:57:56 +10:00
Damien Elmes
abb80231a5
Merge pull request #582 from evandroforks/fix_make_clean
Fixed make clean rule not working on Windows
2020-04-27 19:10:21 +10:00
evandrocoan
26480fb13c Fixed make clean rule not working on Windows 2020-04-26 03:02:02 -03:00
Damien Elmes
359b9f5cd5 use same cargo rspy target dir for wheel build 2020-04-25 10:08:24 +10:00
Damien Elmes
16ab351bf8 avoid unnecessary work in 'make build' 2020-04-07 10:59:14 +10:00
Damien Elmes
2cff078b50 require new maturin release for 32 bit support+pypi fix
closes #538
2020-04-04 07:39:33 +10:00
Damien Elmes
ee71e5dd59 use support URL and point to source repo 2020-04-03 08:44:59 +10:00
evandrocoan
069cc11a86 Created the GitHub Actions step Upload to PyPi to run only on
tagged releases of anki:
https://anki.tenderapp.com/discussions/ankidesktop/40025-anki-in-python-package-index
2020-04-02 02:57:34 -03:00
evandrocoan
20c9837770 Created the .github/workflows/windows.yml
# Conflicts:
#	.github/scripts/trailing-newlines.sh
#	Makefile
#	qt/tools/typecheck-setup.sh
#	react/Makefile
#	rspy/Makefile
#	svelte/Makefile
#	tslib/Makefile
2020-03-23 19:51:03 -03:00
Damien Elmes
ba17567617 drop the separate i18n backend 2020-03-20 21:15:23 +10:00
Damien Elmes
daaf8bdc70 release the GIL during a DB request 2020-03-20 21:15:23 +10:00
Damien Elmes
ae06b9e446 add Collection struct, and get media check working again
- media check no longer needs collection to be closed
- use savepoints for operations initiated by Rust, so they are
atomic without forcing a commit
2020-03-20 21:15:23 +10:00
Damien Elmes
2cd7885ec0 add begin/commit/rollback, and support creating collections
all but one unit test is now passing
2020-03-20 21:15:23 +10:00
Damien Elmes
b51e575a9d drop the protobuf prototype 2020-03-20 21:15:23 +10:00
Damien Elmes
b876d97770 use (or)json for DB bridge
Some initial testing with orjson indicates performance varies from
slightly better than pysqlite to about 2x slower depending on the type
of query.

Performance could be improved by building the Python list in rspy
instead of sending back json that needs to be decoded, but it may make
more sense to rewrite the hotspots in Rust instead. More testing is
required in any case.
2020-03-20 21:15:23 +10:00
Damien Elmes
f617760d04 bump version 2020-03-19 10:46:01 +10:00
Damien Elmes
f904f30bb2 add DEVFLAGS for performance testing 2020-03-10 13:36:01 +10:00
Damien Elmes
071722c057 rspy version 2020-03-06 19:15:02 +10:00
evandrocoan
ff3ea28de0 Fixed "Makefile:4: warning: undefined variable 'OS'" due the usage
of MAKEFLAGS += --warn-undefined-variables
2020-03-03 20:51:56 -03:00
evandrocoan
f13d9dfb8a Merge remote-tracking branch 'danielelmes/master' into allow_to_define_python_bin
# Conflicts:
#	rspy/Makefile
2020-03-02 11:44:45 -03:00
Damien Elmes
a98ecb642c
Merge pull request #487 from evandroforks/fix_rspy_makefile_rebuild
Fixed rspy/Makefile not rebuilding when rspy/src files are changed
2020-03-02 16:30:01 +10:00
evandrocoan
9460082a91 Allow to define a externally PYTHON_BIN and ACTIVATE_SCRIPT 2020-03-01 22:41:06 -03:00
evandrocoan
7957b51cb8 Fixed rspy/Makefile trying to use python3 on Windows 2020-03-01 22:41:06 -03:00
evandrocoan
9451d1f705 Fixed rspy/Makefile not rebuilding when rspy/src files are changed 2020-03-01 22:38:39 -03:00
evandrocoan
8bbb3bb2ee Fixed rspy/Makefile trying to use python3 on Windows 2020-03-01 13:24:53 -03:00
Damien Elmes
ba4fe71eba make logging explicit, and support logging to a file 2020-02-29 20:44:01 +10:00
Damien Elmes
7482904735 bump rust toolchain for 1.41.1 fixes 2020-02-29 19:42:30 +10:00
Damien Elmes
c966d88e4c add support for embedding the qt translations 2020-02-27 20:38:34 +10:00
evandrocoan
26cdff29ec Renamed FIND_EXEC to FIND, replaced IS_WINDOWS by specific commands
as PYTHON_BIN, ACTIVE_SCRIPT and INSTALL_PYAUDIO.
Fixed echo statements not using @ to suppress double message output.
Deprecated the usage of ECHOCMD := /bin/echo -e because it has no
effect: https://stackoverflow.com/questions/60387684/how-to-make-the-makefile-echos-to-use-bin-echo-e

# Conflicts:
#	Makefile
2020-02-25 03:15:11 -03:00
evandrocoan
bca96de75c Fixed misspelling on README.development and added missing FIND_EXEC
to rspy/Makefile
2020-02-24 17:03:00 -03:00
evandrocoan
19f1c98025 Fixed development compilation with Windows 10
1. Documented on README.development how to setup the environment
   for Windows.
2. Fixed qt/ts/package.json not working due usage of ; instead
   of &&
3. Fixed copy-qt-files rsync using Windows paths instead of Unix
   ones
4. Fixed Makefile's using Windows Linux Subsystem bash instead of
    the Cygwin one.
5. Ensured running the correct pip module by using python -m pip
    instead of just pip.
6. Fixed Makefiles using Windows `find` command, instead of the
    Cygwin's one (POSIX find).
7. Fixed pyenv sourcing/activate using /pyevn/bin/ instead of
    /python/Scripts/ on Windows.
8. Fixed pyaudio not installing/linking with portaudio on Windows
    by installing for a patched fork at evandroforks/pyaudio
9. Forked and fixed portaudio not building with Visual Studio 2017
    or superior and added the reference for the patched fork on
    README.development at evandroforks/portaudio.
2020-02-24 14:59:11 -03:00
Damien Elmes
1b0c3b8b75 allow setting specific target dir for rspy
when using CARGO_TARGET_DIR to define a common build location on
macOS, maturin forces a rebuild every time as the link args
for the Python lib don't match those used when building the tests
2020-02-24 21:22:02 +10:00
Damien Elmes
5767ed7a5c switch to debug builds when running 'develop' for faster compile times 2020-02-24 20:45:25 +10:00
Damien Elmes
3f648eba66 make sure rslib changes trigger rspy rebuild 2020-02-24 19:02:12 +10:00
Damien Elmes
22bb4607c9 ensure rspy rebuilt on buildhash change 2020-02-23 18:47:00 +10:00
Damien Elmes
7230b6e390 support aqt-specific FTL files 2020-02-23 18:00:13 +10:00
Damien Elmes
0e931808c9 translations no longer require an open collection 2020-02-23 14:57:02 +10:00
Damien Elmes
93ddc749c0 set deployment target on Mac builds 2020-02-17 08:40:17 +10:00
Damien Elmes
0f7fc1e960 add proper version 2020-02-17 08:40:16 +10:00
Damien Elmes
ea4de9a6de connect media sync progress to Python, add a progress dialog 2020-02-17 08:40:16 +10:00
Damien Elmes
00f431d94e use separate fn to init backend, for future pyo3 0.9 release compat 2020-02-17 08:40:16 +10:00