winterapi 0.1.0__tar.gz → 0.2.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.
Files changed (31) hide show
  1. winterapi-0.2.0/.github/dependabot.yml +11 -0
  2. winterapi-0.2.0/.github/workflows/automerge.yml +30 -0
  3. {winterapi-0.1.0 → winterapi-0.2.0}/.github/workflows/black.yml +1 -3
  4. {winterapi-0.1.0 → winterapi-0.2.0}/.github/workflows/continuous_integration.yml +3 -3
  5. {winterapi-0.1.0 → winterapi-0.2.0}/.github/workflows/isort.yml +1 -3
  6. {winterapi-0.1.0 → winterapi-0.2.0}/.github/workflows/pylint.yml +1 -3
  7. {winterapi-0.1.0/winterapi.egg-info → winterapi-0.2.0}/PKG-INFO +16 -1
  8. {winterapi-0.1.0 → winterapi-0.2.0}/README.md +14 -0
  9. {winterapi-0.1.0 → winterapi-0.2.0}/pyproject.toml +9 -5
  10. {winterapi-0.1.0 → winterapi-0.2.0}/tests/test_schedule.py +1 -1
  11. {winterapi-0.1.0 → winterapi-0.2.0}/tests/testdata/test_schedule.csv +6 -6
  12. {winterapi-0.1.0 → winterapi-0.2.0/winterapi.egg-info}/PKG-INFO +16 -1
  13. {winterapi-0.1.0 → winterapi-0.2.0}/winterapi.egg-info/SOURCES.txt +2 -0
  14. winterapi-0.2.0/winterapi.egg-info/requires.txt +14 -0
  15. winterapi-0.1.0/winterapi.egg-info/requires.txt +0 -11
  16. {winterapi-0.1.0 → winterapi-0.2.0}/.gitignore +0 -0
  17. {winterapi-0.1.0 → winterapi-0.2.0}/.pre-commit-config.yaml +0 -0
  18. {winterapi-0.1.0 → winterapi-0.2.0}/LICENSE +0 -0
  19. {winterapi-0.1.0 → winterapi-0.2.0}/notebooks/0_intro_accounts.ipynb +0 -0
  20. {winterapi-0.1.0 → winterapi-0.2.0}/notebooks/1_too_models.ipynb +0 -0
  21. {winterapi-0.1.0 → winterapi-0.2.0}/notebooks/2_submitting_toos.ipynb +0 -0
  22. {winterapi-0.1.0 → winterapi-0.2.0}/setup.cfg +0 -0
  23. {winterapi-0.1.0 → winterapi-0.2.0}/tests/test_login.py +0 -0
  24. {winterapi-0.1.0 → winterapi-0.2.0}/winterapi/__init__.py +0 -0
  25. {winterapi-0.1.0 → winterapi-0.2.0}/winterapi/configure_tests.py +0 -0
  26. {winterapi-0.1.0 → winterapi-0.2.0}/winterapi/credentials.py +0 -0
  27. {winterapi-0.1.0 → winterapi-0.2.0}/winterapi/endpoints.py +0 -0
  28. {winterapi-0.1.0 → winterapi-0.2.0}/winterapi/fidelius.py +0 -0
  29. {winterapi-0.1.0 → winterapi-0.2.0}/winterapi/messenger.py +0 -0
  30. {winterapi-0.1.0 → winterapi-0.2.0}/winterapi.egg-info/dependency_links.txt +0 -0
  31. {winterapi-0.1.0 → winterapi-0.2.0}/winterapi.egg-info/top_level.txt +0 -0
