Merge branch 'main' of github.com:WecoAI/aideml
Browse files- .github/workflows/python-publish.yml +39 -0
- aide/utils/metric.py +0 -1
- requirements.txt +1 -1
- setup.py +1 -1
.github/workflows/python-publish.yml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This workflow will upload a Python Package using Twine when a release is created
|
| 2 |
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
| 3 |
+
|
| 4 |
+
# This workflow uses actions that are not certified by GitHub.
|
| 5 |
+
# They are provided by a third-party and are governed by
|
| 6 |
+
# separate terms of service, privacy policy, and support
|
| 7 |
+
# documentation.
|
| 8 |
+
|
| 9 |
+
name: Publish on PyPI
|
| 10 |
+
|
| 11 |
+
on:
|
| 12 |
+
release:
|
| 13 |
+
types: [published]
|
| 14 |
+
|
| 15 |
+
permissions:
|
| 16 |
+
contents: read
|
| 17 |
+
|
| 18 |
+
jobs:
|
| 19 |
+
deploy:
|
| 20 |
+
|
| 21 |
+
runs-on: ubuntu-latest
|
| 22 |
+
|
| 23 |
+
steps:
|
| 24 |
+
- uses: actions/checkout@v4
|
| 25 |
+
- name: Set up Python
|
| 26 |
+
uses: actions/setup-python@v3
|
| 27 |
+
with:
|
| 28 |
+
python-version: '3.10'
|
| 29 |
+
- name: Install dependencies
|
| 30 |
+
run: |
|
| 31 |
+
python -m pip install --upgrade pip
|
| 32 |
+
pip install build
|
| 33 |
+
- name: Build package
|
| 34 |
+
run: python -m build
|
| 35 |
+
- name: Publish package
|
| 36 |
+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
|
| 37 |
+
with:
|
| 38 |
+
user: __token__
|
| 39 |
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
aide/utils/metric.py
CHANGED
|
@@ -38,7 +38,6 @@ class MetricValue(DataClassJsonMixin):
|
|
| 38 |
return comp if self.maximize else not comp # type: ignore
|
| 39 |
|
| 40 |
def __eq__(self, other: Any) -> bool:
|
| 41 |
-
# assert type(self) is type(other)
|
| 42 |
return self.value == other.value
|
| 43 |
|
| 44 |
def __repr__(self) -> str:
|
|
|
|
| 38 |
return comp if self.maximize else not comp # type: ignore
|
| 39 |
|
| 40 |
def __eq__(self, other: Any) -> bool:
|
|
|
|
| 41 |
return self.value == other.value
|
| 42 |
|
| 43 |
def __repr__(self) -> str:
|
requirements.txt
CHANGED
|
@@ -60,7 +60,7 @@ hyperopt
|
|
| 60 |
bayesian-optimization
|
| 61 |
imagecodecs
|
| 62 |
hmmlearn
|
| 63 |
-
bayespy
|
| 64 |
sklearn-pandas
|
| 65 |
tensorpack
|
| 66 |
sentencepiece
|
|
|
|
| 60 |
bayesian-optimization
|
| 61 |
imagecodecs
|
| 62 |
hmmlearn
|
| 63 |
+
bayespy==0.5.1
|
| 64 |
sklearn-pandas
|
| 65 |
tensorpack
|
| 66 |
sentencepiece
|
setup.py
CHANGED
|
@@ -8,7 +8,7 @@ with open("requirements.txt", "r") as f:
|
|
| 8 |
|
| 9 |
setup(
|
| 10 |
name="aideml",
|
| 11 |
-
version="0.1.
|
| 12 |
author="Weco AI",
|
| 13 |
author_email="contact@weco.ai",
|
| 14 |
description="Autonomous AI for Data Science and Machine Learning",
|
|
|
|
| 8 |
|
| 9 |
setup(
|
| 10 |
name="aideml",
|
| 11 |
+
version="0.1.2",
|
| 12 |
author="Weco AI",
|
| 13 |
author_email="contact@weco.ai",
|
| 14 |
description="Autonomous AI for Data Science and Machine Learning",
|