Skip to content

Commit

Permalink
auto-release
Browse files Browse the repository at this point in the history
  • Loading branch information
uadnan committed Oct 7, 2024
1 parent 4563128 commit d4c1690
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 72 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: torchcast

on:
push:
# branches:
# - main
pull_request:

permissions:
contents: read

jobs:
# test:
# name: Run tests
# runs-on: ubuntu-latest
# strategy:
# matrix:
# py-version: [ '3.8', '3.9', '3.10' ]
#
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# cache: 'pip'
# cache-dependency-path: pyproject.toml
# python-version: ${{ matrix.py-version }}
#
# - name: Install torchcast
# run: pip install .[tests]
#
# - name: Run tests
# run: python3 -m unittest

release:
# needs: test
concurrency:
group: release
runs-on: ubuntu-latest
permissions:
contents: read # to clone repo
id-token: write # to access AWS

steps:
- name: Install Dependencies
run: |
pip install --upgrade python-semantic-release
- name: Release
run: |
git clone https://${{ secrets.STRONGIO_MACHINE_PAT }}:@github.com/strongio/torchcast
cd torchcast
semantic-release version --push --changelog --vcs-release --commit
env:
GH_TOKEN: ${{ secrets.STRONGIO_MACHINE_PAT }}
29 changes: 0 additions & 29 deletions .github/workflows/test.yml

This file was deleted.

77 changes: 77 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[project]
name = "torchcast"
description = "Forecasting in PyTorch"
readme = "README.md"
requires-python = ">= 3.8"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
license = { file = "LICENSE" }
authors = [
{ name = "Jacob Dink", email = "[email protected]" }
]
dependencies = [
"torch>=1.12",
"numpy>=1.4",
"scipy>=1.10",
]
dynamic = ["version"]

[project.urls]
Repository = "https://github.com/strongio/torchcast"
"Bug Tracker" = "https://github.com/strongio/torchcast/issues"
Documentation = "https://torchcast.readthedocs.io/en/latest/"

[project.optional-dependencies]
dev = [
"isort",
"black",
]
tests = [
"parameterized>=0.7",
"filterpy>=1.4",
"pandas>=1.0"
]
docs = [
"jupytext>=1.11",
"plotnine>=0.8",
"nbsphinx>=0.8.2",
"ipykernel>=5.3.4",
"tqdm>=4.59",
"ipywidgets>=7.6.3",
"sphinx_rtd_theme>=0.5.2",
"pandoc>=1.0.2",
"pytorch_lightning>=1.5",
"torch_optimizer>=0.3.0",
"matplotlib"
]

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

[tool.cibuildwheel]
build-frontend = "build"

[tool.black]
line-length = 120
skip-string-normalization = true

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 120

[tool.semantic_release]
version_variables = ["torchcast/__init__.py:__version__"]
commit_author = "Strong Analytics <[email protected]>"
commit_message = "Bump to {version} [skip ci]"

[tool.semantic_release.publish]
upload_to_vcs_release = true
10 changes: 0 additions & 10 deletions setup.cfg

This file was deleted.

33 changes: 0 additions & 33 deletions setup.py

This file was deleted.

0 comments on commit d4c1690

Please sign in to comment.