Skip to content

Commit

Permalink
Merge pull request #29 from fusion-energy/merging_packages
Browse files Browse the repository at this point in the history
Merging packages
  • Loading branch information
shimwell authored May 30, 2023
2 parents b1ef2b8 + fd7b681 commit 2f95f8b
Show file tree
Hide file tree
Showing 35 changed files with 13,719 additions and 233 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/anaconda-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
conda build conda -c fusion-energy -c cadquery -c conda-forge --config-file conda/conda_build_config.yaml
conda build conda -c conda-forge --config-file conda/conda_build_config.yaml
conda convert /opt/conda/conda-bld/linux-64/*.tar.bz2 --platform osx-64
anaconda upload -f /opt/conda/conda-bld/*/*.tar.bz2
Expand Down
61 changes: 3 additions & 58 deletions .github/workflows/ci_with_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,77 +43,22 @@ jobs:
pip install .
python -c "import cad_to_dagmc"
- name: Run cad creation tests
run: |
pip install .[tests]
pytest tests/test_h5m_creation.py -v
- name: create stp files
- name: run examples
run: |
cd examples
python create_stp_files_for_examples.py
- name: Run example cadquery_assembly
run: |
cd examples
python cadquery_assembly.py
- name: Run example cadquery_compound
run: |
cd examples
python cadquery_compound.py
- name: Run example cadquery_object_and_stp_file
run: |
cd examples
python cadquery_object_and_stp_file.py
- name: Run example cadquery_text
run: |
cd examples
python cadquery_text.py
- name: Run example curved_cadquery_object
run: |
cd examples
python curved_cadquery_object.py
- name: Run example multiple_cadquery_objects
run: |
cd examples
python multiple_cadquery_objects.py
- name: Run example multiple_stp_files
run: |
cd examples
python multiple_stp_files.py
- name: Run example single_stp_file_multiple_volumes.py
run: |
cd examples
python single_stp_file_multiple_volumes.py
- name: Run example single_cadquery_object
run: |
cd examples
python single_cadquery_object.py
- name: Run example single_stp_file
run: |
cd examples
python single_stp_file.py
- name: Run simulation tests
- name: Run pytest
run: |
pip install .[tests]
pytest tests/test_h5m_in_simulation.py -v
pytest tests -v
28 changes: 0 additions & 28 deletions .github/workflows/conda-build-test.yml

This file was deleted.

3 changes: 0 additions & 3 deletions conda/conda_build_config.yaml

This file was deleted.

50 changes: 0 additions & 50 deletions conda/meta.yaml

This file was deleted.

18 changes: 18 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

name: env_neutronics
channels:
- conda-forge
dependencies:
- python=3.11
- cad_to_dagmc
- cadquery=2.2.0
- occt=7.7.0
- gmsh
- python-gmsh
- moab
- trimesh
- openmc=0.13.3=dagmc*
- networkx
- pip
- pip:
- openmc_data_downloader
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ classifiers = [
]
dependencies = [
"cadquery>=2.2.0",
"brep_to_h5m>=0.4.2",
"brep_part_finder>=0.5.2",
"trimesh",
"networkx",
]
dynamic = ["version"]

Expand All @@ -32,7 +32,6 @@ write_to = "src/_version.py"
[project.optional-dependencies]
tests = [
"pytest",
"dagmc_h5m_file_inspector",
"openmc_data_downloader"
]

Expand Down
3 changes: 3 additions & 0 deletions src/cad_to_dagmc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@
__all__ = ["__version__"]

from .core import CadToDagmc
from .vertices_to_h5m import *
from .brep_part_finder import *
from .brep_to_h5m import *
Loading

0 comments on commit 2f95f8b

Please sign in to comment.