Damien Elmes
858d470cdb
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
e85c48298c
Fixed make clean rule not working on Windows
2020-04-26 03:02:02 -03:00
Damien Elmes
d29679b070
use same cargo rspy target dir for wheel build
2020-04-25 10:08:24 +10:00
Damien Elmes
12e9293f60
avoid unnecessary work in 'make build'
2020-04-07 10:59:14 +10:00
Damien Elmes
c3b2881eac
require new maturin release for 32 bit support+pypi fix
...
closes #538
2020-04-04 07:39:33 +10:00
Damien Elmes
83c50488fd
use support URL and point to source repo
2020-04-03 08:44:59 +10:00
evandrocoan
30107ab09d
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
4fcecaed9f
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
5aba5c3ab9
drop the separate i18n backend
2020-03-20 21:15:23 +10:00
Damien Elmes
d4df98c90f
release the GIL during a DB request
2020-03-20 21:15:23 +10:00
Damien Elmes
3f3a45e2ba
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
700d713f80
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
bd7ded18c3
drop the protobuf prototype
2020-03-20 21:15:23 +10:00
Damien Elmes
38d4ea5311
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
0d9ea33389
bump version
2020-03-19 10:46:01 +10:00
Damien Elmes
d59d62fa94
add DEVFLAGS for performance testing
2020-03-10 13:36:01 +10:00
Damien Elmes
f6d5d4ea26
rspy version
2020-03-06 19:15:02 +10:00
evandrocoan
584cbe6fc3
Fixed "Makefile:4: warning: undefined variable 'OS'" due the usage
...
of MAKEFLAGS += --warn-undefined-variables
2020-03-03 20:51:56 -03:00
evandrocoan
db49fc2a48
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
e20295575b
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
17dc37151c
Allow to define a externally PYTHON_BIN and ACTIVATE_SCRIPT
2020-03-01 22:41:06 -03:00
evandrocoan
0b6ffff64a
Fixed rspy/Makefile trying to use python3 on Windows
2020-03-01 22:41:06 -03:00
evandrocoan
eaef66ad27
Fixed rspy/Makefile not rebuilding when rspy/src files are changed
2020-03-01 22:38:39 -03:00
evandrocoan
0ae0ad6ce5
Fixed rspy/Makefile trying to use python3 on Windows
2020-03-01 13:24:53 -03:00
Damien Elmes
c97b37b7ae
make logging explicit, and support logging to a file
2020-02-29 20:44:01 +10:00
Damien Elmes
36372991f7
bump rust toolchain for 1.41.1 fixes
2020-02-29 19:42:30 +10:00
Damien Elmes
2f92c9a803
add support for embedding the qt translations
2020-02-27 20:38:34 +10:00
evandrocoan
9e690f80e7
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
2acda4eb63
Fixed misspelling on README.development and added missing FIND_EXEC
...
to rspy/Makefile
2020-02-24 17:03:00 -03:00
evandrocoan
6d16298254
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
1f2552e907
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
e7ea83d342
switch to debug builds when running 'develop' for faster compile times
2020-02-24 20:45:25 +10:00
Damien Elmes
45dd38c6ca
make sure rslib changes trigger rspy rebuild
2020-02-24 19:02:12 +10:00
Damien Elmes
0626d35853
ensure rspy rebuilt on buildhash change
2020-02-23 18:47:00 +10:00
Damien Elmes
024126b3be
support aqt-specific FTL files
2020-02-23 18:00:13 +10:00
Damien Elmes
c98247fa0f
translations no longer require an open collection
2020-02-23 14:57:02 +10:00
Damien Elmes
a98889f69e
set deployment target on Mac builds
2020-02-17 08:40:17 +10:00
Damien Elmes
2cecae4ca7
add proper version
2020-02-17 08:40:16 +10:00
Damien Elmes
738e415463
connect media sync progress to Python, add a progress dialog
2020-02-17 08:40:16 +10:00
Damien Elmes
804432fb3e
use separate fn to init backend, for future pyo3 0.9 release compat
2020-02-17 08:40:16 +10:00
Damien Elmes
b2b8370477
bump nightly for the unwrap source line fix
2020-02-17 08:40:16 +10:00
Damien Elmes
1acb3b86b9
backend init can now fail, and update media db when file is added
...
- Adding files inside Anki now updates the media DB, so a full file
scan at sync time is no longer required if no other changes have been
made.
- Use a protobuf message for backend initialization, and return a
string error if initialization fails.
2020-02-17 08:40:16 +10:00
Damien Elmes
c9a5ed3cc6
add add_file() and write_data()
2020-02-17 08:40:16 +10:00
Damien Elmes
2085bb1a99
bump version
2020-02-16 08:50:10 +10:00
Damien Elmes
2cdbebd099
bump version
...
.19 will be another bugfix release
2020-01-15 13:50:26 +10:00
Damien Elmes
df205ec38f
bump version
2020-01-14 17:28:55 +10:00
Damien Elmes
65d86fe853
update version
2020-01-12 15:10:27 +10:00
Damien Elmes
c88694333b
update readme, remove submodule readmes
2020-01-04 12:21:58 +10:00
Damien Elmes
2648f4d200
BSD wants -i '', GNU wants -i''
2020-01-03 16:02:06 +10:00
Damien Elmes
a113887d56
add buildhash to rspy and aqt, and check all three modules match
2020-01-03 15:15:18 +10:00