-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploy cladetime to test-pypi #81
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# .github/workflows/publish-pypi-test.yaml | ||
# uses trusted publishing to publish the package to TestPyPI as described here: | ||
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ | ||
name: Publish to Test PyPI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build distribution 📦 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Set up Python 🐍 | ||
uses: actions/setup-python@v5 | ||
|
||
- name: Install uv 🌟 | ||
uses: astral-sh/setup-uv@v5 | ||
with: | ||
version: ">=0.0.1" | ||
|
||
- name: Build package for distribution 🛠️ | ||
run: | | ||
uv build | ||
|
||
- name: Upload distribution packages 📤 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cladetime-package-distribution | ||
path: dist/ | ||
|
||
publish-to-testpypi: | ||
name: Publish Python distribution to TestPyPI | ||
needs: | ||
- build | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi-test | ||
url: https://test.pypi.org/p/cladetime | ||
permissions: | ||
id-token: write # needed for trusted publishing (i.e., OIDC) | ||
|
||
steps: | ||
- name: Download distribution artifacts 📥 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: cladetime-package-distributions | ||
path: dist/ | ||
- name: Publish distribution to TestPyPI 🚀 | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ |
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,21 +1,31 @@ | ||
[project] | ||
name = "cladetime" | ||
version = "0.2.0" | ||
description = "Assign clades to viral genome sequences at a point in time." | ||
version = "0.2.3" | ||
description = "Assign clades to SARS-CoV-2 genome sequences at a point in time." | ||
authors = [ | ||
{name = "Reich Lab @ University of Massachusetts", email = "[email protected]"}, | ||
] | ||
maintainers = [ | ||
{name = "Becky Sweger", email = "[email protected]"}, | ||
{name = "Evan Ray", email="[email protected]"}, | ||
{name = "Ben Rogers", email = "[email protected]"}, | ||
{name = "Becky Sweger", email = "[email protected]"}, | ||
] | ||
|
||
requires-python = ">=3.11" | ||
readme = "README.md" | ||
license = {text = "MIT License"} | ||
keywords = ["biostatistics", "clade", "covid", "epidemiology", "genome", "sequence"] | ||
|
||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Bio-Informatics", | ||
] | ||
|
||
requires-python = ">=3.11" | ||
readme = "README.md" | ||
|
||
dependencies = [ | ||
"awscli>=1.32.92", | ||
"biopython", | ||
|
@@ -59,7 +69,7 @@ docs = [ | |
"sphinx-github-style", | ||
"sphinxext-opengraph", | ||
"sphinx_toolbox", | ||
] | ||
] | ||
|
||
[project.urls] | ||
Repository = "https://github.com/reichlab/cladetime.git" | ||
|
@@ -70,6 +80,10 @@ Issues = "https://github.com/reichlab/cladetime/issues" | |
requires = ["setuptools>=64", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools.packages.find] | ||
namespaces = true | ||
where = ["src"] | ||
|
||
[tool.pytest.ini_options] | ||
tmp_path_retention_policy = "none" | ||
filterwarnings = [ | ||
|
@@ -89,9 +103,5 @@ lint.extend-select = ["I"] | |
# Ignore import formatting rules in `__init__.py` | ||
"__init__.py" = ["I001"] | ||
|
||
[tools.setuptools] | ||
packages = ["cladetime"] | ||
|
||
[tool.mypy] | ||
ignore_missing_imports = true | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pypi-test
is an environment I created in the cladetime repo: https://github.com/reichlab/cladetime/settings/environments