pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-git: update to 2.0.8.



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Sun Oct 9 10:29:06 2016 +0200
Changeset:	9dbecaa01a93866af9ba90e2990c8fe3c17fadf4

Modified Files:
	py-git/Makefile
	py-git/PLIST
	py-git/distinfo

Log Message:
py-git: update to 2.0.8.

Quite a number of self-tests fail, but nevertheless this mostly
seems to work.

2.0.8 - Features and Bugfixes

    DiffIndex.iter_change_type(...) produces better results when diffing an index against the working tree.
    Repo().is_dirty(...) now supports the path parameter, to specify a single path by which to filter the output. Similar to git status <path>
    Symbolic refs created by this library will now be written with a newline character, which was previously missing.
    blame() now properly preserves multi-line commit messages.
    No longer corrupt ref-logs by writing multi-line comments into them.

2.0.7 - New Features

    IndexFile.commit(...,skip_hooks=False) added. This parameter emulates the

        behaviour of --no-verify on the command-line.

2.0.6 - Fixes and Features

    Fix: remote output parser now correctly matches refs with non-ASCII chars in them
    API: Diffs now have a_rawpath, b_rawpath, raw_rename_from, raw_rename_to properties, which are the raw-bytes equivalents of their unicode path counterparts.
    Fix: TypeError about passing keyword argument to string decode() on Python 2.6.
    Feature: setUrl API on Remotes

2.0.5 - Fixes

    Fix: parser of fetch info lines choked on some legitimate lines

2.0.4 - Fixes

    Fix: parser of commit object data is now robust against cases where commit object contains invalid bytes. The invalid characters are now replaced rather than choked on.
    Fix: non-ASCII paths are now properly decoded and returned in .diff() output
    Fix: RemoteProgress will now strip the ', ' prefix or suffix from messages.
    API: Remote.[fetch|push|pull](...) methods now allow the progress argument to be a callable. This saves you from creating a custom type with usually just one implemented method.

2.0.3 - Fixes

    Fix: bug in git-blame --incremental output parser that broken when commit messages contained \r characters
    Fix: progress handler exceptions are not caught anymore, which would usually just hide bugs previously.
    Fix: The Git.execute method will now redirect stdout to devnull if with_stdout is false, which is the intended behaviour based on the parameter's documentation.

2.0.2 - Fixes

    Fix: source package does not include *.pyc files
    Fix: source package does include doc sources

2.0.1 - Fixes

    Fix: remote output parser now correctly matches refs with "@" in them

2.0.0 - Features

Please note that due to breaking changes, we have to increase the major version.

    IMPORTANT: This release drops support for python 2.6, which is officially deprecated by the python maintainers.
    CRITICAL: Diff objects created with patch output will now not carry the --- and +++ header lines anymore. All diffs now start with the @@ header line directly. Users that rely on the old behaviour can now (reliably) read this information from the a_path and b_path properties without having to parse these lines manually.
    Commit now has extra properties authored_datetime and committer_datetime (to get Python datetime instances rather than timestamps)
    Commit.diff() now supports diffing the root commit via Commit.diff(NULL_TREE).
    Repo.blame() now respects incremental=True, supporting incremental blames. Incremental blames are slightly faster since they don't include the file's contents in them.
    Fix: Diff objects created with patch output will now have their a_path and b_path properties parsed out correctly. Previously, some values may have been populated incorrectly when a file was added or deleted.
    Fix: diff parsing issues with paths that contain "unsafe" chars, like spaces, tabs, backslashes, etc.

1.0.2 - Fixes

    IMPORTANT: Changed default object database of Repo objects to GitComdObjectDB. The pure-python implementation used previously usually fails to release its resources (i.e. file handles), which can lead to problems when working with large repositories.
    CRITICAL: fixed incorrect Commit object serialization when authored or commit date had timezones which were not divisiblej by 3600 seconds. This would happen if the timezone was something like +0530 for instance.
    A list of all additional fixes can be found on github
    CRITICAL: Tree.cache was removed without replacement. It is technically impossible to change individual trees and expect their serialization results to be consistent with what git expects. Instead, use the IndexFile facilities to adjust the content of the staging area, and write it out to the respective tree objects using IndexFile.write_tree() instead.

1.0.1 - Fixes

    A list of all issues can be found on github

1.0.0 - Notes

This version is equivalent to v0.3.7, but finally acknowledges that GitPython is stable and production ready.

