Skip to content

Commit

Permalink
build: Convert build to pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
ketiltrout committed Jul 31, 2024
1 parent 6bfc55c commit f21231e
Show file tree
Hide file tree
Showing 10 changed files with 58 additions and 3,134 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

19 changes: 8 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

services:
mysql:
image: mysql:5.7
image: mysql:8.4
env:
MYSQL_USER: test
MYSQL_PASSWORD: test
Expand All @@ -46,35 +46,32 @@ jobs:
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Update apt-get
run: sudo apt-get update

- name: Install apt dependencies
run: |
sudo apt-get install -y libopenmpi-dev libhdf5-serial-dev
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install pytest and future and dateutil
run: |
pip install pytest future python-dateutil git+https://github.com/chime-experiment/ch_util.git
- name: Install chimedb_dataflags
run: |
pip install .
- name: Install test requirements
run: |
pip install .[test]
- name: Run tests
# Set PYTHONPATH so that relative imports in click script work when pytest imports that
run: PYTHONPATH=. pytest -s tests
23 changes: 0 additions & 23 deletions CHANGELOG.md

This file was deleted.

2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

13 changes: 8 additions & 5 deletions chimedb/dataflag/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@
DataFlagOpinionCategory,
)

from . import _version

__version__ = _version.get_versions()["version"]

from .vote import VotingJudge
from importlib.metadata import version, PackageNotFoundError

try:
__version__ = version("chimedb.dataflag")
except PackageNotFoundError:
# package is not installed, use the fallback version
__version__ = "24.6.99"
del version, PackageNotFoundError
Loading

0 comments on commit f21231e

Please sign in to comment.