Skip to content

Commit c494b58

Browse files
authored
Merge pull request #26 from Becksteinlab/improve-deploy
improve deployment
2 parents b631bbd + 3aa01ab commit c494b58

File tree

4 files changed

+61
-2
lines changed

4 files changed

+61
-2
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/deploy.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build and upload to PyPi
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
release:
8+
types:
9+
- published
10+
11+
jobs:
12+
test_pypi_push:
13+
environment:
14+
name: deploy
15+
url: https://test.pypi.org/p/basicrta
16+
permissions:
17+
id-token: write
18+
if: |
19+
github.repository == 'Becksteinlab/basicrta' &&
20+
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/'))
21+
name: Build, upload and test pure Python wheels to TestPypi
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: testpypi_deploy
28+
uses: MDAnalysis/pypi-deployment@main
29+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
30+
with:
31+
test_submission: true
32+
package_name: 'basicrta'
33+
34+
pypi_push:
35+
environment:
36+
name: deploy
37+
url: https://pypi.org/p/basicrta
38+
permissions:
39+
id-token: write
40+
if: |
41+
github.repository == 'Becksteinlab/basicrta' &&
42+
(github.event_name == 'release' && github.event.action == 'published')
43+
name: Build, upload and test pure Python wheels to PyPi
44+
runs-on: ubuntu-latest
45+
46+
steps:
47+
- uses: actions/checkout@v4
48+
49+
- name: pypi_deploy
50+
uses: MDAnalysis/pypi-deployment@main
51+
if: github.event_name == 'release' && github.event.action == 'published'
52+
with:
53+
package_name: 'basicrta'

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ dist/
66
# Test artifacts
77
basicrta-*/
88
*.pkl
9+
10+
# editor files
11+
*~
12+
13+
# macOS garbage
14+
.DS_Store

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ build-backend = "setuptools.build_meta"
88
[project]
99
name = "basicrta"
1010
description = "A package to extract binding kinetics from molecular dynamics simulations"
11-
license = {file = "LICENSE" }
11+
license = "GPL-3.0-or-later"
12+
license-files = ["LICENSE"]
1213
authors = [
1314
{name = "Ricky Sexton", email = "[email protected]"},
1415
]

0 commit comments

Comments
 (0)