Skip to content

Commit

Permalink
Merge pull request #36 from aiida-phonopy/dev/update-pypi
Browse files Browse the repository at this point in the history
Fixing PyPI workflow
  • Loading branch information
bastonero committed Oct 24, 2022
2 parents 3717bd1 + 3f4a79c commit 7853d74
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 34 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/publish-to-test-pypi.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish PyPI and TestPyPI

on: push

jobs:
build-linux:
runs-on: ubuntu-latest

strategy:
max-parallel: 5

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Make sdist and bdist_wheel
run: pip install .

- name: Publish package to TestPyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/develop')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: Publish package to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/develop')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
1 change: 0 additions & 1 deletion src/aiida_phonopy/calculations/functions/data_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
"""Calcfunctions Utils for aiida-phonopy DataTypes."""

from aiida import orm
from aiida.engine import calcfunction
from aiida.plugins import DataFactory
Expand Down
2 changes: 2 additions & 0 deletions src/aiida_phonopy/parsers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
"""Parsers of Phonopy postprocessing."""

0 comments on commit 7853d74

Please sign in to comment.