Skip to content

Commit 6c93dab

Browse files
committed
Release 1.0.0
1 parent f9468ae commit 6c93dab

14 files changed

+89
-73
lines changed

AUTHORS.rst

+10-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Authors::
66
Sviatoslav Sydorenko
77
Matthias Bartelmeß
88
W. Trevor King
9+
Robert Coup
910
Dave Borowitz
1011
Brandon Milton
1112
Daniel Rodríguez Troitiño
@@ -37,6 +38,7 @@ Authors::
3738
Nicolas Dandrimont
3839
Raphael Medaer (Escaux)
3940
Anatoly Techtonik
41+
Dan Sully
4042
David Versmisse
4143
Mikhail Yushkovskiy
4244
Robin Stocker
@@ -57,7 +59,6 @@ Authors::
5759
Nika Layzell
5860
Peter-Yi Zhang
5961
Petr Viktorin
60-
Robert Coup
6162
Robert Hölzl
6263
Ron Cohen
6364
Thomas Kluyver
@@ -68,6 +69,8 @@ Authors::
6869
Andrey Devyatkin
6970
Arno van Lumig
7071
Ben Davis
72+
Colin Watson
73+
Drew DeVault
7174
Dustin Raimondi
7275
Eric Schrijver
7376
Greg Fitzgerald
@@ -86,6 +89,7 @@ Authors::
8689
Kaarel Kitsemets
8790
Ken Dreyer
8891
Kevin KIN-FOO
92+
Marcel Waldvogel
8993
Masud Rahman
9094
Michael Sondergaard
9195
Natanael Arndt
@@ -111,7 +115,7 @@ Authors::
111115
Chason Chaffin
112116
Chris Jerdonek
113117
Chris Rebert
114-
Colin Watson
118+
Christopher Hunt
115119
Cristian Hotea
116120
Cyril Jouve
117121
Daniel Bruce
@@ -127,9 +131,11 @@ Authors::
127131
Erik van Zijst
128132
Ferengee
129133
Frazer McLean
134+
Gregory Herrero
130135
Gustavo Di Pietro
131136
Holger Frey
132137
Hugh Cole-Baker
138+
Isabella Stephens
133139
Jasper Lievisse Adriaanse
134140
Jonathan Robson
135141
Josh Bleecher Snyder
@@ -152,11 +158,12 @@ Authors::
152158
Rodrigo Bistolfi
153159
Ross Nicoll
154160
Rui Abreu Ferreira
161+
Saul Pwanson
162+
Shane Turner
155163
Sheeo
156164
Soasme
157165
Steven Winfield
158166
Vladimir Rutsky
159167
Yu Jianjian
160168
chengyuhang
161169
earl
162-
Dan Sully

CHANGELOG.rst

+18-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1.0.0 (UNRELEASED)
1+
1.0.0 (2019-12-06)
22
-------------------------
33

44
- Drop Python 2.7 and 3.4 support, six no longer required
@@ -7,25 +7,34 @@
77
- Add Python 3.8 support
88
`#918 <https://github.com/libgit2/pygit2/issues/918>`_
99

10-
- New ``Repository.odb`` returns new ``Odb`` type instance. And new
11-
``OdbBackend`` type.
12-
`#940 <https://github.com/libgit2/pygit2/pull/940>`_
13-
`#942 <https://github.com/libgit2/pygit2/pull/942>`_
14-
1510
- New support for ``/`` operator to traverse trees
1611
`#903 <https://github.com/libgit2/pygit2/pull/903>`_
1712
`#924 <https://github.com/libgit2/pygit2/issues/924>`_
1813

14+
- New ``Branch.raw_branch_name``
15+
`#954 <https://github.com/libgit2/pygit2/pull/954>`_
16+
1917
- New ``Index.remove_all()``
2018
`#920 <https://github.com/libgit2/pygit2/pull/920>`_
2119

20+
- New ``Remote.ls_remotes(..)``
21+
`#935 <https://github.com/libgit2/pygit2/pull/935>`_
22+
`#936 <https://github.com/libgit2/pygit2/issues/936>`_
23+
2224
- New ``Repository.lookup_reference_dwim(..)`` and ``Repository.resolve_refish(..)``
2325
`#922 <https://github.com/libgit2/pygit2/issues/922>`_
2426
`#923 <https://github.com/libgit2/pygit2/pull/923>`_
2527

26-
- New ``Remote.ls_remotes(..)``
27-
`#935 <https://github.com/libgit2/pygit2/pull/935>`_
28-
`#936 <https://github.com/libgit2/pygit2/issues/936>`_
28+
- New ``Repository.odb`` returns new ``Odb`` type instance. And new
29+
``OdbBackend`` type.
30+
`#940 <https://github.com/libgit2/pygit2/pull/940>`_
31+
`#942 <https://github.com/libgit2/pygit2/pull/942>`_
32+
33+
- New ``Repository.references.compress()``
34+
`#961 <https://github.com/libgit2/pygit2/pull/961>`_
35+
36+
- Optimization: Load notes lazily
37+
`#958 <https://github.com/libgit2/pygit2/pull/958>`_
2938

3039
- Fix spurious exception in config
3140
`#916 <https://github.com/libgit2/pygit2/issues/916>`_

docs/backends.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
**********************************************************************
2-
Custom backends
2+
Backends
33
**********************************************************************
44

55
There is some support for custom backends, but undocumented. See

