Ryo Nakamura
e2da5811ce
test: add test_python.py for testing python-mscp
...
Dockerfiles also adapt themselvs for testing python-mscp bindings.
2023-03-12 20:37:57 +09:00
Ryo Nakamura
597a7a8cba
little cleanup for python bindings
2023-03-12 17:39:51 +09:00
Ryo Nakamura
2416b5f182
fix cleanup
2023-03-12 17:06:02 +09:00
Ryo Nakamura
1028ecb53b
setup.py: read version from VERSION file
2023-03-12 13:21:19 +09:00
Ryo Nakamura
d15a25d1f6
add destructor to mscp class to call mscp_free()
2023-03-12 00:17:11 +09:00
Ryo Nakamura
10812071aa
mscp copy via python bindings works.
...
ToDo: memory for struct instance in pymscp.c is not released until
mscp.free() is called. It is memory leak in a typical pyhotn usage.
Use python extension refcnt instead.
2023-03-12 00:05:39 +09:00
Ryo Nakamura
8ea05729c2
add mscp and pymscp python modules.
...
pymscp is a C Python wrapper for libmscp functions. mscp module
provides simple (?) Python API.
2023-03-11 22:49:19 +09:00
Ryo Nakamura
855ee618a6
add note to mscp_cleanup() and mscp_free()
...
mscp_join() must be called before mscp_cleanup() and mscp_free()
are called. Need fix.
2023-03-11 22:11:44 +09:00
Ryo Nakamura
74d58e986a
move direction from mscp_opts to mscp_init argument
2023-03-11 21:48:07 +09:00
Ryo Nakamura
7e7bc61ff2
start to implement pymscp.c
2023-03-11 20:54:45 +09:00
Ryo Nakamura
d22c02b793
remove numpy from test, and fix compiling single binary mscp
2023-03-10 22:07:07 +09:00
Ryo Nakamura
2477647a3b
fix uninitialized dst_path_is_dir bool
2023-03-10 21:42:00 +09:00
Ryo Nakamura
e037294d3d
add include GNUInstallDirs
2023-03-10 21:11:59 +09:00
Ryo Nakamura
309371ed75
now make install installs libmscp
2023-03-10 21:10:06 +09:00
Ryo Nakamura
1e92ff9e77
fix CMakeLists to build libmscp on ubnutu 22.04
2023-03-10 20:29:46 +09:00
Ryo Nakamura
b3b7299990
merge main into lib
2023-03-10 20:11:44 +09:00
Ryo Nakamura
ca94d77e45
fix typo
2023-03-10 02:09:04 +09:00
Ryo Nakamura
34a0e0c891
add alpine docker to build mscp as a single binary
...
The build recipe in docker/alpine-3.17.Dockerfile uses conan to
build mscp as a single binary (with statically linked musl).
Now the mscp binary is portable!
2023-03-10 00:37:06 +09:00
Ryo Nakamura
c39ab7ce62
add conanfile.txt to compile mscp as a single binary
...
conan cmake build with -DBUILD_CONAN=ON and -DBUILD_STATIC=ON in
alpine make mscp as a single binary with statically linked musl.
2023-03-09 23:21:58 +09:00
Ryo Nakamura
e56e1be4f6
Merge branch 'main' of github.com:upa/mscp into main
2023-03-09 22:33:04 +09:00
Ryo Nakamura
c07bdd60e5
fix cmake: remove modification to libssh CMake
2023-03-09 22:32:42 +09:00
Ryo Nakamura
d766b3a99e
fix dryrun handling on main.c
2023-03-04 19:01:44 +09:00
Ryo Nakamura
d5a86292b7
add doxygen for mscp.h
2023-03-04 18:47:44 +09:00
Ryo Nakamura
cc18c74d32
remove sigalrm. integrate print messages and progress bar
2023-03-04 17:37:19 +09:00
Ryo Nakamura
205c7cf803
tiny fix for clang warning
2023-03-04 16:50:34 +09:00
Ryo Nakamura
e67b7468e5
use setitimer instead of alarm, and print message.
...
print_stat now prints messages per interval.
ToDo:
- realtime message printing
- use timer_create instead of setitimer (mscOS has different one)
2023-03-04 16:48:26 +09:00
Ryo Nakamura
f9c8dec389
compilable on ubuntu
2023-03-04 15:53:54 +09:00
Ryo Nakamura
9342c18f0e
accidentaly swap min_chunk_sz and max_chunk_sz...
2023-03-04 15:53:42 +09:00
Ryo Nakamura
df2f922b0d
remove pprint, use message (mpr_*) instead.
...
ToDo:
main should use pipe to receive messages from libmscp.
2023-03-04 15:44:10 +09:00
Ryo Nakamura
1e57e8fb2f
implementing messaging.
...
ToDo: remove pprint.
mscp should use mpr_* functions, and main.c should use
just fprintf(stdout, "\r\033[K" fmt, ...) for printing progress bar.
2023-03-03 22:14:54 +09:00
Ryo Nakamura
1b9ae51974
add message.h and message.c, mscp_set|get_error()
...
Instead of pr_err(), libmscp uses mscp_set_error() and
applications use mscp_get_errror() to get error message.
2023-03-03 21:29:43 +09:00
Ryo Nakamura
c5aa70d9c9
tiny cleanup
2023-03-03 18:30:34 +09:00
Ryo Nakamura
a0b7482f66
add mscp_get_stats
...
move progress bar-related functions from mscp.c to main.c.
2023-03-03 18:27:14 +09:00
Ryo Nakamura
363296f499
add mscp_ssh_opts and change -C optarg
2023-03-03 16:50:06 +09:00
Ryo Nakamura
a8af79f9cf
remove test.c
2023-02-27 10:57:10 +09:00
Ryo Nakamura
fc45fa2532
add comments to mscp.h
2023-02-26 23:56:57 +09:00
Ryo Nakamura
ca0ea3ee77
tiny fix on comment
2023-02-26 23:46:53 +09:00
Ryo Nakamura
c649742b3e
fix dst path resolve
2023-02-26 23:42:25 +09:00
Ryo Nakamura
700d64b375
now mscp links libmscp
2023-02-26 23:18:39 +09:00
Ryo Nakamura
2bad21bdc2
set default params in mscp_init
2023-02-26 18:43:24 +09:00
Ryo Nakamura
89777032cd
have written mscp.c
2023-02-26 18:17:58 +09:00
Ryo Nakamura
3d26cc2c18
add copy-related functions to path
2023-02-25 23:39:20 +09:00
Ryo Nakamura
1be9b70808
start to impliment mscp as a library
...
this commit starts to refactor file.h|c to path.h|c and
add mscp.c|h. not completed yet.
2023-02-25 22:17:29 +09:00
Ryo Nakamura
b4c021c954
README: add instructions for package install
2023-02-18 16:23:13 +09:00
Ryo Nakamura
32f4b450ea
bump version to 0.0.6
v0.0.6
2023-02-16 18:24:19 +09:00
Ryo Nakamura
dbc96f9166
add -r option (but no effect)
2023-02-16 18:04:16 +09:00
Ryo Nakamura
fd5c6e971e
add \n at the final output
2023-02-16 17:59:26 +09:00
Ryo Nakamura
44b21994b5
fix typo on README
2023-01-09 15:57:53 +09:00
Ryo Nakamura
c18fb6996f
remove unnecessary pr_warn
2023-01-05 21:37:50 +09:00
Ryo Nakamura
e56336286a
update README.md
2022-12-26 15:33:34 +09:00