diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml new file mode 100644 index 0000000..324137e --- /dev/null +++ b/.github/workflows/build-release.yml @@ -0,0 +1,34 @@ +name: Test-build Python Package + +on: push + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + pip install --upgrade pip + pip install build==0.7.0 pep517 setuptools wheel twine + + - name: Build PyPI release + run: python -m build + + - name: Check PyPI release + run: python -m twine check dist/* + + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + name: Python-package + path: dist + diff --git a/pyproject.toml b/pyproject.toml index ad1edea..0587552 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools", "wheel"] +requires = ["setuptools>=42.0", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -9,9 +9,39 @@ description = "Survival analysis made easy with pytorch" authors = [ {name = "Thibaud Coroller", email = "thibaud.coroller@novartis.com"}, {name = "Melodie Monod", email = "melodie.monod@novartis.com"}, - {name = "Peter Krusche", email = "peter.krusche@novartis.com"} + {name = "Peter Krusche", email = "peter.krusche@novartis.com"}, + {name = "Qian Cao", email = "qian.cao@fda.hhs.com"} ] + license = {file = "LICENSE.txt"} +readme = "README.md" + +keywords = ["example", "project", "tutorial"] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", +] + +dependencies = [ + "torch", + "lightning", + "scipy", + "numpy", + "torchmetrics", +] + +[project.urls] +Homepage = "https://github.com/Novartis/torchsurv" +Repository = "https://github.com/Novartis/torchsurv" +Documentation = "https://opensource.nibr.com/torchsurv/" +IssueTracker = "https://github.com/Novartis/torchsurv/issues" +Changelog = "https://opensource.nibr.com/torchsurv/CHANGELOG.html" [tool.pylint] max-line-length = 250