Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application
name: Pytest

on:
push:
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Commit Artifacts

on:
push:
branches: [ "release/*" ]

jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: commit build artifacts
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "build: add distribution files"
file_pattern: "dist/*"
add_options: "-f"
disable_globbing: false
skip_dirty_check: true
18 changes: 18 additions & 0 deletions .github/workflows/release-draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release Draft 🚀
on:
push:
tags:
- 'v*'

jobs:
publishGitRelease:
if: startsWith(github.event.base_ref, 'refs/heads/release')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
draft: true
fail_on_unmatched_files: true
24 changes: 24 additions & 0 deletions .github/workflows/release-pypi-upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Python 🐍 distribution 📦 to PyPI
on:
release:
types:
- published

jobs:
publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI

runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.ac.cn/p/basicts # Replace <package-name> with your PyPI project name
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- uses: actions/checkout@v4
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ requires = ["setuptools>=45", "wheel"]

[project]
name = "BasicTS"
version = "1.0.2"
description = "A Fair and Scalable Time Series Analysis Toolkit and benchmark."
readme = "README.md"
requires-python = ">=3.9"
Expand All @@ -24,10 +23,14 @@ dependencies = [
"tensorboard==2.18.0",
"transformers==4.40.1"
]
dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/GestaltCogTeam/BasicTS"
Repository = "https://github.com/GestaltCogTeam/BasicTS"

[tool.setuptools]
package-dir = {"" = "src"}
package-dir = {"" = "src"}

[tool.setuptools.dynamic]
version = {attr = "basicts.__version__"}