Skip to content

Commit d17e69f

Browse files
committed
Merge branch 'hotfix/0.3.1' into main
2 parents 08944ed + 5aa9156 commit d17e69f

2 files changed

Lines changed: 50 additions & 2 deletions

File tree

.github/workflows/install.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Composer Pip Install
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
workflow_dispatch: {}
10+
jobs:
11+
ComposerPip:
12+
timeout-minutes: 10
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python_version:
17+
- "3.7"
18+
- "3.8"
19+
- "3.9"
20+
install_version:
21+
- ""
22+
- "[all]"
23+
- "[dev]"
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: actions/setup-python@v2
27+
with:
28+
python-version: ${{ matrix.python_version }}
29+
- name: Cache pip
30+
uses: actions/cache@v2
31+
with:
32+
# This path is specific to Ubuntu
33+
path: ~/.cache/pip
34+
# Look to see if there is a cache hit for the corresponding requirements file
35+
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
36+
restore-keys: |
37+
${{ runner.os }}-pip-
38+
${{ runner.os }}-
39+
- name: Setup
40+
run: |
41+
set -exuo pipefail
42+
python -m pip install --upgrade pip wheel
43+
python -m pip install -e .${{ matrix.install_version }}
44+
- name: Run import
45+
id: tests
46+
run: |
47+
set -exuo pipefail
48+
python -c "import composer"

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def package_files(directory):
7171

7272
setup(
7373
name="mosaicml",
74-
version="0.3.0",
74+
version="0.3.1",
7575
author="MosaicML",
7676
author_email="[email protected]",
7777
description="composing methods for ML training efficiency",
@@ -83,7 +83,7 @@ def package_files(directory):
8383
"composer": ['py.typed'],
8484
"": package_files('composer/yamls'),
8585
},
86-
packages=setuptools.find_packages(include=["composer"]),
86+
packages=setuptools.find_packages(exclude=["tests*"]),
8787
classifiers=[
8888
"Programming Language :: Python :: 3",
8989
],

0 commit comments

Comments
 (0)