Here are the changes for libvcs.
- :issue:`296` - Move from Pipfile to poetry
- Sort imports
- Add isort package, isort configuration in setup.cfg, and
make isort
task to Makefile. - Add
project_urls
to setup.py
- Move vcspull to the vcs-python organization
- Fix issue where VCS objects failed to set attribute in Ubuntu 18.04.
- Update documentation to point to libvcs.git-pull.com
- Switch doc theme to alabaster
- Pin and update libraries via pyup - update vulture 0.8.1 to 0.11 - update flake8 from 2.5.4 to 3.2.1 - update pytest-mock from 1.4.0 to 1.5.0 - update pytest from 3.0.4 to 3.0.5 - pin alabaster to 0.7.9 - pin sphinx to 1.5.1
- Fix bug with unused
support
module in vcspull. See #43
- Update pytest to 3.0.2, remove unused pytest-raisesregexp dependency.
- Fix bug in
which
when executable is not found. Allow specifying search paths manually. - Better support for missing VCS when testing on git and subversion.
- :issue:`9` Support for
progress_callback
to use realtime output from commands in progress (such asgit fetch
). - :issue:`9` More tests, internal factoring and documentation, thanks @jcfr
- :issue:`9` Official support for pypy, pypy3
- :issue:`11` : Fix unbound local when updating git repos
- :issue:`7` Add
check_returncode
property to run, thanks @jcfr - :issue:`8` Remove all cases of
run_buffered
/ buffering from the library.
:issue:`5` Remove colorama dependency
:issue:`6` Remove log module. Logging defaults.
The library user can still use formatters and set log levels, for an example, see the vcspull logging setup.
An example:
import logging # your app log.setLevel(level) log.addHandler(logging.StreamHandler()) # vcslib logging options vcslogger = logging.getLogger('libvcs') vcslogger.propagate = False # don't pass libvcs settings up scope vcslogger.addHandler(logging.StreamHandler()) vcslogger.setLevel(level)
You can also use
logging.Formatter
variablesrepo_name
andrepo_vcs
with repos:repo_channel = logging.StreamHandler() repo_formatter = logging.Formatter( '[%(repo_name)s] (%(repo_vcs)s) %(levelname)1.1s: %(message)s' ) repo_channel.setFormatter(repo_formatter) vcslogger = logging.getLogger('libvcs') vcslogger.propagate = False # don't pass libvcs settings up scope vcslogger.addHandler(repo_channel) vcslogger.setLevel(level)
- Fix issue where repo context wouldn't pass to repo logging adapter
- Fix print_stdout_on_progress_end signature in git update
create_repo
function for regular vcs urls- API docs updated
- change signature on
create_repo_from_pip_url
to acceptpip_url
insetad ofurl
. Base
to acceptrepo_dir
instead ofname
andparent_dir
.
- remove unneeded pyyaml, kaptan and click dependencies
- libvcs split from vcspull