It follows the semantic version scheme, and thus will not break its existing API unless it goes 2.0.
0.3.7 - Fixes

    IndexFile.add() will now write the index without any extension data by default. However, you may override this behaviour with the new write_extension_data keyword argument.
        Renamed ignore_tree_extension_data keyword argument in IndexFile.write(...) to ignore_extension_data
    If the git command executed during Remote.push(...)|fetch(...) returns with an non-zero exit code and GitPython didn't obtain any head-information, the corresponding GitCommandError will be raised. This may break previous code which expected these operations to never raise. However, that behavious is undesirable as it would effectively hide the fact that there was an error. See this issue for more information.
    If the git executable can't be found in the PATH or at the path provided by GIT_PYTHON_GIT_EXECUTABLE, this is made obvious by throwing GitCommandNotFound, both on unix and on windows.
        Those who support GUI on windows will now have to set git.Git.USE_SHELL = True to get the previous behaviour.
    A list of all issues can be found on github

0.3.6 - Features

    DOCS
        special members like __init__ are now listed in the API documentation
        tutorial section was revised entirely, more advanced examples were added.
    POSSIBLY BREAKING CHANGES
        As rev_parse will now throw BadName as well as BadObject, client code will have to catch both exception types.
        Repo.working_tree_dir now returns None if it is bare. Previously it raised AssertionError.
        IndexFile.add() previously raised AssertionError when paths where used with bare repository, now it raises InvalidGitRepositoryError
    Added Repo.merge_base() implementation. See the respective issue on github
    [include] sections in git configuration files are now respected
    Added GitConfigParser.rename_section()
    Added Submodule.rename()
    A list of all issues can be found on github

0.3.5 - Bugfixes

    push/pull/fetch operations will not block anymore
    diff() can now properly detect renames, both in patch and raw format. Previously it only worked when create_patch was True.
    repo.odb.update_cache() is now called automatically after fetch and pull operations. In case you did that in your own code, you might want to remove your line to prevent a double-update that causes unnecessary IO.
    Repo(path) will not automatically search upstream anymore and find any git directory on its way up. If you need that behaviour, you can turn it back on using the new search_parent_directories=True flag when constructing a Repo object.
    IndexFile.commit() now runs the pre-commit and post-commit hooks. Verified to be working on posix systems only.
    A list of all fixed issues can be found here: https://github.com/gitpython-developers/GitPython/issues?q=milestone%3A%22v0.3.5+-+bugfixes%22+

0.3.4 - Python 3 Support

    Internally, hexadecimal SHA1 are treated as ascii encoded strings. Binary SHA1 are treated as bytes.
    Id attribute of Commit objects is now hexsha, instead of binsha. The latter makes no sense in python 3 and I see no application of it anyway besides its artificial usage in test cases.
    IMPORTANT: If you were using the config_writer(), you implicitly relied on __del__ to work as expected to flush changes. To be sure changes are flushed under PY3, you will have to call the new release() method to trigger a flush. For some reason, __del__ is not called necessarily anymore when a symbol goes out of scope.
    The Tree now has a .join('name') method which is equivalent to tree / 'name'

0.3.3

    When fetching, pulling or pushing, and an error occours, it will not be reported on stdout anymore. However, if there is a fatal error, it will still result in a GitCommandError to be thrown. This goes hand in hand with improved fetch result parsing.
    Code Cleanup (in preparation for python 3 support)
        Applied autopep8 and cleaned up code
        Using python logging module instead of print statments to signal certain kinds of errors

0.3.2.1

    Fix for #207

