From f6eb7538ae3edf4021f8636ee165c03025b83fa8 Mon Sep 17 00:00:00 2001 From: HMUNACHI Date: Tue, 12 Mar 2024 10:17:24 +0000 Subject: [PATCH 1/2] setup weekly schedule --- .github/workflows/weekly_release.yml | 51 ++++++++++++++++++++++++++++ README.md | 8 ++--- 2 files changed, 53 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/weekly_release.yml diff --git a/.github/workflows/weekly_release.yml b/.github/workflows/weekly_release.yml new file mode 100644 index 0000000..2ca7e72 --- /dev/null +++ b/.github/workflows/weekly_release.yml @@ -0,0 +1,51 @@ +name: Weekly Release + +on: + schedule: + - cron: '0 0 * * 1' # Runs every Sunday at 00:00 UTC + +jobs: + + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 # Fetch all commits to get accurate version number + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine bumpversion + + - name: Update version number + run: | + # Update the version number in setup.py and __init__.py + bumpversion --current-version $(python setup.py --version) --new-version $(bumpversion --list minor --new-minor-version --no-commit | grep new_minor_version | sed 's/new_minor_version=//') minor setup.py nanodl/__init__.py + + # Configure Git user + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + + # Commit the version changes + git add setup.py nanodl/__init__.py + git commit -m "Bump version" + + - name: Build and publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* + + - name: Git tag + run: | + git tag v$(python setup.py --version) + git push origin v$(python setup.py --version) \ No newline at end of file diff --git a/README.md b/README.md index 3e2ecc1..8c0764e 100644 --- a/README.md +++ b/README.md @@ -29,16 +29,12 @@ Developing and training transformer-based models is typically resource-intensive - True random number generators in Jax which do not need the verbose code. - A range of advanced algorithms for NLP and computer vision tasks, such as Gaussian Blur, BLEU etc. - Each model is contained in a single file with no external dependencies, so the source code can also be easily used. +- True random number generators in Jax which do not need the verbose code (examples shown in next sections). Feedback on any of our discussion, issue and pull request threads are welcomed! Please report any feature requests, issues, questions or concerns in the [discussion forum](https://github.com/hmunachi/nanodl/discussions), or just let us know what you're working on! In case you want to reach out directly, we're at ndubuakuhenry@gmail.com. -## What's New in version 1.2.1.dev1 - -- Google's Gemma architecture. -- Reward model wrapper and data-parallel distributed reward trainer. -- True random number generators in Jax which do not need the verbose code (examples shown in next sections). -There are experimental features (like MAMBA architecture and RLHF) in the repo which is not available via the package, pending tests. +There are experimental features (like MAMBA architecture and RLHF) in the repo which are not available via the package, pending tests. ## Quick install From 04b16d4df5ae94c6e448250d0de5e428223600ad Mon Sep 17 00:00:00 2001 From: HMUNACHI Date: Tue, 12 Mar 2024 10:19:40 +0000 Subject: [PATCH 2/2] updated setup --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6874462..753fdda 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='nanodl', - version='1.2.0.dev1', + version='1.2.1.dev1', author='Henry Ndubuaku', author_email='ndubuakuhenry@gmail.com', description='A Jax-based library for designing and training transformer models from scratch.',