docs/branches.rst

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
**********************************************************************
2+
Branches
3+
**********************************************************************
4+
5+
.. py:attribute:: Repository.branches
6+
7+
Branches inherit from References, and additionally provide specialized
8+
accessors for some unique features.
9+
10+
.. autoclass:: pygit2.repository.Branches
11+
:members:
12+
:undoc-members:
13+
:special-members: __getitem__, __iter__, __contains__
14+
15+
Example::
16+
17+
>>> # Listing all branches
18+
>>> branches_list = list(repo.branches)
19+
>>> # Local only
20+
>>> local_branches = list(repo.branches.local)
21+
>>> # Remote only
22+
>>> remote_branches = list(repo.branches.remote)
23+
24+
>>> # Get a branch
25+
>>> branch = repo.branches['master']
26+
>>> other_branch = repo.branches['does-not-exist'] # Will raise a KeyError
27+
>>> other_branch = repo.branches.get('does-not-exist') # Returns None
28+
29+
>>> remote_branch = repo.branches.remote['upstream/feature']
30+
31+
>>> # Create a local branch
32+
>>> new_branch = repo.branches.local.create('new-branch')
33+
34+
>>> And delete it
35+
>>> repo.branches.delete('new-branch')
36+
37+
38+
The Branch type
39+
====================
40+
41+
.. autoclass:: pygit2.Branch
42+
:members:

docs/log.rst docs/commit_log.rst

File renamed without changes.

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
# built documents.
4949
#
5050
# The short X.Y version.
51-
version = '0.28'
51+
version = '1.0'
5252
# The full version, including alpha/beta/rc tags.
53-
release = '0.28.2'
53+
release = '1.0.0'
5454

5555
# The language for content autogenerated by Sphinx. Refer to documentation
5656
# for a list of supported languages.

docs/development.rst

+5
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ Example::
4141

4242
>>> f(...)
4343
"""
44+
45+
Running Valgrind
46+
===================================
47+
48+
valgrind --tool=memcheck --suppressions=misc/valgrind-python.supp ~/Python-3.7.4/bin/pytest

docs/index.rst

+6-5
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,25 @@ Usage guide:
3232
:maxdepth: 1
3333

3434
general
35-
repository
36-
oid
37-
objects
3835

3936
backends
4037
blame
38+
branches
39+
commit_log
4140
config
4241
diff
4342
features
44-
log
43+
index_file
4544
mailmap
4645
merge
46+
oid
47+
objects
4748
references
4849
remotes
50+
repository
4951
revparse
5052
settings
5153
submodule
52-
working-copy
5354
worktree
5455

5556

docs/working-copy.rst docs/index_file.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
**********************************************************************
2-
The Index file and the Working copy
2+
Index file & Working copy
33
**********************************************************************
44

55
.. autoattribute:: pygit2.Repository.index

docs/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ History: the 0.x series
9090
-----------------------
9191

9292
The development of pygit2 started in October 2010, the release of 1.0.0
93-
happened in November 2019. In the 0.x series the version numbering was
93+
happened in December 2019. In the 0.x series the version numbering was
9494
lockstep with libgit2, e.g. pygit2 0.28.x worked with libgit2 0.28.x
9595

9696

docs/objects.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
**********************************************************************
2-
Git Objects
2+
Objects
33
**********************************************************************
44

55
There are four types of Git objects: blobs, trees, commits and tags. For each

docs/references.rst

-48
Original file line numberDiff line numberDiff line change
@@ -101,54 +101,6 @@ Example. These two lines are equivalent::
101101
.. autoattribute:: pygit2.Repository.head_is_detached
102102
.. autoattribute:: pygit2.Repository.head_is_unborn
103103

104-
Branches
105-
====================
106-
107-
.. py:attribute:: Repository.branches
108-
109-
Branches inherit from References, and additionally provide specialized
110-
accessors for some unique features.
111-
112-
.. autoclass:: pygit2.repository.Branches
113-
:members:
114-
:undoc-members:
115-
:special-members: __getitem__, __iter__, __contains__
116-
117-
Example::
118-
119-
>>> # Listing all branches
120-
>>> branches_list = list(repo.branches)
121-
>>> # Local only
122-
>>> local_branches = list(repo.branches.local)
123-
>>> # Remote only
124-
>>> remote_branches = list(repo.branches.remote)
125-
126-
>>> # Get a branch
127-
>>> branch = repo.branches['master']
128-
>>> other_branch = repo.branches['does-not-exist'] # Will raise a KeyError
129-
>>> other_branch = repo.branches.get('does-not-exist') # Returns None
130-
131-
>>> remote_branch = repo.branches.remote['upstream/feature']
132-
133-
>>> # Create a local branch
134-
>>> new_branch = repo.branches.local.create('new-branch')
135-
136-
>>> And delete it
137-
>>> repo.branches.delete('new-branch')
138-
139-
140-
The Branch type
141-
====================
142-
143-
.. autoattribute:: pygit2.Branch.branch_name
144-
.. autoattribute:: pygit2.Branch.remote_name
145-
.. autoattribute:: pygit2.Branch.upstream
146-
.. autoattribute:: pygit2.Branch.upstream_name
147-
.. automethod:: pygit2.Branch.rename
148-
.. automethod:: pygit2.Branch.delete
149-
.. automethod:: pygit2.Branch.is_head
150-
.. automethod:: pygit2.Branch.is_checked_out
151-
152104
The reference log
153105
====================
154106

docs/repository.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
**********************************************************************
2-
The repository
2+
Repository
33
**********************************************************************
44

55
Everything starts either by creating a new repository, or by opening an

pygit2/_build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#
3636
# The version number of pygit2
3737
#
38-
__version__ = '0.28.2'
38+
__version__ = '1.0.0'
3939

4040

4141
#

0 commit comments

Comments
 (0)