Skip to content

Commit 9b62cf1

Browse files
authored
Merge pull request #49 from observatorycontrolsystem/fix/poetry_and_update_deps
Switch to poetry and update dependencies
2 parents ecc98a7 + 4220298 commit 9b62cf1

5 files changed

Lines changed: 855 additions & 54 deletions

File tree

.github/workflows/build.yaml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ["3.8", "3.9", "3.10", "3.11"]
18+
python-version: ["3.11", "3.12", "3.13", "3.14"]
1919
steps:
2020
- name: Check out repository
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2222
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v4
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29-
pip install -e .[tests]
30-
pip install coverage
29+
python -m pip install 'poetry<2.0'
30+
poetry install
3131
- name: Run tests
3232
run: |
33-
coverage run -m pytest
34-
coverage xml
33+
poetry run coverage run -m pytest
34+
poetry run coverage xml
3535
env:
3636
OPENTSDB_PYTHON_METRICS_TEST_MODE: True
3737
- name: Generate and send coveralls report
@@ -56,19 +56,17 @@ jobs:
5656
runs-on: ubuntu-latest
5757
steps:
5858
- name: Check out repository
59-
uses: actions/checkout@v2
59+
uses: actions/checkout@v3
6060
- name: Set up Python
61-
uses: actions/setup-python@v2
61+
uses: actions/setup-python@v4
6262
with:
63-
python-version: '3.x'
63+
python-version: '3.11'
6464
- name: Install dependencies
6565
run: |
6666
python -m pip install --upgrade pip
67-
pip install setuptools wheel twine
67+
python -m pip install 'poetry<2.0'
6868
- name: Build package and publish to PyPI
69-
env:
70-
TWINE_USERNAME: __token__
71-
TWINE_PASSWORD: ${{ secrets.PYPI_INGESTER_API_TOKEN }}
7269
run: |
73-
python setup.py sdist bdist_wheel
74-
twine upload dist/*
70+
poetry build -f wheel
71+
poetry build -f sdist
72+
poetry publish -u "__token__" -p '${{ secrets.PYPI_INGESTER_API_TOKEN }}'

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
3.2.0
2+
2026-04-01
3+
Upgrade ocs_archive library and minimum python version
4+
15
3.1.0
26
2024-06-03
37
Upgrade ocs_archive library, add support for uploading thumbnails to an OCS archive.

0 commit comments

Comments
 (0)