Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #275 from simphony/move-dev-packages
Browse files Browse the repository at this point in the history
Move dev packages. Fix #266
  • Loading branch information
mehdisadeghi committed Feb 18, 2016
2 parents 77e7a39 + c3f8fee commit 6c501ec
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 18 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,10 @@ docs/_build/
target/

# jar files
*.jar
*.jar

# Hypothesis test suite stuff
.hypothesis

# PyCharm IDE stuff
.idea
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import tempfile
import uuid

from simphony.bench.util import bench
from .util import bench
from simphony.io.h5_cuds import H5CUDS
from simphony.cuds.particles import Particle, Particles

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import random

from simphony.bench.util import bench
from .util import bench
from simphony.core.data_container import DataContainer
from simphony.core.cuba import CUBA

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import tables

from simphony.bench.util import bench
from .util import bench
from simphony.core.cuba import CUBA
from simphony.core.data_container import DataContainer
from simphony.io.data_container_table import DataContainerTable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import tables

from simphony.bench.util import bench
from .util import bench
from simphony.core.cuba import CUBA
from simphony.core.data_container import DataContainer
from simphony.io.indexed_data_container_table import (
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

class TestBenchModules(unittest.TestCase):

def test_imporiting(self):
def test_importing(self):
for module in BENCH_MODULES:
name = '.'.join(('simphony', 'bench', module))
name = '.'.join(('bench', module))
importlib.import_module(name)


Expand Down
File renamed without changes.
22 changes: 11 additions & 11 deletions doc/source/extending_simphony.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ to see if the keyword already exists. Contact the developers at
https://github.com/simphony/simphony-common if there are any questions.

Once you have decided upon what CUBA needs to be added (or modified), edit
``simphony/core/cuba.yml`` to add the respective keyword. Ensure that all the
``simphony/core/cuba.yml`` to add the respective keyword. Ensure that all
the required information is accurately provided.

Developers should then use cuba_generate.py to generate four files which are
based on the contents of cuba.yml::

python simphony/scripts/cuba_generate.py python simphony/core/cuba.yml simphony/core/cuba.py
python simphony/scripts/cuba_generate.py keywords simphony/core/cuba.yml simphony/core/keywords.py
python simphony/scripts/cuba_generate.py rst simphony/core/cuba.yml doc/source/cuba.rst
python simphony/scripts/cuba_generate.py table simphony/core/cuba.yml simphony/io/data_container_description.py
python scripts/cuba_generate.py python simphony/core/cuba.yml simphony/core/cuba.py
python scripts/cuba_generate.py keywords simphony/core/cuba.yml simphony/core/keywords.py
python scripts/cuba_generate.py rst simphony/core/cuba.yml doc/source/cuba.rst
python scripts/cuba_generate.py table simphony/core/cuba.yml simphony/io/data_container_description.py

Finally, a pull request should be created and reviewed.

Expand All @@ -95,12 +95,12 @@ This information is used to generate different documentation and code.
Similar to extending CUBA, a script is used to generate multiple files
based on the content of ``material_relation_definitions.yml``::

python simphony/scripts/material_relations_generate.py create_enum simphony/core/material_relation_definitions.yml simphony/core/cuds_material_relation.py
python simphony/scripts/material_relations_generate.py python simphony/core/material_relation_definitions.yml simphony/cuds/material_relations/
python simphony/scripts/material_relations_generate.py test simphony/core/material_relation_definitions.yml simphony/cuds/material_relations/tests/
python simphony/scripts/material_relations_generate.py material_relations_definitions_py simphony/core/material_relation_definitions.yml simphony/core/material_relation_definitions.py
python simphony/scripts/material_relations_generate.py table_rst simphony/core/material_relation_definitions.yml doc/source/material_relations_table.rst
python simphony/scripts/material_relations_generate.py create_api simphony/core/material_relation_definitions.yml doc/source/api/material_relations.rst
python scripts/material_relations_generate.py create_enum simphony/core/material_relation_definitions.yml simphony/core/cuds_material_relation.py
python scripts/material_relations_generate.py python simphony/core/material_relation_definitions.yml simphony/cuds/material_relations/
python scripts/material_relations_generate.py test simphony/core/material_relation_definitions.yml simphony/cuds/material_relations/tests/
python scripts/material_relations_generate.py material_relations_definitions_py simphony/core/material_relation_definitions.yml simphony/core/material_relation_definitions.py
python scripts/material_relations_generate.py table_rst simphony/core/material_relation_definitions.yml doc/source/material_relations_table.rst
python scripts/material_relations_generate.py create_api simphony/core/material_relation_definitions.yml doc/source/api/material_relations.rst

A pull request should be created https://github.com/simphony/simphony-common
and reviewed by the SimPhoNy developers.
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 6c501ec

Please sign in to comment.