Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bmt update #7

Merged
merged 4 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 21 additions & 19 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: push
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
strategy:
matrix:
bmt_version:
Expand All @@ -24,33 +24,35 @@ jobs:
# - '2.2.3'
# - '2.2.4'
# - '2.2.5'
- 'v2.3.0'
- 'v2.3.1'
- 'v2.4.0'
- 'v2.4.1'
- 'v2.4.2'
- 'v2.4.3'
# - 'v.2.4.4' Bad tag
- 'v2.4.5'
- 'v2.4.6'
- 'v2.4.7'
- 'v2.4.8'
- 'v3.0.0'
- 'v3.0.1'
- 'v3.0.2'
- 'v3.0.3'
- 'v3.1.0'
# the following ones should work but aren't really needed so commenting out for now
# - 'v2.3.0'
# - 'v2.3.1'
# - 'v2.4.0'
# - 'v2.4.1'
# - 'v2.4.2'
# - 'v2.4.3'
# - 'v2.4.5'
# - 'v2.4.6'
# - 'v2.4.7'
# - 'v2.4.8'
# - 'v3.0.0'
# - 'v3.0.1'
# - 'v3.0.2'
# - 'v3.0.3'
# - 'v3.1.0'
- 'v3.6.0'
# - 'v4.0.0'
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install setuptools and wheel
run: >-
python -m
pip install
-rrequirements-build.txt
-r requirements-build.txt
--user
- name: Build a binary wheel and a source tarball
run: >-
Expand Down
4 changes: 2 additions & 2 deletions bmt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def __init__(
name: str,
symmetric: bool = False,
inverse: Optional[str] = None,
annotations: Dict[str, bool] = dict(),
annotations: Dict[str, bool] = None,
slot_uri: Optional[str] = None,
range: Optional[str] = None,
**kwargs,
Expand All @@ -199,7 +199,7 @@ def __init__(
super().__init__(name)
self.symmetric: bool = symmetric
self.inverse: Optional[str] = inverse
self.annotations: Dict[str, bool] = annotations
self.annotations: Dict[str, bool] = annotations if annotations else dict()
self.slot_uri: Optional[str] = slot_uri
self.range: Optional[str] = range

Expand Down
7 changes: 4 additions & 3 deletions requirements-build.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
bmt==0.8.12
httpx==0.18.2
wheel==0.36.2
bmt==1.1.3
httpx==0.25.2
wheel==0.42.0
pyyaml==6.0.1
4 changes: 2 additions & 2 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pytest==6.2.4
tox==3.23.1
pytest==7.4.3
tox==4.11.4
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def build(version: str):
"symmetric": el.symmetric,
"inverse": el.inverse,
"annotations": {
tag: annotation.value.lower() == "true"
tag: annotation.value is True
for tag, annotation in el.annotations.items()
},
"slot_uri": el.slot_uri,
Expand Down Expand Up @@ -291,10 +291,10 @@ def build(version: str):

setup(
name=f"bmt-lite-{version}",
version="2.2.2",
version="2.3.0",
author="Patrick Wang",
author_email="[email protected]",
url="https://github.com/patrickkwang/bmt-lite",
url="https://github.com/TranslatorSRI/bmt-lite",
description="A zero-dependency near-clone of common bmt capabilities",
long_description=long_description,
long_description_content_type="text/markdown",
Expand All @@ -304,5 +304,5 @@ def build(version: str):
install_requires=[],
zip_safe=False,
license="MIT",
python_requires=">=3.7",
python_requires=">=3.9",
)
Loading