0.3.2

    Release of most recent version as non-RC build, just to allow pip to install the latest version right away.
    Have a look at the milestones (https://github.com/gitpython-developers/GitPython/milestones) to see what's next.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9dbecaa01a93866af9ba90e2990c8fe3c17fadf4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-git/Makefile | 17 +++++++++++------
 py-git/PLIST    | 46 +++++++++++++++++++++++++++++++++++++++++++++-
 py-git/distinfo |  7 ++++---
 3 files changed, 60 insertions(+), 10 deletions(-)

diffs:
diff --git a/py-git/Makefile b/py-git/Makefile
index 63a9444..e2de9e0 100644
--- a/py-git/Makefile
+++ b/py-git/Makefile
@@ -1,19 +1,24 @@
 # $NetBSD: Makefile,v 1.3 2014/12/31 13:58:32 thomasklausner Exp $
 
-DISTNAME=	GitPython-0.3.2.RC1
-PKGNAME=	${PYPKGPREFIX}-git-0.3.2.rc1
-EGG_NAME=	${DISTNAME:S/.RC/rc/}
+DISTNAME=	GitPython-2.0.8
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/GitPython/git/}
 CATEGORIES=	devel python
 MASTER_SITES=	${MASTER_SITE_PYPI:=G/GitPython/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
-HOMEPAGE=	http://gitorious.org/projects/git-python/
+HOMEPAGE=	https://github.com/gitpython-developers/GitPython
 COMMENT=	Python library used to interact with Git repositories
 LICENSE=	modified-bsd
 
-#DEPENDS+=	${PYPKGPREFIX}-gitdb>=0.6.1:../../wip/py-gitdb
+DEPENDS+=	${PYPKGPREFIX}-smmap>=0.8.5:../../wip/py-smmap
+DEPENDS+=	${PYPKGPREFIX}-gitdb>=0.6.1:../../wip/py-gitdb
+DEPENDS+=	git>=1.7.0:../../devel/git
 
-PYTHON_VERSIONS_INCOMPATIBLE=	34 35 # not yet ported as of 0.3.2.RC1
+# TEST_DEPENDS
+BUILD_DEPENDS+=	${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
+BUILD_DEPENDS+=	${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
+
+#PYTHON_VERSIONS_INCOMPATIBLE=	34 35 # not yet ported as of 0.3.2.RC1
 
 USE_LANGUAGES=	# none
 
diff --git a/py-git/PLIST b/py-git/PLIST
index 3d46eef..9eff2e3 100644
--- a/py-git/PLIST
+++ b/py-git/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2012/01/06 11:19:04 jihbed Exp $
+@comment $NetBSD$
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -11,6 +11,9 @@ ${PYSITELIB}/git/__init__.pyo
 ${PYSITELIB}/git/cmd.py
 ${PYSITELIB}/git/cmd.pyc
 ${PYSITELIB}/git/cmd.pyo
+${PYSITELIB}/git/compat.py
+${PYSITELIB}/git/compat.pyc
+${PYSITELIB}/git/compat.pyo
 ${PYSITELIB}/git/config.py
 ${PYSITELIB}/git/config.pyc
 ${PYSITELIB}/git/config.pyo
@@ -114,24 +117,45 @@ ${PYSITELIB}/git/test/__init__.py
 ${PYSITELIB}/git/test/__init__.pyc
 ${PYSITELIB}/git/test/__init__.pyo
 ${PYSITELIB}/git/test/fixtures/blame
+${PYSITELIB}/git/test/fixtures/blame_binary
+${PYSITELIB}/git/test/fixtures/blame_complex_revision
+${PYSITELIB}/git/test/fixtures/blame_incremental
+${PYSITELIB}/git/test/fixtures/cat_file.py
+${PYSITELIB}/git/test/fixtures/cat_file.pyc
+${PYSITELIB}/git/test/fixtures/cat_file.pyo
 ${PYSITELIB}/git/test/fixtures/cat_file_blob
 ${PYSITELIB}/git/test/fixtures/cat_file_blob_nl
 ${PYSITELIB}/git/test/fixtures/cat_file_blob_size
+${PYSITELIB}/git/test/fixtures/commit_invalid_data
+${PYSITELIB}/git/test/fixtures/commit_with_gpgsig
 ${PYSITELIB}/git/test/fixtures/diff_2
 ${PYSITELIB}/git/test/fixtures/diff_2f
+${PYSITELIB}/git/test/fixtures/diff_abbrev-40_full-index_M_raw_no-color
 ${PYSITELIB}/git/test/fixtures/diff_f
+${PYSITELIB}/git/test/fixtures/diff_file_with_spaces
 ${PYSITELIB}/git/test/fixtures/diff_i
+${PYSITELIB}/git/test/fixtures/diff_index_patch
+${PYSITELIB}/git/test/fixtures/diff_index_raw
+${PYSITELIB}/git/test/fixtures/diff_initial
 ${PYSITELIB}/git/test/fixtures/diff_mode_only
 ${PYSITELIB}/git/test/fixtures/diff_new_mode
 ${PYSITELIB}/git/test/fixtures/diff_numstat
 ${PYSITELIB}/git/test/fixtures/diff_p
+${PYSITELIB}/git/test/fixtures/diff_patch_binary
+${PYSITELIB}/git/test/fixtures/diff_patch_unsafe_paths
+${PYSITELIB}/git/test/fixtures/diff_raw_binary
 ${PYSITELIB}/git/test/fixtures/diff_rename
+${PYSITELIB}/git/test/fixtures/diff_rename_raw
 ${PYSITELIB}/git/test/fixtures/diff_tree_numstat_root
 ${PYSITELIB}/git/test/fixtures/for_each_ref_with_path_component
 ${PYSITELIB}/git/test/fixtures/git_config
 ${PYSITELIB}/git/test/fixtures/git_config_global
+${PYSITELIB}/git/test/fixtures/git_config_with_comments
+${PYSITELIB}/git/test/fixtures/git_config_with_empty_value
+${PYSITELIB}/git/test/fixtures/git_file
 ${PYSITELIB}/git/test/fixtures/index
 ${PYSITELIB}/git/test/fixtures/index_merge
+${PYSITELIB}/git/test/fixtures/issue-301_stderr
 ${PYSITELIB}/git/test/fixtures/ls_tree_a
 ${PYSITELIB}/git/test/fixtures/ls_tree_b
 ${PYSITELIB}/git/test/fixtures/ls_tree_commit
@@ -153,6 +177,8 @@ ${PYSITELIB}/git/test/fixtures/rev_list_delta_b
 ${PYSITELIB}/git/test/fixtures/rev_list_single
 ${PYSITELIB}/git/test/fixtures/rev_parse
 ${PYSITELIB}/git/test/fixtures/show_empty_commit
+${PYSITELIB}/git/test/fixtures/uncommon_branch_prefix_FETCH_HEAD
+${PYSITELIB}/git/test/fixtures/uncommon_branch_prefix_stderr
 ${PYSITELIB}/git/test/lib/__init__.py
 ${PYSITELIB}/git/test/lib/__init__.pyc
 ${PYSITELIB}/git/test/lib/__init__.pyo
@@ -162,6 +188,21 @@ ${PYSITELIB}/git/test/lib/asserts.pyo
 ${PYSITELIB}/git/test/lib/helper.py
 ${PYSITELIB}/git/test/lib/helper.pyc
 ${PYSITELIB}/git/test/lib/helper.pyo
+${PYSITELIB}/git/test/performance/__init__.py
+${PYSITELIB}/git/test/performance/__init__.pyc
+${PYSITELIB}/git/test/performance/__init__.pyo
+${PYSITELIB}/git/test/performance/lib.py
+${PYSITELIB}/git/test/performance/lib.pyc
+${PYSITELIB}/git/test/performance/lib.pyo
+${PYSITELIB}/git/test/performance/test_commit.py
+${PYSITELIB}/git/test/performance/test_commit.pyc
+${PYSITELIB}/git/test/performance/test_commit.pyo
+${PYSITELIB}/git/test/performance/test_odb.py
+${PYSITELIB}/git/test/performance/test_odb.pyc
+${PYSITELIB}/git/test/performance/test_odb.pyo
+${PYSITELIB}/git/test/performance/test_streams.py
+${PYSITELIB}/git/test/performance/test_streams.pyc
+${PYSITELIB}/git/test/performance/test_streams.pyo
 ${PYSITELIB}/git/test/test_actor.py
 ${PYSITELIB}/git/test/test_actor.pyc
 ${PYSITELIB}/git/test/test_actor.pyo
@@ -183,6 +224,9 @@ ${PYSITELIB}/git/test/test_db.pyo
 ${PYSITELIB}/git/test/test_diff.py
 ${PYSITELIB}/git/test/test_diff.pyc
 ${PYSITELIB}/git/test/test_diff.pyo
+${PYSITELIB}/git/test/test_docs.py
+${PYSITELIB}/git/test/test_docs.pyc
+${PYSITELIB}/git/test/test_docs.pyo
 ${PYSITELIB}/git/test/test_fun.py
 ${PYSITELIB}/git/test/test_fun.pyc
 ${PYSITELIB}/git/test/test_fun.pyo
diff --git a/py-git/distinfo b/py-git/distinfo
index b97790a..314e543 100644
--- a/py-git/distinfo
+++ b/py-git/distinfo
@@ -1,5 +1,6 @@
 $NetBSD: distinfo,v 1.1.1.1 2012/01/06 11:19:04 jihbed Exp $
 
-SHA1 (GitPython-0.3.2.RC1.tar.gz) = b9f43c91452f3fe7e105ac54ce878ff20ea44f44
-RMD160 (GitPython-0.3.2.RC1.tar.gz) = 75488dcfe0be35066cd39eb63f909f999f17cdda
-Size (GitPython-0.3.2.RC1.tar.gz) = 313486 bytes
+SHA1 (GitPython-2.0.8.tar.gz) = 6104c4e3ea13c3ba8cf4ddda0ea1c726156aa0bb
+RMD160 (GitPython-2.0.8.tar.gz) = cf7f0a3abe84a9d905f412ba72b242970fe2d684
+SHA512 (GitPython-2.0.8.tar.gz) = 8a4bfce39d28e0872189d71900e73b2ab51bf7488539fafe3d45f4e1900b4af014b7bd7f73b44e7cfa38341ee113f37e4c5680d0b98b68fc3af6f287f4d859fd
+Size (GitPython-2.0.8.tar.gz) = 407438 bytes


Home | Main Index | Thread Index | Old Index