@@ -0,0 +1,11 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: "pip" # See documentation for possible values
9
+ directory: "/" # Location of package manifests
10
+ schedule:
11
+ interval: "weekly"
@@ -0,0 +1,30 @@
1
+ name: Dependabot auto-merge
2
+
3
+ on:
4
+ pull_request:
5
+ merge_group:
6
+
7
+ permissions:
8
+ pull-requests: write
9
+ contents: write
10
+
11
+ jobs:
12
+ automerge:
13
+ runs-on: ubuntu-latest
14
+ if: ${{ github.actor == 'dependabot[bot]' }}
15
+ steps:
16
+ - name: Dependabot metadata
17
+ id: metadata
18
+ uses: dependabot/fetch-metadata@v1.1.1
19
+ with:
20
+ github-token: "${{ secrets.GITHUB_TOKEN }}"
21
+
22
+ - name: Echo auto-merge
23
+ run: echo "Update type is ${{steps.metadata.outputs.update-type}}, check is ${{contains(steps.metadata.outputs.update-type,'version-update:semver')}}"
24
+
25
+ - name: Enable auto-merge for Dependabot PRs
26
+ if: ${{contains(steps.metadata.outputs.update-type,'version-update:semver')}}
27
+ run: gh pr merge --auto --squash "$PR_URL"
28
+ env:
29
+ PR_URL: ${{github.event.pull_request.html_url}}
30
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -8,8 +8,6 @@ jobs:
8
8
  runs-on: ubuntu-latest
9
9
  steps:
10
10
  - uses: actions/checkout@v3
11
- - name: Install poetry
12
- run: pipx install poetry
13
11
  - name: Set up Python 3.11
14
12
  uses: actions/setup-python@v4
15
13
  with:
@@ -19,7 +17,7 @@ jobs:
19
17
  - name: Install dependencies
20
18
  run: |
21
19
  pip install --upgrade pip
22
- pip install -e .
20
+ pip install --editable ".[dev]"
23
21
  - name: Reformat the code with black
24
22
  run: |
25
23
  black . --check
@@ -38,7 +38,7 @@ jobs:
38
38
 
39
39
  - name: install packages
40
40
  run: |
41
- pip install -e .
41
+ pip install --editable ".[dev]"
42
42
 
43
43
  # Set up keyring
44
44
  - name: Set up keyring
@@ -62,7 +62,7 @@ jobs:
62
62
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63
63
 
64
64
  - name: Echo tag name
65
- run: echo "Tag is ${{ github.ref }}, Tagged is ${{ startsWith(github.ref, 'refs/tags/')}}, Python Check is ${{matrix.python-version == 3.9}}, Deploy is ${{ startsWith(github.ref, 'refs/tags/') && matrix.python-version == 3.9}}"
65
+ 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}}"
66
66
 
67
67
  - name: Install pypa/build
68
68
  run: >-
@@ -80,7 +80,7 @@ jobs:
80
80
  .
81
81
 
82
82
  - name: Publish distribution 📦 to PyPI
83
- if: ${{ startsWith(github.ref, 'refs/tags/') && success() && matrix.python-version == 3.9 && github.event_name == 'push'}}
83
+ if: ${{ startsWith(github.ref, 'refs/tags/') && success() && matrix.python-version == 3.11 && github.event_name == 'push'}}
84
84
  uses: pypa/gh-action-pypi-publish@master
85
85
  with:
86
86
  password: ${{ secrets.PYPI_API_TOKEN }}
@@ -7,8 +7,6 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
9
  - uses: actions/checkout@v3
10
- - name: Install poetry
11
- run: pipx install poetry
12
10
  - name: Set up Python 3.11
13
11
  uses: actions/setup-python@v4
14
12
  with:
@@ -18,6 +16,6 @@ jobs:
18
16
  - name: Install dependencies
19
17
  run: |
20
18
  pip install --upgrade pip
21
- pip install -e .
19
+ pip install --editable ".[dev]"
22
20
  - name: isort
23
21
  uses: isort/isort-action@v1.0.0
@@ -9,8 +9,6 @@ jobs:
9
9
 
10
10
  steps:
11
11
  - uses: actions/checkout@v3
12
- - name: Install poetry
13
- run: pipx install poetry
14
12
  - name: Set up Python 3.11
15
13
  uses: actions/setup-python@v4
16
14
  with:
@@ -20,7 +18,7 @@ jobs:
20
18
  - name: Install dependencies
21
19
  run: |
22
20
  pip install --upgrade pip
23
- pip install -e .
21
+ pip install --editable ".[dev]"
24
22
  - name: Analysing the code with pylint
25
23
  run: |
26
24
  pylint winterapi --fail-under=10.00
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winterapi
3
- Version: 0.1.0
3
+ Version: 0.2.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
@@ -19,6 +19,7 @@ Classifier: Operating System :: Unix
19
19
  Classifier: Operating System :: MacOS
