Skip to content

Commit baa65e5

Browse files
authored
Update code.json to include both dev and official versions (#165)
* update code.json to include both dev and official versions * switch master to main
1 parent 35de892 commit baa65e5

File tree

8 files changed

+59
-16
lines changed

8 files changed

+59
-16
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Python package
55

66
on:
77
push:
8-
branches: ['master']
8+
branches: ['main']
99
pull_request:
10-
branches: ['master']
10+
branches: ['main']
1111

1212
jobs:
1313
build:

.github/workflows/sphinx-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ jobs:
2828
echo $REF
2929
echo $EVENT_NAME
3030
echo ${{ github.event_name == 'push' }}
31-
echo ${{ github.ref == 'refs/heads/master' }}
32-
echo ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
31+
echo ${{ github.ref == 'refs/heads/main' }}
32+
echo ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
3333
- name: Deploy to GitHub Pages
3434
uses: JamesIves/[email protected]
35-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
35+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
3636
with:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3838
EVENT_NAME: ${{ github.event_name }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ or conda:
7979

8080
$ conda install -c conda-forge dataretrieval
8181

82-
More examples of use are include in [`demos`](https://github.com/USGS-python/dataretrieval/tree/master/demos).
82+
More examples of use are include in [`demos`](https://github.com/USGS-python/dataretrieval/tree/main/demos).
8383

8484
## Issue tracker
8585

code.json

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,52 @@
33
"name": "dataretrieval",
44
"organization": "U.S. Geological Survey",
55
"description": "A Python package for discovering and retrieving water data from U.S. federal hydrologic web services.",
6-
"version": "v1.0.2",
6+
"version": "main",
77
"status": "Development",
88

9+
"permissions": {
10+
"usageType": "openSource",
11+
"licenses": [
12+
{
13+
"name": "Public Domain, CC0-1.0",
14+
"URL": "https://code.usgs.gov/water/dataretrieval-python/-/raw/main/LICENSE.md"
15+
}
16+
]
17+
},
18+
19+
"homepageURL": "https://code.usgs.gov/water/dataretrieval-python",
20+
"downloadURL": "https://code.usgs.gov/water/dataretrieval-python/-/archive/main/dataretrieval-python-main.zip",
21+
"disclaimerURL": "https://code.usgs.gov/water/dataretrieval-python/-/raw/main/DISCLAIMER.md",
22+
"repositoryURL": "https://code.usgs.gov/water/dataretrieval-python.git",
23+
"vcs": "git",
24+
25+
"laborHours": 0,
26+
27+
"tags": [
28+
"Python",
29+
"USGS"
30+
],
31+
32+
"languages": [
33+
"Python"
34+
],
35+
36+
"contact": {
37+
"name": "Timothy 0. Hodson",
38+
"email": "[email protected]"
39+
},
40+
41+
"date": {
42+
"metadataLastUpdated": "2024-09-17"
43+
}
44+
},
45+
{
46+
"name": "dataretrieval",
47+
"organization": "U.S. Geological Survey",
48+
"description": "A Python package for discovering and retrieving water data from U.S. federal hydrologic web services.",
49+
"version": "v1.0.2",
50+
"status": "Production",
51+
952
"permissions": {
1053
"usageType": "openSource",
1154
"licenses": [
@@ -39,7 +82,7 @@
3982
},
4083

4184
"date": {
42-
"metadataLastUpdated": "2022-02-13"
85+
"metadataLastUpdated": "2024-08-30"
4386
}
4487
}
4588
]

docs/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
# suffix of source documents
4040
source_suffix = '.rst'
4141

42-
# The master toctree document.
43-
master_doc = 'index'
42+
# The main toctree document.
43+
main_doc = 'index'
4444

4545
# The version info for the project you're documenting, acts as replacement for
4646
# |version| and |release|, also used in various other places throughout the
@@ -122,7 +122,7 @@
122122
r'https://streamstats.usgs.gov/streamstatsservices/#/',
123123
r'https://www.waterqualitydata.us/public_srsnames/',
124124
r'https://waterqualitydata.us',
125-
r'https://github.com/USGS-python/dataretrieval/tree/master/demos/hydroshare',
125+
r'https://github.com/USGS-python/dataretrieval/tree/main/demos/hydroshare',
126126
]
127127

128128
# Some notebooks have warnings, which nbsphinx should ignore

docs/source/examples/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ project repository.
2525

2626
.. _Hydroshare: https://www.hydroshare.org/resource/c97c32ecf59b4dff90ef013030c54264/
2727

28-
.. _demos/hydroshare: https://github.com/DOI-USGS/dataretrieval-python/tree/master/demos/hydroshare
28+
.. _demos/hydroshare: https://github.com/DOI-USGS/dataretrieval-python/tree/main/demos/hydroshare
2929

3030
.. toctree::
3131
:maxdepth: 1

docs/source/meta/installing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ or ``conda``. Package dependencies are listed in the `requirements.txt`_ file,
77
a full list of dependencies necessary for development are listed in the
88
`requirements-dev.txt`_ file.
99

10-
.. _requirements.txt: https://github.com/DOI-USGS/dataretrieval-python/blob/master/requirements.txt
10+
.. _requirements.txt: https://github.com/DOI-USGS/dataretrieval-python/blob/main/requirements.txt
1111

12-
.. _requirements-dev.txt: https://github.com/DOI-USGS/dataretrieval-python/blob/master/requirements-dev.txt
12+
.. _requirements-dev.txt: https://github.com/DOI-USGS/dataretrieval-python/blob/main/requirements-dev.txt
1313

1414

1515
User Installation

docs/source/meta/license.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ States Geological Survey, an agency of the United States Department of
77
Interior. For more information, see the `LICENSE.md`_ file. See the
88
`Disclaimer.md`_ file for more information about the disclaimer.
99

10-
.. _LICENSE.md: https://github.com/DOI-USGS/dataretrieval-python/blob/master/LICENSE.md
10+
.. _LICENSE.md: https://github.com/DOI-USGS/dataretrieval-python/blob/main/LICENSE.md
1111

12-
.. _Disclaimer.md: https://github.com/DOI-USGS/dataretrieval-python/blob/master/DISCLAIMER.md
12+
.. _Disclaimer.md: https://github.com/DOI-USGS/dataretrieval-python/blob/main/DISCLAIMER.md

0 commit comments

Comments
 (0)