Skip to content

Commit

Permalink
Fix CI. (#49)
Browse files Browse the repository at this point in the history
* Verbose pip.

* Fix build.
  • Loading branch information
ast0815 authored Feb 6, 2023
1 parent 0c27717 commit 6f4c04c
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythontests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install dependencies
run: python -m pip install -r requirements.txt -r test-requirements.txt -r documentation-requirements.txt
- name: Install package
run: PYTHONPATH=./:$PYTHONPATH python -m pip install .
run: python -m pip -v install -e .
- name: Run tests
run: ./run_tests.sh
- name: Build documentation
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Ignore virtualenv
/ENV
/remu/version.py
/remu.egg-info
_version.py
*.egg-info
/dist
/build
.coverage
*.pyc
11 changes: 4 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
requires = ["setuptools", "setuptools-scm[toml]"]
build-backend = "setuptools.build_meta"

[project]
Expand Down Expand Up @@ -47,11 +47,8 @@ mcmc = [
[project.urls]
Home = "https://remu.readthedocs.io/en/latest/"

[tool.setuptools]
zip-safe = true

[tool.setuptools.packages.find]
include = ["remu"]
[tool.setuptools_scm]
write_to = "src/remu/_version.py"

[tool.setuptools.dynamic]
version = {attr = "remu.version.version"}
version = {attr = "remu.__version__"}
5 changes: 5 additions & 0 deletions remu/__init__.py → src/remu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@
events and response matrices.
"""

try:
from ._version import __version__
except ImportError:
__version__ = None
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6f4c04c

Please sign in to comment.