20
20
  Requires-Python: >=3.10
21
21
  Description-Content-Type: text/markdown
22
+ Provides-Extra: dev
22
23
  License-File: LICENSE
23
24
 
24
25
  # winterapi
@@ -27,3 +28,17 @@ API interactions for WINTER
27
28
  [![Coverage Status](https://coveralls.io/repos/github/winter-telescope/winterapi/badge.svg?branch=tests)](https://coveralls.io/github/winter-telescope/winterapi?branch=tests)
28
29
  [![CI](https://github.com/winter-telescope/winterapi/actions/workflows/continuous_integration.yml/badge.svg)](https://github.com/winter-telescope/winterapi/actions/workflows/continuous_integration.yml)
29
30
  [![PyPI version](https://badge.fury.io/py/winterapi.svg)](https://badge.fury.io/py/winterapi)
31
+
32
+ ## Installation
33
+ ### Install from pypi
34
+ ```bash
35
+ pip install winterapi
36
+ ```
37
+
38
+ ### Install from source
39
+ ```bash
40
+ git clone git@github.com:winter-telescope/winterapi.git
41
+ cd winterapi
42
+ pip install --editable ".[dev]"
43
+ pre-commit install
44
+ ```
@@ -4,3 +4,17 @@ API interactions for WINTER
4
4
  [![Coverage Status](https://coveralls.io/repos/github/winter-telescope/winterapi/badge.svg?branch=tests)](https://coveralls.io/github/winter-telescope/winterapi?branch=tests)
5
5
  [![CI](https://github.com/winter-telescope/winterapi/actions/workflows/continuous_integration.yml/badge.svg)](https://github.com/winter-telescope/winterapi/actions/workflows/continuous_integration.yml)
6
6
  [![PyPI version](https://badge.fury.io/py/winterapi.svg)](https://badge.fury.io/py/winterapi)
7
+
8
+ ## Installation
9
+ ### Install from pypi
10
+ ```bash
11
+ pip install winterapi
12
+ ```
13
+
14
+ ### Install from source
15
+ ```bash
16
+ git clone git@github.com:winter-telescope/winterapi.git
17
+ cd winterapi
18
+ pip install --editable ".[dev]"
19
+ pre-commit install
20
+ ```
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "winterapi"
7
- version = "0.1.0"
7
+ version = "0.2.0"
8
8
  description = ""
9
9
  authors = [
10
10
  {name = "Robert Stein", email = "rdstein@caltech.edu"}
@@ -31,14 +31,18 @@ dependencies = [
31
31
  "pandas",
32
32
  "keyring",
33
33
  "cryptography",
34
- "black",
35
- "isort",
36
- "pylint",
37
34
  "pre-commit",
38
35
  "jupyter",
39
36
  "backoff",
40
37
  "pydantic",
41
- "wintertoo>=0.3.6"
38
+ "wintertoo>=0.3.10"
39
+ ]
40
+ [project.optional-dependencies]
41
+ dev = [
42
+ "black == 23.3.0",
43
+ "isort == 5.12.0",
44
+ "pylint == 2.17.4",
45
+ "coveralls",
42
46
  ]
43
47
 
44
48
  [project.urls]
@@ -59,7 +59,7 @@ class TestSchedule(unittest.TestCase):
59
59
  )
60
60
 
61
61
  # Uncomment to update the schedule
62
- local_schedule.to_csv(test_schedule_path, index=False)
62
+ # local_schedule.to_csv(test_schedule_path, index=False)
63
63
 
64
64
  pd.testing.assert_frame_equal(test_df, local_schedule, check_like=True)
65
65
 
@@ -1,7 +1,7 @@
1
1
  raDeg,decDeg,fieldID,filter,visitExpTime,priority,progPI,progName,progID,validStart,validStop,observed,maxAirmass,ditherNumber,ditherStepSize,obsHistID
2
- 211.56398,54.0,3944,Y,30.0,50.0,Stein,2023A999,1,62721.1894969287,62722.1894969452,False,2.0,9,15.0,0
3
- 211.56398,54.0,3944,J,30.0,50.0,Stein,2023A999,1,62721.1894969287,62722.1894969452,False,2.0,9,15.0,1
4
- 211.56398,54.0,3944,Hs,30.0,50.0,Stein,2023A999,1,62721.1894969287,62722.1894969452,False,2.0,9,15.0,2
5
- 210.910674637,54.3116510708,999999999,Y,30.0,50.0,Stein,2023A999,1,62721.1894969287,62722.1894969452,False,2.0,1,15.0,3
6
- 210.910674637,54.3116510708,999999999,J,30.0,50.0,Stein,2023A999,1,62721.1894969287,62722.1894969452,False,2.0,1,15.0,4
7
- 210.910674637,54.3116510708,999999999,Hs,30.0,50.0,Stein,2023A999,1,62721.1894969287,62722.1894969452,False,2.0,1,15.0,5
2
+ 211.56398,54.0,3944,Y,30.0,50.0,Stein,2023A999,1,62721.1894969287,62722.1894969452,False,2.0,9,600.0,0
3
+ 211.56398,54.0,3944,J,30.0,50.0,Stein,2023A999,1,62721.1894969287,62722.1894969452,False,2.0,9,600.0,1
4
+ 211.56398,54.0,3944,Hs,30.0,50.0,Stein,2023A999,1,62721.1894969287,62722.1894969452,False,2.0,9,600.0,2
5
+ 210.910674637,54.3116510708,999999999,Y,30.0,50.0,Stein,2023A999,1,62721.1894969287,62722.1894969452,False,2.0,1,600.0,3
6
+ 210.910674637,54.3116510708,999999999,J,30.0,50.0,Stein,2023A999,1,62721.1894969287,62722.1894969452,False,2.0,1,600.0,4
7
+ 210.910674637,54.3116510708,999999999,Hs,30.0,50.0,Stein,2023A999,1,62721.1894969287,62722.1894969452,False,2.0,1,600.0,5
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winterapi
3
- Version: 0.1.0
3
+ Version: 0.2.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
@@ -19,6 +19,7 @@ Classifier: Operating System :: Unix
19
19
  Classifier: Operating System :: MacOS
20
20
  Requires-Python: >=3.10
21
21
  Description-Content-Type: text/markdown
22
+ Provides-Extra: dev
22
23
  License-File: LICENSE
23
24
 
24
25
  # winterapi
@@ -27,3 +28,17 @@ API interactions for WINTER
27
28
  [![Coverage Status](https://coveralls.io/repos/github/winter-telescope/winterapi/badge.svg?branch=tests)](https://coveralls.io/github/winter-telescope/winterapi?branch=tests)
28
29
  [![CI](https://github.com/winter-telescope/winterapi/actions/workflows/continuous_integration.yml/badge.svg)](https://github.com/winter-telescope/winterapi/actions/workflows/continuous_integration.yml)
29
30
  [![PyPI version](https://badge.fury.io/py/winterapi.svg)](https://badge.fury.io/py/winterapi)
31
+
32
+ ## Installation
33
+ ### Install from pypi
34
+ ```bash
35
+ pip install winterapi
36
+ ```
37
+
38
+ ### Install from source
39
+ ```bash
40
+ git clone git@github.com:winter-telescope/winterapi.git
41
+ cd winterapi
42
+ pip install --editable ".[dev]"
43
+ pre-commit install
44
+ ```
@@ -3,6 +3,8 @@
3
3
  LICENSE
4
4
  README.md
5
5
  pyproject.toml
6
+ .github/dependabot.yml
7
+ .github/workflows/automerge.yml
6
8
  .github/workflows/black.yml
7
9
  .github/workflows/continuous_integration.yml
8
10
  .github/workflows/isort.yml
@@ -0,0 +1,14 @@
1
+ pandas
2
+ keyring
3
+ cryptography
4
+ pre-commit
5
+ jupyter
6
+ backoff
7
+ pydantic
8
+ wintertoo>=0.3.10
9
+
10
+ [dev]
11
+ black==23.3.0
12
+ isort==5.12.0
13
+ pylint==2.17.4
14
+ coveralls
@@ -1,11 +0,0 @@
1
- pandas
2
- keyring
3
- cryptography
4
- black
5
- isort
6
- pylint
7
- pre-commit
8
- jupyter
9
- backoff
10
- pydantic
11
- wintertoo>=0.3.6
File without changes
File without changes
File without changes
File without changes