-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update project information and workflows (#214)
*Description of changes:* This PR updates project information and workflows to allow for PyPi release. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. --------- Co-authored-by: Abdul Fatir Ansari <ansarnd@amazon.de>
- Loading branch information
1 parent
72ab641
commit ebaa13c
Showing
4 changed files
with
76 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Publish Python Package to PyPi | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
deploy-to-pypi: | ||
runs-on: ubuntu-latest | ||
environment: release | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install setuptools wheel build | ||
- name: Build package | ||
run: | | ||
python -m build | ||
- name: Publish to PyPi | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,44 @@ | ||
[project] | ||
name = "chronos" | ||
name = "chronos-forecasting" | ||
version = "1.3.0" | ||
requires-python = ">=3.8" | ||
authors = [ | ||
{ name="Abdul Fatir Ansari", email="ansarnd@amazon.com" }, | ||
{ name="Lorenzo Stella", email="stellalo@amazon.com" }, | ||
{ name="Caner Turkmen", email="atturkm@amazon.com" }, | ||
] | ||
description = "Chronos: Pretrained models for time series forecasting" | ||
readme = "README.md" | ||
license = { file = "LICENSE" } | ||
requires-python = ">=3.9" | ||
dependencies = [ | ||
"torch>=2.0,<2.6", # package was tested on 2.2 | ||
"transformers>=4.30,<4.48", | ||
"accelerate>=0.32,<1", | ||
] | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
] | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["src/chronos"] | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest~=8.0", "numpy~=1.21"] | ||
typecheck = ["mypy~=1.9"] | ||
training = ["gluonts[pro]~=0.15", "numpy~=1.21", "datasets~=2.18", "typer", "typer-config", "joblib", "scikit-learn", "tensorboard"] | ||
evaluation = ["gluonts[pro]~=0.15", "numpy~=1.21", "datasets~=2.18", "typer"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/amazon-science/chronos-forecasting" | ||
Issues = "https://github.com/amazon-science/chronos-forecasting/issues" | ||
Paper = "https://arxiv.org/abs/2403.07815" | ||
|
||
[tool.mypy] | ||
ignore_missing_imports = true |