Skip to content

Commit

Permalink
fix dist building
Browse files Browse the repository at this point in the history
  • Loading branch information
lbluque committed May 9, 2024
1 parent 56942a8 commit d745294
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 232 deletions.
13 changes: 9 additions & 4 deletions packages/fairchem-applications-AdsorbML/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
[build-system]
requires = ["hatchling","hatch-vcs"]
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme>=24"]
build-backend = "hatchling.build"

[project]
name = "fairchem.applications.adsorbml"
dynamic = ["version"]
dynamic = ["version", "readme"]
description = "Module for calculating the minima adsorbtion energy"
readme = "../../src/fairchem/applications/AdsorbML/README.md"
license = ""

[project.urls]
Homepage = "http://github.com/Open-Catalyst-Project/AdsorbML"
homepage = "http://github.com/Open-Catalyst-Project/AdsorbML"

[tool.hatch.version]
source = "vcs"
Expand All @@ -27,3 +26,9 @@ only-include = ["src/fairchem/applications/AdsorbML"]
sources = ["src"]
only-include = ["src/fairchem/applications/AdsorbML"]

[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
fragments = [
{ path = "src/fairchem/applications/AdsorbML/README.md" },
{ path = "src/fairchem/applications/AdsorbML/LICENSE.md" },
]
13 changes: 9 additions & 4 deletions packages/fairchem-core/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
[build-system]
requires = ["hatchling","hatch-vcs"]
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme>=24"]
build-backend = "hatchling.build"

[project]
name = "fairchem.core"
description = "Machine learning models for use in catalysis as part of the Open Catalyst Project"
readme = "src/fairchem/core/README.md"
license = {text = "MIT License"}
dynamic = ["version"]
dynamic = ["version", "readme"]
requires-python = ">=3.9, <3.13"
dependencies = [
"torch>=2.2",
Expand Down Expand Up @@ -50,13 +49,19 @@ git_describe_command = 'git describe --dirty --tags --long --match fairchem.core
directory = "../../dist"

[tool.hatch.build.targets.sdist]
sources = ["src"]
only-include = ["src/fairchem/core"]

[tool.hatch.build.targets.wheel]
sources = ["src"]
only-include = ["src/fairchem/core"]

[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
fragments = [
{ path = "src/fairchem/core/README.md" },
{ path = "src/fairchem/core/LICENSE.md" },
]

[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-p no:warnings --import-mode importlib -x --quiet -rxXs --color yes"
Expand Down
14 changes: 9 additions & 5 deletions packages/fairchem-data-oc/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
[build-system]
requires = ["hatchling","hatch-vcs"]
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme>=24"]
build-backend = "hatchling.build"

[project]
name = "fairchem.data.oc"
dynamic = ["version"]
dynamic = ["version", "readme"]
description = "Code for generating adsorbate-catalyst input configurations"
readme = "src/fairchem/data/oc/README.md"
license = ""

[project.urls]
Expand All @@ -23,14 +22,19 @@ git_describe_command = 'git describe --dirty --tags --long --match fairchem.data
directory = "../../dist"

[tool.hatch.build.targets.sdist]
sources = ["src"]
only-include = ["src/fairchem/data/oc"]

[tool.hatch.build.targets.wheel]
sources = ["src"]
only-include = ["src/fairchem/data/oc"]

[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
fragments = [
{ path = "src/fairchem/data/oc/README.md" }
]

[tool.ruff.lint.per-file-ignores]
# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`.
"src/fairchem/data/oc/core/__init__.py" = ["F401"]
"src/fairchem/data/oc/utils/__init__.py" = ["F401"]
"src/fairchem/data/oc/utils/__init__.py" = ["F401"]
13 changes: 9 additions & 4 deletions packages/fairchem-data-om/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
[build-system]
requires = ["hatchling","hatch-vcs"]
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme>=24"]
build-backend = "hatchling.build"

[project]
name = "fairchem.data.om"
dynamic = ["version"]
dynamic = ["version", "readme"]
description = "Code for generating OMOL input configurations"
readme = "../../src/fairchem/data/om/README.md"
license = ""
dependencies = [
"ase@git+https://gitlab.com/ase/ase.git@dc86a19a280741aa2b42a08d0fa63a8d0348e225",
Expand All @@ -31,9 +30,15 @@ git_describe_command = 'git describe --dirty --tags --long --match om*'
directory = "../../dist"

[tool.hatch.build.targets.sdist]
sources = ["src"]
only-include = ["src/fairchem/data/om"]

[tool.hatch.build.targets.wheel]
sources = ["src"]
only-include = ["src/fairchem/data/om"]

[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
fragments = [
{ path = "src/fairchem/data/om/README.md" },
{ path = "src/fairchem/data/om/LICENSE.md" },
]
11 changes: 7 additions & 4 deletions packages/fairchem-demo-ocpapi/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
[build-system]
requires = ["hatchling","hatch-vcs"]
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme>=24"]
build-backend = "hatchling.build"

[project]
name = "fairchem.demo.ocpapi"
dynamic = ["version"]
dynamic = ["version" ,"readme"]
description = "Python client library for the Open Catalyst API"
readme = "../../src/fairchem/demo/README.md"
license = ""
requires-python = ">=3.9"
authors = [
Expand Down Expand Up @@ -43,10 +42,14 @@ git_describe_command = 'git describe --dirty --tags --long --match fairchem.ocpa
directory = "../../dist"

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

[tool.hatch.build.targets.wheel]
sources = ["src"]
only-include = ["src/fairchem/demo/ocpapi"]

[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
fragments = [
{ path = "src/fairchem/demo/ocpapi/README.md" }
]
211 changes: 0 additions & 211 deletions src/fairchem/demo/README.md

This file was deleted.

0 comments on commit d745294

Please sign in to comment.