Skip to content

Commit

Permalink
build distributions separately
Browse files Browse the repository at this point in the history
  • Loading branch information
lbluque committed May 13, 2024
1 parent e109d4c commit 5153fa6
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 6 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip
pip install hatch
- name: Build
Expand All @@ -32,6 +32,23 @@ jobs:
hatch build
popd
done
- uses: actions/upload-artifact@v4
# unfortunately there isn't a clean way to upload artifacts separately so just copy
# for each new package right now
- name: Upload core artifact
uses: actions/upload-artifact@v4
with:
name: dist-core
path: dist-core/*

- name: Upload data-oc artifact
uses: actions/upload-artifact@v4
with:
name: dist-data-oc
path: dist-data-oc/*

- name: Upload demo-ocpapi artifact
uses: actions/upload-artifact@v4
with:
path: dist/*
name: dist-demo-ocpapi
path: dist-demo-ocpapi/*
3 changes: 3 additions & 0 deletions packages/fairchem-applications-AdsorbML/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ source = "vcs"
root = "../../"
git_describe_command = 'git describe --tags --match fairchem_applications_adsorbml-*'

[tool.hatch.build]
directory = "../../dist-applications-adsorbml"

[tool.hatch.build.targets.sdist]
sources = ["src"]
only-include = ["src/fairchem/applications/AdsorbML"]
Expand Down
2 changes: 1 addition & 1 deletion packages/fairchem-core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ root = "../../"
git_describe_command = 'git describe --tags --match fairchem_core-*'

[tool.hatch.build]
directory = "../../dist"
directory = "../../dist-core"

[tool.hatch.build.targets.sdist]
only-include = ["src/fairchem/core", "src/fairchem/experimental"]
Expand Down
2 changes: 1 addition & 1 deletion packages/fairchem-data-oc/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ root = "../../"
git_describe_command = 'git describe --tags --match fairchem_data_oc-*'

[tool.hatch.build]
directory = "../../dist"
directory = "../../dist-data-oc"

[tool.hatch.build.targets.sdist]
only-include = ["src/fairchem/data/oc"]
Expand Down
3 changes: 3 additions & 0 deletions packages/fairchem-data-om/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ source = "vcs"
root = "../../"
git_describe_command = 'git describe --tags --match fairchem_data_om-*'

[tool.hatch.build]
directory = "../../dist-data-om"

[tool.hatch.build]
directory = "../../dist"

Expand Down
2 changes: 1 addition & 1 deletion packages/fairchem-demo-ocpapi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ root = "../../"
git_describe_command = 'git describe --tags --match fairchem_demo_ocpapi-*'

[tool.hatch.build]
directory = "../../dist"
directory = "../../dist-demo-ocpapi"

[tool.hatch.build.targets.sdist]
only-include = ["src/fairchem/demo/ocpapi"]
Expand Down

0 comments on commit 5153fa6

Please sign in to comment.