Skip to content

Commit

Permalink
chore: deprecate nixtlats package (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoralez authored Sep 1, 2024
1 parent f29d1fe commit f0ffa6e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,3 @@ jobs:
- name: Publish nixtla package
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0

- name: Build nixtlats package
run: >
rm -rf build dist &&
mv nixtla nixtlats &&
sed -i 's/name="nixtla"/name="nixtlats"/g' setup.py &&
find nixtlats -type f -name '*.py' -exec sed -i 's/from nixtla/from nixtlats/g' {} + &&
echo -e 'import warnings\nwarnings.warn("This package is deprecated, please install nixtla instead.", category=FutureWarning)' >> nixtlats/__init__.py &&
python -m build
- name: Publish nixtlats package
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0
13 changes: 0 additions & 13 deletions .github/workflows/test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,3 @@ jobs:
with:
repository-url: https://test.pypi.org/legacy/

- name: Build nixtlats package
run: >
rm -rf build dist &&
mv nixtla nixtlats &&
sed -i 's/name="nixtla"/name="nixtlats"/g' setup.py &&
find nixtlats -type f -name '*.py' -exec sed -i 's/from nixtla/from nixtlats/g' {} + &&
echo -e 'import warnings\nwarnings.warn("This package is deprecated, please install nixtla instead.", category=FutureWarning)' >> nixtlats/__init__.py &&
python -m build
- name: Publish nixtlats package
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit f0ffa6e

Please sign in to comment.