winterapi 1.5.0__tar.gz → 1.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winterapi-1.5.0 → winterapi-1.7.0}/.github/workflows/continuous_integration.yml +25 -6
- {winterapi-1.5.0 → winterapi-1.7.0}/.github/workflows/pylint.yml +1 -1
- {winterapi-1.5.0/winterapi.egg-info → winterapi-1.7.0}/PKG-INFO +8 -6
- winterapi-1.7.0/example.env +3 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/notebooks/Example_1_Setting_Up_Credentials.ipynb +6 -6
- winterapi-1.7.0/notebooks/Example_2_Submitting_a_ToO.ipynb +1180 -0
- winterapi-1.7.0/notebooks/Example_3_Interacting_with_Observatory_Queue.ipynb +1181 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/notebooks/Example_4_Finding_Observatory_Data.ipynb +837 -461
- {winterapi-1.5.0 → winterapi-1.7.0}/notebooks/Example_5_Downloading_Observatory_Data.ipynb +6 -2
- {winterapi-1.5.0 → winterapi-1.7.0}/notebooks/Info_2a_ToO_Parameters.ipynb +9 -4
- {winterapi-1.5.0 → winterapi-1.7.0}/notebooks/Info_2b_Submitting_ToOs.ipynb +2 -7
- {winterapi-1.5.0 → winterapi-1.7.0}/pyproject.toml +10 -5
- winterapi-1.7.0/tests/configure_tests.py +64 -0
- winterapi-1.7.0/tests/test_images.py +200 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/tests/test_login.py +1 -1
- {winterapi-1.5.0 → winterapi-1.7.0}/tests/test_schedule.py +3 -2
- {winterapi-1.5.0 → winterapi-1.7.0}/tests/testdata/test_schedule.csv +7 -7
- {winterapi-1.5.0 → winterapi-1.7.0}/winterapi/base_api.py +6 -2
- {winterapi-1.5.0 → winterapi-1.7.0}/winterapi/endpoints.py +5 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/winterapi/messenger.py +68 -12
- {winterapi-1.5.0 → winterapi-1.7.0/winterapi.egg-info}/PKG-INFO +8 -6
- {winterapi-1.5.0 → winterapi-1.7.0}/winterapi.egg-info/SOURCES.txt +3 -1
- {winterapi-1.5.0 → winterapi-1.7.0}/winterapi.egg-info/requires.txt +5 -4
- winterapi-1.5.0/notebooks/Example_2_Submitting_a_ToO.ipynb +0 -615
- winterapi-1.5.0/notebooks/Example_3_Interacting_with_Observatory_Queue.ipynb +0 -614
- winterapi-1.5.0/winterapi/configure_tests.py +0 -28
- {winterapi-1.5.0 → winterapi-1.7.0}/.github/dependabot.yml +0 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/.github/workflows/automerge.yml +0 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/.github/workflows/black.yml +0 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/.github/workflows/isort.yml +0 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/.gitignore +0 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/.pre-commit-config.yaml +0 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/LICENSE +0 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/README.md +0 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/notebooks/Info_1_Introduction_To_Credentials.ipynb +0 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/setup.cfg +0 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/winterapi/__init__.py +0 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/winterapi/credentials.py +0 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/winterapi/fidelius.py +0 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/winterapi.egg-info/dependency_links.txt +0 -0
- {winterapi-1.5.0 → winterapi-1.7.0}/winterapi.egg-info/top_level.txt +0 -0
|
@@ -4,8 +4,19 @@ name: CI
|
|
|
4
4
|
|
|
5
5
|
# Controls when the action will run.
|
|
6
6
|
on:
|
|
7
|
-
#
|
|
7
|
+
# Only run on push to main or a tag, so that pushing to a branch with an
|
|
8
|
+
# open PR doesn't trigger this workflow twice (once via push, once via
|
|
9
|
+
# pull_request). Pushes to other branches still get CI via pull_request
|
|
10
|
+
# once a PR is open, or can be run manually via workflow_dispatch.
|
|
11
|
+
# branches/tags are matched independently (a branch push only checks
|
|
12
|
+
# branches, a tag push only checks tags), so the release flow of tagging
|
|
13
|
+
# and pushing after a merge still triggers this workflow and its PyPI
|
|
14
|
+
# publish step.
|
|
8
15
|
push:
|
|
16
|
+
branches:
|
|
17
|
+
- main
|
|
18
|
+
tags:
|
|
19
|
+
- "*"
|
|
9
20
|
|
|
10
21
|
pull_request:
|
|
11
22
|
|
|
@@ -19,10 +30,14 @@ jobs:
|
|
|
19
30
|
# The type of runner that the job will run on
|
|
20
31
|
runs-on: ubuntu-latest
|
|
21
32
|
|
|
22
|
-
#
|
|
33
|
+
# Install/import-check on every supported Python version, but only run
|
|
34
|
+
# the live-API test suite, coverage upload, build, and PyPI publish on
|
|
35
|
+
# Python 3.11 - running the real test suite (which hits the production
|
|
36
|
+
# server) on every matrix leg at once is what was tripping server-side
|
|
37
|
+
# rate limits/timeouts.
|
|
23
38
|
strategy:
|
|
24
39
|
matrix:
|
|
25
|
-
python-version: ["3.10", "3.11"]
|
|
40
|
+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
26
41
|
|
|
27
42
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
28
43
|
steps:
|
|
@@ -47,31 +62,35 @@ jobs:
|
|
|
47
62
|
pip install keyrings.alt
|
|
48
63
|
|
|
49
64
|
- name: Run tests
|
|
65
|
+
if: ${{ matrix.python-version == '3.11' }}
|
|
50
66
|
env:
|
|
51
67
|
WINTER_API_USER: ${{ secrets.WINTER_API_USER }}
|
|
52
68
|
WINTER_API_PASSWORD: ${{ secrets.WINTER_API_PASSWORD }}
|
|
53
69
|
WINTER_API_PROGRAM: ${{ secrets.WINTER_API_PROGRAM }}
|
|
54
70
|
WINTER_API_KEY: ${{ secrets.WINTER_API_KEY }}
|
|
71
|
+
WINTER_API_IMAGE_KEY: ${{ secrets.WINTER_API_IMAGE_KEY }}
|
|
55
72
|
run: coverage run -m unittest discover tests
|
|
56
73
|
|
|
57
74
|
- name: Run Coveralls
|
|
58
75
|
continue-on-error: true
|
|
59
|
-
if: ${{ success() }}
|
|
76
|
+
if: ${{ success() && matrix.python-version == '3.11' }}
|
|
60
77
|
run: |
|
|
61
78
|
coveralls --service=github
|
|
62
79
|
env:
|
|
63
80
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
64
81
|
|
|
65
82
|
- name: Echo tag name
|
|
66
|
-
run: echo "Tag is ${{ github.ref }}, Tagged is ${{ startsWith(github.ref, 'refs/tags/')}}, Python Check is ${{matrix.python-version == 3.11}}, Deploy is ${{ startsWith(github.ref, 'refs/tags/') && matrix.python-version == 3.11}}"
|
|
83
|
+
run: echo "Tag is ${{ github.ref }}, Tagged is ${{ startsWith(github.ref, 'refs/tags/')}}, Python Check is ${{matrix.python-version == '3.11'}}, Deploy is ${{ startsWith(github.ref, 'refs/tags/') && matrix.python-version == '3.11' }}"
|
|
67
84
|
|
|
68
85
|
- name: Install pypa/build
|
|
86
|
+
if: ${{ matrix.python-version == '3.11' }}
|
|
69
87
|
run: >-
|
|
70
88
|
python -m
|
|
71
89
|
pip install
|
|
72
90
|
build
|
|
73
91
|
--user
|
|
74
92
|
- name: Build a binary wheel and a source tarball
|
|
93
|
+
if: ${{ matrix.python-version == '3.11' }}
|
|
75
94
|
run: >-
|
|
76
95
|
python -m
|
|
77
96
|
build
|
|
@@ -81,7 +100,7 @@ jobs:
|
|
|
81
100
|
.
|
|
82
101
|
|
|
83
102
|
- name: Publish distribution 📦 to PyPI
|
|
84
|
-
if: ${{ startsWith(github.ref, 'refs/tags/') && success() && matrix.python-version == 3.11 && github.event_name == 'push'}}
|
|
103
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') && success() && matrix.python-version == '3.11' && github.event_name == 'push' }}
|
|
85
104
|
uses: pypa/gh-action-pypi-publish@master
|
|
86
105
|
with:
|
|
87
106
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winterapi
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.7.0
|
|
4
4
|
Author-email: Robert Stein <rdstein@caltech.edu>
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/winter-telescope/winterapi
|
|
@@ -28,12 +28,14 @@ Requires-Dist: pre-commit
|
|
|
28
28
|
Requires-Dist: jupyter
|
|
29
29
|
Requires-Dist: backoff
|
|
30
30
|
Requires-Dist: pydantic
|
|
31
|
-
Requires-Dist: wintertoo>=1.
|
|
31
|
+
Requires-Dist: wintertoo>=1.9.1
|
|
32
|
+
Requires-Dist: python-dotenv
|
|
32
33
|
Provides-Extra: dev
|
|
33
|
-
Requires-Dist: black
|
|
34
|
-
Requires-Dist: isort==
|
|
35
|
-
Requires-Dist: pylint==
|
|
34
|
+
Requires-Dist: black>=26.1.0; extra == "dev"
|
|
35
|
+
Requires-Dist: isort==7.0.0; extra == "dev"
|
|
36
|
+
Requires-Dist: pylint==4.0.4; extra == "dev"
|
|
36
37
|
Requires-Dist: coveralls; extra == "dev"
|
|
38
|
+
Dynamic: license-file
|
|
37
39
|
|
|
38
40
|
# winterapi
|
|
39
41
|
API interactions for WINTER
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
54
|
"source": [
|
|
55
|
-
"print(f\"Using server {BASE_URL}\")
|
|
55
|
+
"print(f\"Using server {BASE_URL}\") # Should show the URL of the API\n",
|
|
56
56
|
"print(f\"Pinging server: {winter.ping()}\")"
|
|
57
57
|
]
|
|
58
58
|
},
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"name": "stdout",
|
|
67
67
|
"output_type": "stream",
|
|
68
68
|
"text": [
|
|
69
|
-
"User is rdstein@
|
|
69
|
+
"User is rdstein@umd.edu\n"
|
|
70
70
|
]
|
|
71
71
|
}
|
|
72
72
|
],
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"name": "stdout",
|
|
100
100
|
"output_type": "stream",
|
|
101
101
|
"text": [
|
|
102
|
-
"Found the following saved programs: ['2024A001']\n"
|
|
102
|
+
"Found the following saved programs: ['2023A001', '2023A002', '2023A999', '2024A000', '2024A001', '2024A004']\n"
|
|
103
103
|
]
|
|
104
104
|
}
|
|
105
105
|
],
|
|
@@ -112,13 +112,13 @@
|
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"cell_type": "code",
|
|
115
|
-
"execution_count":
|
|
115
|
+
"execution_count": 8,
|
|
116
116
|
"id": "42f4d81b",
|
|
117
117
|
"metadata": {},
|
|
118
118
|
"outputs": [],
|
|
119
119
|
"source": [
|
|
120
120
|
"# Uncomment to add additional programs\n",
|
|
121
|
-
"winter.add_program(
|
|
121
|
+
"# winter.add_program(\"2023A002\")"
|
|
122
122
|
]
|
|
123
123
|
},
|
|
124
124
|
{
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"name": "python",
|
|
158
158
|
"nbconvert_exporter": "python",
|
|
159
159
|
"pygments_lexer": "ipython3",
|
|
160
|
-
"version": "3.
|
|
160
|
+
"version": "3.14.2"
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
163
|
"nbformat": 4,
|