Skip to content

Commit

Permalink
Merge pull request #62 from thomaswmorris/configure-build
Browse files Browse the repository at this point in the history
Stop using setup.py
  • Loading branch information
mrakitin authored Feb 1, 2024
2 parents cc8a94b + 05c4eff commit e7c7e5a
Show file tree
Hide file tree
Showing 18 changed files with 108 additions and 2,690 deletions.
11 changes: 0 additions & 11 deletions .cookiecutter-bloptools.yaml

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ jobs:
set -vxeo pipefail
pip install --upgrade pip wheel
pip install -v .
pip install -r requirements-dev.txt
pip install -v .[dev]
pip list
- name: Build Docs
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ name: PyPI upload
on:
release:
types: [created]
workflow_dispatch:

jobs:
publish_pypi:
Expand All @@ -30,8 +31,8 @@ jobs:
run: |
set -vxeuo pipefail
python -m pip install --upgrade pip
pip install wheel setuptools
python setup.py sdist bdist_wheel
pip install build
python -m build
- name: Publish wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
host-os: ["ubuntu-latest"]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]
fail-fast: false

defaults:
Expand Down Expand Up @@ -67,12 +67,11 @@ jobs:
set -vxeo pipefail
pip install --upgrade pip wheel
pip install -v .
pip install -r requirements-dev.txt
pip install -v .[dev]
pip list
- name: Test with pytest
run: |
set -vxeuo pipefail
coverage run -m pytest -vv -s -m test_func
coverage run -m pytest -vv -s
coverage report -m
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
blop/_version.py

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
13 changes: 0 additions & 13 deletions AUTHORS.rst

This file was deleted.

103 changes: 0 additions & 103 deletions CONTRIBUTING.rst

This file was deleted.

17 changes: 0 additions & 17 deletions MANIFEST.in

This file was deleted.

5 changes: 1 addition & 4 deletions blop/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
from . import utils # noqa F401
from ._version import get_versions
from ._version import __version__, __version_tuple__ # noqa: F401
from .agent import Agent # noqa F401
from .dofs import DOF # noqa F401
from .objectives import Objective # noqa F401

__version__ = get_versions()["version"]
del get_versions
Loading

0 comments on commit e7c7e5a

Please sign in to comment.