Skip to content

Commit

Permalink
Merge pull request #72 from PRIDE-Archive/python3
Browse files Browse the repository at this point in the history
merge from pride, delete API
  • Loading branch information
colin-combe authored Mar 26, 2024
2 parents 2bd4bdb + 9ce7416 commit 7f2055a
Show file tree
Hide file tree
Showing 52 changed files with 701 additions and 1,690 deletions.
2 changes: 1 addition & 1 deletion .Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ COPY parser ./parser
COPY tests ./tests
COPY *.py .
COPY default.database.ini .
COPY logging.ini .
COPY config/logging.ini .
COPY .kubernetes.yml .
44 changes: 44 additions & 0 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

#on:
# release:
# types: [published]
on:
push:
branches:
- pride
workflow_dispatch:

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ logs/*
logs/xi_mzidentml_converter.log
!logs/.gitkeep
.DS_Store
/dist

tests/test.db
dbs/xiSPEC\.db
Expand All @@ -31,3 +32,5 @@ test.db
database.ini
kubernetes.yml
Dockerfile
xi_mzidentml_converter.egg-info
build
File renamed without changes.
31 changes: 0 additions & 31 deletions app/api.py

This file was deleted.

137 changes: 0 additions & 137 deletions app/routes/pdbdev.py

This file was deleted.

Loading

0 comments on commit 7f2055a

Please sign in to comment.