Skip to content

Commit

Permalink
another version fix
Browse files Browse the repository at this point in the history
  • Loading branch information
david-hoffman committed Apr 8, 2024
1 parent d56e1ac commit a120837
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -52,7 +52,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: [3.11]
python-version: ['3.10']

steps:
- uses: actions/checkout@v4
Expand All @@ -69,6 +69,6 @@ jobs:
pip install -r requirements.txt
# install package
pip install .
- name: Test with pytest
name: Test with pytest
run: |
pytest --doctest-modules pyotf/ tests/
13 changes: 6 additions & 7 deletions .github/workflows/make_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,29 @@ on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
- "*.*.*" # Push events to matching semver versioning

name: Create Release

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
if: github.repository == 'david-hoffman/pyotf'
if: github.repository == 'david-hoffman/dphtools'
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: '3.10'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel
- name: build
run: |
python setup.py sdist bdist_wheel
# actions/create-release@latest is no longer maintained.
# - name: Create Release
# id: create_release
# uses: actions/create-release@latest
Expand Down Expand Up @@ -54,4 +53,4 @@ jobs:
uses: maxibor/conda-package-publish-action@v1.1
with:
subDir: "conda.recipe"
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}
5 changes: 0 additions & 5 deletions pyotf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
Copyright (c) 2016, David Hoffman
"""

from ._version import get_versions

__version__ = get_versions()["version"]
del get_versions

from . import _version

__version__ = _version.get_versions()["version"]

0 comments on commit a120837

Please sign in to comment.