Skip to content

Commit df45d85

Browse files
authored
Rename 'master' branch to 'main'
1 parent 882e3b5 commit df45d85

File tree

8 files changed

+16
-30
lines changed

8 files changed

+16
-30
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
- job:
3-
name: elastic+elasticsearch-py+master
4-
display-name: 'elastic / elasticsearch-py # master'
5-
description: Testing the elasticsearch-py master branch.
3+
name: elastic+elasticsearch-py+main
4+
display-name: 'elastic / elasticsearch-py # main'
5+
description: Testing the elasticsearch-py main branch.
66
junit_results: "*-junit.xml"
77
parameters:
88
- string:
99
name: branch_specifier
10-
default: refs/heads/master
10+
default: refs/heads/main
1111
description: the Git branch specifier to build (<branchName>, <tagName>,
1212
<commitId>, etc.)

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
below, and delete the other block.
1111
1212
3. For issues with API definition please note that the API is [auto
13-
generated](https://github.com/elastic/elasticsearch-py/blob/master/CONTRIBUTING.md#api-code-generation)
13+
generated](https://github.com/elastic/elasticsearch-py/blob/main/CONTRIBUTING.md#api-code-generation)
1414
so any problems should be checked and reported against [the Elasticsearch
1515
repo](https://github.com/elastic/elasticsearch) instead.
1616

.github/workflows/unified-release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
- 'README.md'
1010
branches:
1111
- main
12-
- master
1312
- '[0-9]+.[0-9]+'
1413
- '[0-9]+.x'
1514

CONTRIBUTING.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,10 @@ you don't have Elasticsearch running locally the integration tests will be skipp
3232
All the API methods (any method in `elasticsearch.client` classes decorated
3333
with `@query_params`) are actually auto-generated from the
3434
[rest-api-spec](https://github.com/elastic/elasticsearch/tree/master/rest-api-spec/src/main/resources/rest-api-spec/api)
35-
found in the `Elasticsearch` repository. Any changes to those methods should be
36-
done either by submitting a PR to Elasticsearch itself (in case of adding or
37-
modifying any of the API methods) or to the [Generate
38-
Script](https://github.com/elastic/elasticsearch-py/blob/master/utils/generate-api.py).
39-
40-
To run the code generation make sure you have pre-requisites installed:
41-
42-
* by running `python -m pip install -e '.[develop]'`
43-
* having the [elasticsearch](https://github.com/elastic/elasticsearch) repo
44-
cloned on the same level as `elasticsearch-py` and switched to appropriate
45-
version
46-
47-
Then you should be able to run the code generation by invoking:
48-
49-
```
50-
$ python utils/generate-api.py 8.0.0-SNAPSHOT
51-
```
35+
found in the `Elasticsearch` or the [Elasticsearch specification](https://github.com/elastic/elasticsearch-specification)
36+
repositories. Any changes to those methods should be done either by submitting a PR to one of these repositories
37+
instead of directly to the Python client otherwise your change will be overwritten the
38+
next time the APIs are generated.
5239

5340
## Contributing Code Changes
5441

@@ -76,7 +63,7 @@ The process for contributing to any of the Elasticsearch repositories is similar
7663

7764
3. Rebase your changes.
7865
Update your local repository with the most recent code from the main
79-
elasticsearch-py repository, and rebase your branch on top of the latest master
66+
elasticsearch-py repository, and rebase your branch on top of the latest `main`
8067
branch. We prefer your changes to be squashed into a single commit for easier
8168
backporting.
8269

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Elasticsearch Python Client
1515
.. image:: https://pepy.tech/badge/elasticsearch
1616
:target: https://pepy.tech/project/elasticsearch?versions=*
1717

18-
.. image:: https://clients-ci.elastic.co/job/elastic+elasticsearch-py+master/badge/icon
19-
:target: https://clients-ci.elastic.co/job/elastic+elasticsearch-py+master
18+
.. image:: https://clients-ci.elastic.co/job/elastic+elasticsearch-py+main/badge/icon
19+
:target: https://clients-ci.elastic.co/job/elastic+elasticsearch-py+main
2020

2121
.. image:: https://readthedocs.org/projects/elasticsearch-py/badge/?version=latest&style=flat
2222
:target: https://elasticsearch-py.readthedocs.io
@@ -52,7 +52,7 @@ the ``async`` extra::
5252

5353
$ python -m pip install elasticsearch[async]
5454

55-
Read more about `how to use asyncio with this project <https://elasticsearch-py.readthedocs.io/en/master/async.html>`_.
55+
Read more about `how to use asyncio with this project <https://elasticsearch-py.readthedocs.io/en/latest/async.html>`_.
5656

5757

5858
Compatibility

docs/sphinx/helpers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ document is like ``{"word": "<myword>"}``.
8686
8787
8888
For a more complete and complex example please take a look at
89-
https://github.com/elastic/elasticsearch-py/blob/master/examples/bulk-ingest
89+
https://github.com/elastic/elasticsearch-py/blob/main/examples/bulk-ingest
9090

9191
The :meth:`~elasticsearch.Elasticsearch.parallel_bulk` api is a wrapper around the :meth:`~elasticsearch.Elasticsearch.bulk` api to provide threading. :meth:`~elasticsearch.Elasticsearch.parallel_bulk` returns a generator which must be consumed to produce results.
9292

elasticsearch/_async/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class AsyncElasticsearch:
164164
)
165165
166166
By default, `JSONSerializer
167-
<https://github.com/elastic/elasticsearch-py/blob/master/elasticsearch/serializer.py#L24>`_
167+
<https://github.com/elastic/elasticsearch-py/blob/main/elasticsearch/serializer.py>`_
168168
is used to encode all outgoing requests.
169169
However, you can implement your own custom serializer::
170170

elasticsearch/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class Elasticsearch:
164164
)
165165
166166
By default, `JSONSerializer
167-
<https://github.com/elastic/elasticsearch-py/blob/master/elasticsearch/serializer.py#L24>`_
167+
<https://github.com/elastic/elasticsearch-py/blob/main/elasticsearch/serializer.py>`_
168168
is used to encode all outgoing requests.
169169
However, you can implement your own custom serializer::
170170

0 commit comments

Comments
 (0)