Skip to content

Commit

Permalink
Merge pull request #6 from MDAnalysis/openid-only
Browse files Browse the repository at this point in the history
Remove ability to pass tokens
  • Loading branch information
IAlibay authored Oct 27, 2023
2 parents 3071c2a + 13f8606 commit 3a02988
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
- name: pypi
uses: MDAnalysis/pypi-deployment@main
with:
token: ${{ secrets.PYPI_API_TOKEN }}
package_name: 'mda_xdrlib'

runtestpypi:
Expand All @@ -50,7 +49,6 @@ jobs:
- name: testpypi
uses: MDAnalysis/pypi-deployment@main
with:
token: ${{ secrets.TEST_PYPI_API_TOKEN }}
test_submission: true
tests: true
wheels: false
Expand All @@ -70,7 +68,6 @@ jobs:
- name: testpypi
uses: MDAnalysis/pypi-deployment@main
with:
token: ${{ secrets.TEST_PYPI_API_TOKEN_GDF }}
test_submission: true
tests: true
wheels: false
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ Please see [action.yaml()] for all details.

The following options can be passed:

1. `token` (required): The relevant PyPi or TestPyPi upload token for the package.
2. `test_submission`: Bool, if true the package will be uploaded to TestPyPi instead of PyPi (default: false)
3. `wheels`: Bool, if true wheels will be created and uploaded (default: true)
4. `tests`: Bool, if true there will be an attempt to pull down the newly uploaded package and run tests. Please note this assumes testing via `pytest --pyargs inputs.package_name` (default: true)
5. `package_name`: Name of package on PyPi, only needed if testing package post-upload. Used for pip installing (default: 'MDAnalysis')
6. `module_name`: Name of package directory, only needed if testing package post-upload. Used for pytest pyargs. If unset will use `package_name` (default: null)
1. `test_submission`: Bool, if true the package will be uploaded to TestPyPi instead of PyPi (default: false)
2. `wheels`: Bool, if true wheels will be created and uploaded (default: true)
3. `tests`: Bool, if true there will be an attempt to pull down the newly uploaded package and run tests. Please note this assumes testing via `pytest --pyargs inputs.package_name` (default: true)
4. `package_name`: Name of package on PyPi, only needed if testing package post-upload. Used for pip installing (default: 'MDAnalysis')
5. `module_name`: Name of package directory, only needed if testing package post-upload. Used for pytest pyargs. If unset will use `package_name` (default: null)

### Example

Expand Down
5 changes: 0 additions & 5 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: pypi-deployment
description: Package and deploy to PyPi or TestPyPi
inputs:
token:
description: 'PyPi or TestPyPi token.'
required: true
test_submission:
description: 'True if this should be sent to TestPypi instead of PyPi.'
default: false
Expand Down Expand Up @@ -60,15 +57,13 @@ runs:
id: pypi_upload
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ inputs.token }}
repository_url: https://test.pypi.org/legacy/
skip-existing: true

- if: "${{ inputs.test_submission == 'false' }}"
id: testpypi_upload
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ inputs.token }}
skip-existing: true

- name: run_pytest
Expand Down

0 comments on commit 3a02988

Please sign in to comment.