-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
163 additions
and
2,434 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY | ||
_commit: dfb0404 | ||
_src_path: https://github.com/qiime2/q2-setup-template.git | ||
module_name: composition | ||
plugin_name: q2_composition | ||
plugin_scripts: q2_composition/assets/run_ancombc.R | ||
project_author_email: jamietmorton@gmail.com | ||
project_author_name: Jamie Morton | ||
project_description: Compositional statistics plugin for QIIME2. | ||
project_name: q2-composition | ||
project_urls_homepage: https://qiime2.org | ||
project_urls_repository: https://github.com/qiime2/q2-composition |
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 +1 @@ | ||
q2_composition/_version.py export-subst | ||
pyproject.toml export-subst |
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,58 @@ | ||
name: Update Copyright Headers | ||
|
||
on: | ||
# Runs at 00:00 UTC on Jan 4th or via manual trigger | ||
schedule: | ||
- cron: '0 0 4 1 *' | ||
workflow_dispatch: | ||
inputs: | ||
newYear: | ||
description: "Desired year to update to (e.g., 2025). If not provided, will auto-detect." | ||
required: false | ||
|
||
jobs: | ||
update-headers: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Determine years for update | ||
id: determine-years | ||
run: | | ||
INPUT_YEAR="${{ github.event.inputs.newYear }}" | ||
if [ -z "$INPUT_YEAR" ]; then | ||
CURRENT_YEAR="$(date +'%Y')" | ||
echo "No 'newYear' input. Using current year: ${CURRENT_YEAR}" | ||
else | ||
CURRENT_YEAR="$INPUT_YEAR" | ||
echo "Received user input. Updating to: ${CURRENT_YEAR}" | ||
fi | ||
echo "CURRENT_YEAR=$CURRENT_YEAR" >> $GITHUB_ENV | ||
- name: Bump ending year in QIIME 2 headers | ||
run: | | ||
source $GITHUB_ENV | ||
echo "Will update any QIIME 2 header years in [2015..$((CURRENT_YEAR-1))] to $CURRENT_YEAR" | ||
for OLD_YEAR in $(seq 2015 $((CURRENT_YEAR - 1))); do | ||
find . -type f -exec \ | ||
sed -i -E "s/(Copyright \(c\) [0-9]{4})-${OLD_YEAR}, QIIME 2/\1-${CURRENT_YEAR}, QIIME 2/g" {} + | ||
done | ||
- name: Commit and push changes | ||
run: | | ||
git config --global user.name "q2d2" | ||
git config --global user.email "q2d2.noreply@gmail.com" | ||
if [ -n "$(git status --porcelain)" ]; then | ||
git add . | ||
git commit -m "Auto-update copyright year to $CURRENT_YEAR" | ||
git push | ||
else | ||
echo "No changes to commit." | ||
exit 0 | ||
fi |
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 |
---|---|---|
|
@@ -74,4 +74,5 @@ output.summary.txt | |
|
||
.DS_Store | ||
|
||
pyproject.toml | ||
# Version file from versioningit | ||
_version.py |
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 was deleted.
Oops, something went wrong.
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
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,53 @@ | ||
[project] | ||
name = "q2-composition" | ||
authors = [ | ||
{ name = "Jamie Morton", email = "jamietmorton@gmail.com" } | ||
] | ||
description = "Compositional statistics plugin for QIIME2." | ||
readme = {file = "README.md", content-type = "text/markdown"} | ||
license = {file = "LICENSE"} | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
Homepage = "https://qiime2.org" | ||
Repository = "https://github.com/qiime2/q2-composition" | ||
|
||
[project.entry-points.'qiime2.plugins'] | ||
"q2-composition" = "q2_composition.plugin_setup:plugin" | ||
|
||
[build-system] | ||
requires = [ | ||
"setuptools", | ||
"versioningit", | ||
"wheel" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.versioningit.vcs] | ||
method = "git-archive" | ||
describe-subst = "$Format:%(describe)$" | ||
default-tag = "0.0.1" | ||
|
||
[tool.versioningit.next-version] | ||
method = "minor" | ||
|
||
[tool.versioningit.format] | ||
distance = "{base_version}+{distance}.{vcs}{rev}" | ||
dirty = "{base_version}+{distance}.{vcs}{rev}.dirty" | ||
distance-dirty = "{base_version}+{distance}.{vcs}{rev}.dirty" | ||
|
||
[tool.versioningit.write] | ||
file = "q2-composition/_version.py" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
script-files = [ | ||
"q2_composition/assets/run_ancombc.R" | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["."] | ||
include = ["q2_composition*"] | ||
|
||
[tool.setuptools.package-data] | ||
q2_composition = ["**/*"] |
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
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
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
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
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
Oops, something went wrong.