Skip to content

Commit

Permalink
Update "master" to "main" (#1350)
Browse files Browse the repository at this point in the history
Resolves #1349
  • Loading branch information
sgillies authored Mar 9, 2024
1 parent 42af94d commit e113c85
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_gdal_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test GDAL Latest

on:
push:
branches: [ master, 'maint-*' ]
branches: [ main, 'maint-*' ]
schedule:
- cron: '0 0 * * 0'
pull_request: # also build on PRs touching this file
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Tests

on:
push:
branches: [ master, 'maint-*' ]
branches: [ main, 'maint-*' ]
paths:
- '.github/workflows/tests.yaml'
- 'requirements*.txt'
Expand All @@ -14,7 +14,7 @@ on:
- 'fiona/**'
- 'tests/**'
pull_request:
branches: [ master, 'maint-*' ]
branches: [ main, 'maint-*' ]
paths:
- '.github/workflows/tests.yaml'
- 'requirements*.txt'
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ Upcoming changes:
1.9 is intended to be backwards compatible with 1.8 except where user code
tests `isinstance(feature, dict)`. In version 2.0 the new Feature, Geometry,
and Properties classes will become immutable mappings. See
https://github.com/Toblerity/fiona-rfc/blob/master/rfc/0001-fiona-2-0-changes.md
https://github.com/Toblerity/fiona-rfc/blob/main/rfc/0001-fiona-2-0-changes.md
for more discussion of the upcoming changes for version 2.0.

1.8.6 (2019-03-18)
Expand Down
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Fiona
=====

.. image:: https://github.com/Toblerity/Fiona/workflows/Tests/badge.svg?branch=master
:target: https://github.com/Toblerity/Fiona/actions?query=branch%3Amaster
.. image:: https://github.com/Toblerity/Fiona/workflows/Tests/badge.svg?branch=main
:target: https://github.com/Toblerity/Fiona/actions?query=branch%3Amain

Fiona streams simple feature data to and from GIS formats like GeoPackage and
Shapefile.
Expand Down Expand Up @@ -103,7 +103,7 @@ CLI Usage
=========

Fiona's command line interface, named "fio", is documented at `docs/cli.rst
<https://github.com/Toblerity/Fiona/blob/master/docs/cli.rst>`__. The CLI has a
<https://github.com/Toblerity/Fiona/blob/main/docs/cli.rst>`__. The CLI has a
number of different commands. Its ``fio cat`` command streams GeoJSON features
from any dataset.

Expand All @@ -120,6 +120,6 @@ For more details about this project, please see:

* Fiona `home page <https://github.com/Toblerity/Fiona>`__
* `Docs and manual <https://fiona.readthedocs.io/>`__
* `Examples <https://github.com/Toblerity/Fiona/tree/master/examples>`__
* `Examples <https://github.com/Toblerity/Fiona/tree/main/examples>`__
* Main `user discussion group <https://fiona.groups.io/g/main>`__
* `Developers discussion group <https://fiona.groups.io/g/dev>`__
8 changes: 4 additions & 4 deletions tests/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1034,23 +1034,23 @@ def test_open_kwargs(tmpdir, path_coutwildrnp_shp):
@pytest.mark.network
def test_collection_http():
ds = fiona.Collection(
"https://raw.githubusercontent.com/Toblerity/Fiona/master/tests/data/coutwildrnp.shp",
"https://raw.githubusercontent.com/Toblerity/Fiona/main/tests/data/coutwildrnp.shp",
vsi="https",
)
assert (
ds.path
== "/vsicurl/https://raw.githubusercontent.com/Toblerity/Fiona/master/tests/data/coutwildrnp.shp"
== "/vsicurl/https://raw.githubusercontent.com/Toblerity/Fiona/main/tests/data/coutwildrnp.shp"
)
assert len(ds) == 67


@pytest.mark.network
def test_collection_zip_http():
ds = fiona.Collection(
"https://raw.githubusercontent.com/Toblerity/Fiona/master/tests/data/coutwildrnp.zip",
"https://raw.githubusercontent.com/Toblerity/Fiona/main/tests/data/coutwildrnp.zip",
vsi="zip+https",
)
assert ds.path == "/vsizip/vsicurl/https://raw.githubusercontent.com/Toblerity/Fiona/master/tests/data/coutwildrnp.zip"
assert ds.path == "/vsizip/vsicurl/https://raw.githubusercontent.com/Toblerity/Fiona/main/tests/data/coutwildrnp.zip"
assert len(ds) == 67


Expand Down

0 comments on commit e113c85

Please sign in to comment.