Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/migen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fe6836f7ca1f
Choose a base ref
...
head repository: m-labs/migen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9ec14bc85dba
Choose a head ref
  • 3 commits
  • 5 files changed
  • 1 contributor

Commits on Dec 2, 2015

  1. Revert "test: also look for examples in [.../dist-packages]/migen/exa…

    …mples/."
    
    This reverts commit 5e8001a.
    whitequark committed Dec 2, 2015
    Copy the full SHA
    bf78f89 View commit details
  2. Revert "setuptools: include examples as migen.examples."

    This reverts commit 2bf1110.
    whitequark committed Dec 2, 2015
    Copy the full SHA
    9d100af View commit details
  3. Revert "conda: run tests as a part of package build."

    This reverts commit 028224d.
    whitequark committed Dec 2, 2015
    Copy the full SHA
    9ec14bc View commit details
Showing with 6 additions and 10 deletions.
  1. +4 −0 conda/migen/meta.yaml
  2. +0 −1 conda/migen/run_test.bat
  3. +0 −1 conda/migen/run_test.sh
  4. +1 −5 migen/test/test_examples.py
  5. +1 −3 setup.py
4 changes: 4 additions & 0 deletions conda/migen/meta.yaml
Original file line number Diff line number Diff line change
@@ -17,6 +17,10 @@ requirements:
run:
- python 3.5.*

test:
imports:
- migen

about:
home: http://m-labs.hk/gateware.html
license: 3-clause BSD
1 change: 0 additions & 1 deletion conda/migen/run_test.bat

This file was deleted.

1 change: 0 additions & 1 deletion conda/migen/run_test.sh

This file was deleted.

6 changes: 1 addition & 5 deletions migen/test/test_examples.py
Original file line number Diff line number Diff line change
@@ -8,11 +8,7 @@ def _make_test_method(name, foldername):
def test_method(self):
filename = name + ".py"
example_path = os.path.abspath(
os.path.join(os.path.dirname(__file__), "..", "examples"))
if not os.path.isdir(example_path):
# we're running from the source tree
example_path = os.path.abspath(
os.path.join(os.path.dirname(__file__), "..", "..", "examples"))
os.path.join(os.path.dirname(__file__), "..", "..", "examples"))
filepath = os.path.join(example_path, foldername, filename)
subprocess.check_call(
[sys.executable, filepath],
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -18,9 +18,7 @@
author_email="sb@m-labs.hk",
url="http://m-labs.hk",
download_url="https://github.com/m-labs/migen",
packages=find_packages(exclude=('examples.*',)) + ['migen.examples'],
package_dir={'migen.examples': 'examples'},
package_data={'migen.examples': ['**/*.py']},
packages=find_packages(),
test_suite="migen.test",
license="BSD",
platforms=["Any"],