Skip to content

Commit 60e6389

Browse files
author
Deploy from CI
committed
Deploy 832dcde to gh-pages
0 parents  commit 60e6389

File tree

104 files changed

+30699
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+30699
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Feature request
2+
description: Request a new feature
3+
labels: "enhancement"
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for taking the time to let us know what gget is missing!
9+
- type: dropdown
10+
id: request-type
11+
attributes:
12+
label: Request type
13+
description: Are you requesting the extension of an existing module or a new module?
14+
options:
15+
- Extension of existing module
16+
- New module
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: description
21+
attributes:
22+
label: Request description
23+
description: Please describe your request.
24+
placeholder: Include links to references/databases if applicable.
25+
validations:
26+
required: true
27+
- type: textarea
28+
id: command
29+
attributes:
30+
label: Example command
31+
description: Please provide an example command as you envision it.
32+
render: shell
33+
- type: textarea
34+
id: command-output
35+
attributes:
36+
label: Example return value
37+
description: Please describe what the above-mentioned command should return.
38+
placeholder: What is the most important information? Which format would be most useful?
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Issue / Bug Report
2+
description: Create a report to help us improve
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Thank you for taking the time to fill out this report and help us improve! :)
8+
- type: textarea
9+
id: what-happened
10+
attributes:
11+
label: What happened?
12+
description: Please provide a clear and concise description of what the issue is.
13+
validations:
14+
required: true
15+
- type: textarea
16+
id: version
17+
attributes:
18+
label: gget version
19+
description: Which version of gget are you using?
20+
placeholder: 0.27.2
21+
validations:
22+
required: true
23+
- type: dropdown
24+
id: os
25+
attributes:
26+
label: Operating System (OS)
27+
description: Which Operating System (OS) did you use?
28+
multiple: true
29+
options:
30+
- Linux
31+
- macOS
32+
- Windows
33+
- Other (please specify above)
34+
- Not applicable
35+
validations:
36+
required: true
37+
- type: dropdown
38+
id: interface
39+
attributes:
40+
label: User interface
41+
description: Did the problem occur when calling gget from the command-line or Python? (Select all that apply.)
42+
multiple: true
43+
options:
44+
- Command-line
45+
- Python
46+
- Google Colab (please include a shareable link above)
47+
- R (please specify Python wrapper above)
48+
- Not applicable
49+
validations:
50+
required: true
51+
- type: dropdown
52+
id: m1
53+
attributes:
54+
label: Are you using a computer with an Apple M1 chip?
55+
description: We are asking this because the M1 chip has been causing [problems](https://github.com/pachterlab/gget/issues/30) for some `gget alphafold` dependencies.
56+
options:
57+
- Not M1
58+
- M1
59+
- Not applicable
60+
validations:
61+
required: true
62+
- type: textarea
63+
id: command
64+
attributes:
65+
label: What is the exact command that was run?
66+
description: Please copy-paste the gget command that caused the problem.
67+
render: shell
68+
- type: textarea
69+
id: command-output
70+
attributes:
71+
label: Which output/error did you get?
72+
description: Please copy-paste the complete output/error returned by the command entered above.
73+
render: shell

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
schedule:
5+
- cron: "0 16 * * 1,4"
6+
push:
7+
paths:
8+
- 'gget/**'
9+
- 'tests/**'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-22.04
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
18+
os: ['ubuntu-22.04']
19+
name: Test on Python ${{ matrix.python }}
20+
steps:
21+
- name: Checkout branch
22+
uses: actions/checkout@main
23+
- name: Setup python
24+
uses: actions/setup-python@v1
25+
with:
26+
python-version: ${{ matrix.python }}
27+
architecture: x64
28+
- name: Install dependencies
29+
run: pip install -r requirements.txt && pip install -r dev-requirements.txt
30+
- name: Run tests
31+
run: coverage run -m pytest -ra -v tests && coverage report --omit=main.py,tests*

.github/workflows/deploy.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
paths:
8+
- 'docs/**'
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
- name: Install mdbook
18+
run: |
19+
mkdir mdbook
20+
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.34/mdbook-v0.4.34-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
21+
echo `pwd`/mdbook >> $GITHUB_PATH
22+
- name: Deploy GitHub Pages
23+
run: |
24+
cd docs/
25+
mdbook build
26+
git worktree add gh-pages
27+
git config user.name "Deploy from CI"
28+
git config user.email ""
29+
cd gh-pages
30+
# Delete the ref to avoid keeping history.
31+
git update-ref -d refs/heads/gh-pages
32+
rm -rf *
33+
mv ../book/* .
34+
git add .
35+
git commit -m "Deploy $GITHUB_SHA to gh-pages"
36+
git push --force --set-upstream origin gh-pages

.github/workflows/traffic.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Traffic
2+
on:
3+
schedule:
4+
# Runs every week
5+
- cron: "0 0 */7 * *"
6+
7+
jobs:
8+
# This workflow stores repository traffic and clones past the default 2 week period
9+
traffic:
10+
# The type of runner that the job will run on
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
15+
- uses: actions/checkout@v2
16+
with:
17+
ref: "traffic"
18+
19+
# Calculates traffic and clones and stores them in a CSV file
20+
# This workflow is based on https://github.com/marketplace/actions/repository-traffic
21+
- name: GitHub traffic
22+
uses: sangonzal/[email protected]
23+
env:
24+
TRAFFIC_ACTION_TOKEN: ${{ secrets.TRAFFIC_ACTION_TOKEN }}
25+
26+
# Commits files to traffic branch
27+
- name: Commit changes
28+
uses: EndBug/add-and-commit@v4
29+
with:
30+
author_name: Laura Luebbert
31+
message: "GitHub traffic"
32+
add: "./traffic/*"
33+
ref: "traffic"

.gitignore

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# Mac OS file that stores custom attributes of its containing folder
7+
.DS_Store
8+
9+
# C extensions
10+
*.so
11+
12+
# Distribution / packaging
13+
.Python
14+
build/
15+
develop-eggs/
16+
dist/
17+
downloads/
18+
eggs/
19+
.eggs/
20+
lib/
21+
lib64/
22+
parts/
23+
sdist/
24+
var/
25+
wheels/
26+
pip-wheel-metadata/
27+
share/python-wheels/
28+
*.egg-info/
29+
.installed.cfg
30+
*.egg
31+
MANIFEST
32+
/gget/elm_files/
33+
34+
# PyInstaller
35+
# Usually these files are written by a python script from a template
36+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
37+
*.manifest
38+
*.spec
39+
40+
# Installer logs
41+
pip-log.txt
42+
pip-delete-this-directory.txt
43+
44+
# Unit test / coverage reports
45+
htmlcov/
46+
.tox/
47+
.nox/
48+
.coverage
49+
.coverage.*
50+
.cache
51+
nosetests.xml
52+
coverage.xml
53+
*.cover
54+
*.py,cover
55+
.hypothesis/
56+
.pytest_cache/
57+
58+
# Translations
59+
*.mo
60+
*.pot
61+
62+
# Django stuff:
63+
*.log
64+
local_settings.py
65+
db.sqlite3
66+
db.sqlite3-journal
67+
68+
# Flask stuff:
69+
instance/
70+
.webassets-cache
71+
72+
# Scrapy stuff:
73+
.scrapy
74+
75+
# Sphinx documentation
76+
docs/_build/
77+
78+
# PyBuilder
79+
target/
80+
81+
# Jupyter Notebook
82+
.ipynb_checkpoints
83+
84+
# IPython
85+
profile_default/
86+
ipython_config.py
87+
88+
# pyenv
89+
.python-version
90+
91+
# pipenv
92+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
94+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
95+
# install all needed dependencies.
96+
#Pipfile.lock
97+
98+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
99+
__pypackages__/
100+
101+
# Celery stuff
102+
celerybeat-schedule
103+
celerybeat.pid
104+
105+
# SageMath parsed files
106+
*.sage.py
107+
108+
# Environments
109+
.env
110+
.venv
111+
env/
112+
venv/
113+
ENV/
114+
env.bak/
115+
venv.bak/
116+
117+
# Spyder project settings
118+
.spyderproject
119+
.spyproject
120+
121+
# Rope project settings
122+
.ropeproject
123+
124+
# mkdocs documentation
125+
/site
126+
127+
# mypy
128+
.mypy_cache/
129+
.dmypy.json
130+
dmypy.json
131+
132+
# Pyre type checker
133+
.pyre/
134+
135+
# PyCharm
136+
/.idea/
137+
138+
# mdbook documentation
139+
/docs/book/
140+
141+
# Scratch directory
142+
/scratch/

0 commit comments

Comments
 (0)