Skip to content

Commit

Permalink
Merge pull request #76 from muon-spectroscopy-computational-project/a…
Browse files Browse the repository at this point in the history
…dd-build-action-#75

Add build action
  • Loading branch information
joelvdavies committed Feb 1, 2023
2 parents 3aaab2d + 2e2ca87 commit 5011312
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build pip wheels

on:
push:
branches:
- main

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Build source distribution and wheel
run: |
python -m pip install build
python -m build
- uses: actions/upload-artifact@v3
with:
path: dist/*
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools",
"wheel"
]
build-backend = "setuptools.build_meta"
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import pathlib
from setuptools import setup, find_packages

from pymuonsuite import __version__

this_dir = pathlib.Path(__file__).parent
readme_text = (this_dir / "README.md").read_text()

Expand All @@ -25,9 +23,13 @@
os.path.join("data/dftb_pars/", "*"),
]

version = {}
with open("pymuonsuite/__init__.py", encoding="utf-8") as fp:
exec(fp.read(), version) # pylint: disable=exec-used

setup(
name="PyMuonSuite",
version=__version__,
version=version["__version__"],
description=("A suite of utilities for muon spectroscopy"),
long_description=readme_text,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 5011312

Please sign in to comment.