Skip to content

Commit

Permalink
Merge pull request #23 from dbmi-bgm/upgrade-python-20230920
Browse files Browse the repository at this point in the history
Upgrade Python 3.11
  • Loading branch information
dmichaels-harvard authored Oct 10, 2023
2 parents adea561 + 6224162 commit ecb60d2
Show file tree
Hide file tree
Showing 6 changed files with 393 additions and 234 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# PyPi publish for magma

name: publish

# Controls when the action will run.
on:

# Publish on all tags
push:
tags:
- '*'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-22.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Publish
env:
PYPI_USER: ${{ secrets.PYPI_USER }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
make configure
make publish-for-ga
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
name: Test magma with Python ${{ matrix.python_version }}

# The type of runner that the job will run on
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
python_version: [3.7, 3.8]
python_version: ['3.8', '3.9', '3.10', '3.11']

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

==========
Change Log
==========


2.0.0
=====
* Added this CHANGELOG.rst file.
* Upgrade to Python 3.11.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ configure:
pip install poetry

build:
make configure
poetry install

update:
Expand All @@ -19,6 +20,16 @@ help:
clean:
rm -rf *.egg-info

publish:
poetry run publish-to-pypi

publish-for-ga:
# Need this poetry install first for some reason in GitHub Actions, otherwise getting this:
# Warning: 'publish-to-pypi' is an entry point defined in pyproject.toml, but it's not installed as a script. You may get improper `sys.argv[0]`.
# Only a warning, but then it does not find dcicutils for some reason.
poetry install
poetry run publish-to-pypi --noconfirm

info:
@: $(info Here are some 'make' options:)
$(info - Use 'make configure' to configure the repo by installing poetry.)
Expand Down
Loading

0 comments on commit ecb60d2

Please sign in to comment.