bioversions 0.5.560__tar.gz → 0.5.561.dev0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. bioversions-0.5.561.dev0/.cruft.json +26 -0
  2. bioversions-0.5.561.dev0/.github/CODE_OF_CONDUCT.md +132 -0
  3. bioversions-0.5.561.dev0/.github/CONTRIBUTING.md +116 -0
  4. bioversions-0.5.561.dev0/.github/codecov.yml +4 -0
  5. bioversions-0.5.561.dev0/.github/workflows/cruft.yml +80 -0
  6. bioversions-0.5.561.dev0/.github/workflows/tests.yml +91 -0
  7. bioversions-0.5.561.dev0/.github/workflows/update.yml +44 -0
  8. bioversions-0.5.561.dev0/.gitignore +901 -0
  9. bioversions-0.5.561.dev0/.idea/bioversions.iml +13 -0
  10. bioversions-0.5.561.dev0/.idea/inspectionProfiles/Project_Default.xml +14 -0
  11. bioversions-0.5.561.dev0/.idea/inspectionProfiles/profiles_settings.xml +6 -0
  12. bioversions-0.5.561.dev0/.idea/modules.xml +8 -0
  13. bioversions-0.5.561.dev0/.readthedocs.yml +20 -0
  14. {bioversions-0.5.560/src/bioversions.egg-info → bioversions-0.5.561.dev0}/PKG-INFO +40 -40
  15. bioversions-0.5.561.dev0/docs/_config.yml +11 -0
  16. bioversions-0.5.561.dev0/docs/_data/versions.yml +10694 -0
  17. bioversions-0.5.561.dev0/docs/_includes/footer.html +11 -0
  18. bioversions-0.5.561.dev0/docs/_includes/head.html +47 -0
  19. bioversions-0.5.561.dev0/docs/download.md +24 -0
  20. bioversions-0.5.561.dev0/docs/failures.md +6 -0
  21. bioversions-0.5.561.dev0/docs/img/has_release_url.svg +592 -0
  22. bioversions-0.5.561.dev0/docs/img/version_date_types.svg +575 -0
  23. bioversions-0.5.561.dev0/docs/img/version_types.svg +1144 -0
  24. bioversions-0.5.561.dev0/docs/index.md +102 -0
  25. bioversions-0.5.561.dev0/docs/source/cli.rst +8 -0
  26. bioversions-0.5.561.dev0/docs/source/conf.py +260 -0
  27. bioversions-0.5.561.dev0/docs/source/index.rst +18 -0
  28. bioversions-0.5.561.dev0/docs/source/installation.rst +22 -0
  29. bioversions-0.5.561.dev0/docs/source/logo.png +0 -0
  30. bioversions-0.5.561.dev0/docs/source/usage.rst +4 -0
  31. bioversions-0.5.561.dev0/docs/summary.md +28 -0
  32. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/pyproject.toml +7 -6
  33. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/resources/update.py +15 -6
  34. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/__init__.py +18 -7
  35. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/expasy.py +1 -1
  36. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/utils.py +0 -3
  37. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/version.py +1 -1
  38. bioversions-0.5.561.dev0/tox.ini +316 -0
  39. bioversions-0.5.560/PKG-INFO +0 -382
  40. bioversions-0.5.560/setup.cfg +0 -4
  41. bioversions-0.5.560/src/bioversions.egg-info/SOURCES.txt +0 -86
  42. bioversions-0.5.560/src/bioversions.egg-info/dependency_links.txt +0 -1
  43. bioversions-0.5.560/src/bioversions.egg-info/entry_points.txt +0 -2
  44. bioversions-0.5.560/src/bioversions.egg-info/requires.txt +0 -40
  45. bioversions-0.5.560/src/bioversions.egg-info/top_level.txt +0 -1
  46. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/LICENSE +0 -0
  47. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/MANIFEST.in +0 -0
  48. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/README.md +0 -0
  49. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/__init__.py +1 -1
  50. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/__main__.py +0 -0
  51. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/charts.py +0 -0
  52. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/cli.py +0 -0
  53. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/py.typed +0 -0
  54. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/resources/__init__.py +2 -2
  55. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/resources/versions.json +0 -0
  56. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/slack_client.py +0 -0
  57. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/antibodyregistry.py +0 -0
  58. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/bigg.py +0 -0
  59. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/biogrid.py +0 -0
  60. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/cellosaurus.py +0 -0
  61. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/chebi.py +0 -0
  62. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/chembl.py +0 -0
  63. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/chemidplus.py +0 -0
  64. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/civic.py +0 -0
  65. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/complexportal.py +0 -0
  66. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/daily.py +0 -0
  67. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/depmap.py +0 -0
  68. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/dgi.py +0 -0
  69. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/disgenet.py +0 -0
  70. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/drugbank.py +0 -0
  71. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/drugcentral.py +0 -0
  72. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/ensembl.py +0 -0
  73. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/flybase.py +0 -0
  74. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/gtdb.py +0 -0
  75. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/guidetopharmacology.py +0 -0
  76. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/hgnc.py +0 -0
  77. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/homologene.py +0 -0
  78. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/icd10.py +0 -0
  79. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/icd11.py +0 -0
  80. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/icf.py +0 -0
  81. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/intact.py +0 -0
  82. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/interpro.py +0 -0
  83. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/itis.py +0 -0
  84. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/kegg.py +0 -0
  85. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/mesh.py +0 -0
  86. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/mgi.py +0 -0
  87. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/mirbase.py +0 -0
  88. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/moalmanac.py +0 -0
  89. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/msigdb.py +0 -0
  90. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/ncit.py +0 -0
  91. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/npass.py +0 -0
  92. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/obo.py +2 -2
  93. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/ols.py +0 -0
  94. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/omim.py +0 -0
  95. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/oncotree.py +0 -0
  96. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/pathbank.py +0 -0
  97. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/pathwaycommons.py +0 -0
  98. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/pfam.py +0 -0
  99. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/pombase.py +0 -0
  100. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/pr.py +0 -0
  101. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/pubchem.py +0 -0
  102. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/reactome.py +0 -0
  103. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/rfam.py +0 -0
  104. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/rgd.py +0 -0
  105. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/rhea.py +0 -0
  106. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/rxnorm.py +0 -0
  107. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/sgd.py +0 -0
  108. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/slm.py +0 -0
  109. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/stringdb.py +0 -0
  110. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/umls.py +0 -0
  111. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/uniprot.py +0 -0
  112. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/unversioned.py +0 -0
  113. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/wikipathways.py +0 -0
  114. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/sources/zfin.py +0 -0
  115. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/templates/base.html +0 -0
  116. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/templates/home.html +0 -0
  117. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/twitter_client.py +0 -0
  118. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/src/bioversions/wsgi.py +0 -0
  119. {bioversions-0.5.560 → bioversions-0.5.561.dev0}/tests/test_bioversions.py +0 -0
@@ -0,0 +1,26 @@
1
+ {
2
+ "template": "https://github.com/cthoyt/cookiecutter-snekpack",
3
+ "commit": "1884310d930f56787c96d4eba45bcb4a5225f7cb",
4
+ "checkout": null,
5
+ "context": {
6
+ "cookiecutter": {
7
+ "package_name": "bioversions",
8
+ "package_name_stylized": "Bioversions",
9
+ "short_description": "Get the current version for biological databases",
10
+ "author_name": "Charles Tapley Hoyt",
11
+ "author_email": "cthoyt@gmail.com",
12
+ "github_organization_name": "biopragmatics",
13
+ "github_repository_name": "bioversions",
14
+ "command_line_interface": true,
15
+ "gitlab": false,
16
+ "runner": "tox",
17
+ "__runner": "tox -e",
18
+ "__runner_uv": "--with tox-uv tox -e",
19
+ "__runner_pip": "tox tox-uv",
20
+ "__runner_tests": "py",
21
+ "__gh_slug": "biopragmatics/bioversions",
22
+ "_template": "https://github.com/cthoyt/cookiecutter-snekpack"
23
+ }
24
+ },
25
+ "directory": null
26
+ }
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ cthoyt@gmail.com.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,116 @@
1
+ # Contributing
2
+
3
+ Contributions to this repository are welcomed and encouraged.
4
+
5
+ ## Code Contribution
6
+
7
+ This project uses the [GitHub Flow](https://guides.github.com/introduction/flow)
8
+ model for code contributions. Follow these steps:
9
+
10
+ 1. [Create a fork](https://help.github.com/articles/fork-a-repo) of the upstream
11
+ repository
12
+ at [`biopragmatics/bioversions`](https://github.com/biopragmatics/bioversions)
13
+ on your GitHub account (or in one of your organizations)
14
+ 2. [Clone your fork](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository)
15
+ with `git clone https://github.com/<your namespace here>/bioversions.git`
16
+ 3. Make and commit changes to your fork with `git commit`
17
+ 4. Push changes to your fork with `git push`
18
+ 5. Repeat steps 3 and 4 as needed
19
+ 6. Submit a pull request back to the upstream repository
20
+
21
+ ### Merge Model
22
+
23
+ This repository
24
+ uses [squash merges](https://docs.github.com/en/github/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/about-pull-request-merges#squash-and-merge-your-pull-request-commits)
25
+ to group all related commits in a given pull request into a single commit upon
26
+ acceptance and merge into the main branch. This has several benefits:
27
+
28
+ 1. Keeps the commit history on the main branch focused on high-level narrative
29
+ 2. Enables people to make lots of small commits without worrying about muddying
30
+ up the commit history
31
+ 3. Commits correspond 1-to-1 with pull requests
32
+
33
+ ### Code Style
34
+
35
+ This project uses `tox` for running code quality checks. Start by installing
36
+ it with `pip install tox tox-uv`.
37
+
38
+ This project encourages the use of optional static typing. It
39
+ uses [`mypy`](http://mypy-lang.org/) as a type checker. You can check if
40
+ your code passes `mypy` with `tox -e mypy`.
41
+
42
+ This project uses [`ruff`](https://docs.astral.sh/ruff/) to automatically
43
+ enforce a consistent code style. You can apply `ruff format` and other pre-configured
44
+ formatters with `tox -e format`.
45
+
46
+ This project uses [`ruff`](https://docs.astral.sh/ruff/) and several plugins for
47
+ additional checks of documentation style, security issues, good variable
48
+ nomenclature, and more (see `pyproject.toml` for a list of Ruff plugins). You can check if your
49
+ code passes `ruff check` with `tox -e lint`.
50
+
51
+ Each of these checks are run on each commit using GitHub Actions as a continuous
52
+ integration service. Passing all of them is required for accepting a
53
+ contribution. If you're unsure how to address the feedback from one of these
54
+ tools, please say so either in the description of your pull request or in a
55
+ comment, and we will help you.
56
+
57
+ ### Logging
58
+
59
+ Python's builtin `print()` should not be used (except when writing to files),
60
+ it's checked by the
61
+ [`flake8-print` (T20)](https://docs.astral.sh/ruff/rules/#flake8-print-t20) plugin to `ruff`. If
62
+ you're in a command line setting or `main()` function for a module, you can use
63
+ `click.echo()`. Otherwise, you can use the builtin `logging` module by adding
64
+ `logger = logging.getLogger(__name__)` below the imports at the top of your
65
+ file.
66
+
67
+ ### Documentation
68
+
69
+ All public functions (i.e., not starting with an underscore `_`) must be
70
+ documented using
71
+ the [sphinx documentation format](https://sphinx-rtd-tutorial.readthedocs.io/en/latest/docstrings.html#the-sphinx-docstring-format).
72
+ The [`darglint2`](https://github.com/akaihola/darglint2) tool
73
+ reports on functions that are not fully documented.
74
+
75
+ This project uses [`sphinx`](https://www.sphinx-doc.org) to automatically build
76
+ documentation into a narrative structure. You can check that the documentation
77
+ builds properly in an isolated environment with `tox -e docs-test` and actually
78
+ build it locally with `tox -e docs`.
79
+
80
+ ### Testing
81
+
82
+ Functions in this repository should be unit tested. These can either be written
83
+ using the `unittest` framework in the `tests/` directory or as embedded
84
+ doctests. You can check that the unit tests pass with `tox -e py`
85
+ and that the doctests pass with `tox -e doctests`. These tests are required to pass for
86
+ accepting a contribution.
87
+
88
+ ### Syncing your fork
89
+
90
+ If other code is updated before your contribution gets merged, you might need to
91
+ resolve conflicts against the main branch. After cloning, you should add the
92
+ upstream repository with
93
+
94
+ ```shell
95
+ $ git remote add biopragmatics https://github.com/biopragmatics/bioversions.git
96
+ ```
97
+
98
+ Then, you can merge upstream code into your branch. You can also use the GitHub
99
+ UI to do this by
100
+ following [this tutorial](https://docs.github.com/en/github/collaborating-with-pull-requests/working-with-forks/syncing-a-fork).
101
+
102
+ ### Python Version Compatibility
103
+
104
+ This project aims to support all versions of Python that have not passed their
105
+ end-of-life dates. After end-of-life, the version will be removed from the Trove
106
+ qualifiers in the `pyproject.toml` and from the GitHub Actions testing
107
+ configuration.
108
+
109
+ See https://endoflife.date/python for a timeline of Python release and
110
+ end-of-life dates.
111
+
112
+ ## Acknowledgements
113
+
114
+ These code contribution guidelines are derived from
115
+ the [cthoyt/cookiecutter-snekpack](https://github.com/cthoyt/cookiecutter-snekpack)
116
+ Python package template. They're free to reuse and modify as long as they're properly acknowledged.
@@ -0,0 +1,4 @@
1
+ # see https://docs.codecov.com/v4.6/docs/codecov-yaml
2
+ ignore:
3
+ - "src/bioversions/__main__.py"
4
+ - "src/bioversions/cli.py"
@@ -0,0 +1,80 @@
1
+ # from https://cruft.github.io/cruft/#automating-updates-with-github-actions
2
+
3
+ name: Update repository with Cruft
4
+
5
+ permissions: {}
6
+
7
+ on:
8
+ workflow_dispatch:
9
+ schedule:
10
+ - cron: "0 2 * * 1" # Every Monday at 2am
11
+
12
+ jobs:
13
+ update:
14
+ permissions:
15
+ contents: write
16
+ pull-requests: write
17
+ runs-on: ubuntu-latest
18
+ strategy:
19
+ fail-fast: true
20
+ matrix:
21
+ include:
22
+ - add-paths: .
23
+ body: Use this to merge the changes to this repository.
24
+ branch: cruft/update
25
+ commit-message: "chore: accept new Cruft update"
26
+ title: New updates detected with Cruft
27
+ - add-paths: .cruft.json
28
+ body: Use this to reject the changes in this repository.
29
+ branch: cruft/reject
30
+ commit-message: "chore: reject new Cruft update"
31
+ title: Reject new updates detected with Cruft
32
+ steps:
33
+ - uses: actions/checkout@v3
34
+
35
+ - uses: actions/setup-python@v4
36
+ with:
37
+ python-version: "3.10"
38
+
39
+ - name: Install Cruft
40
+ run: pip3 install cruft
41
+
42
+ - name: Check if update is available
43
+ continue-on-error: false
44
+ id: check
45
+ run: |
46
+ CHANGES=0
47
+ if [ -f .cruft.json ]; then
48
+ if ! cruft check; then
49
+ CHANGES=1
50
+ fi
51
+ else
52
+ echo "No .cruft.json file"
53
+ fi
54
+
55
+ echo "has_changes=$CHANGES" >> "$GITHUB_OUTPUT"
56
+
57
+ - name: Run update if available
58
+ if: steps.check.outputs.has_changes == '1'
59
+ run: |
60
+ git config --global user.email "you@example.com"
61
+ git config --global user.name "GitHub"
62
+
63
+ cruft update --skip-apply-ask --refresh-private-variables
64
+ git restore --staged .
65
+
66
+ - name: Create pull request
67
+ if: steps.check.outputs.has_changes == '1'
68
+ uses: peter-evans/create-pull-request@v4
69
+ with:
70
+ token: ${{ secrets.GITHUB_TOKEN }}
71
+ add-paths: ${{ matrix.add-paths }}
72
+ commit-message: ${{ matrix.commit-message }}
73
+ branch: ${{ matrix.branch }}
74
+ delete-branch: true
75
+ branch-suffix: timestamp
76
+ title: ${{ matrix.title }}
77
+ body: |
78
+ This is an autogenerated PR. ${{ matrix.body }}
79
+
80
+ [Cruft](https://cruft.github.io/cruft/) has detected updates from the Cookiecutter repository.
@@ -0,0 +1,91 @@
1
+ # This file configures the continuous integration (CI) system on GitHub.
2
+ # Introductory materials can be found here: https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions.
3
+ # Documentation for editing this file can be found here: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
4
+
5
+ name: Tests
6
+
7
+ # by default, give the GITHUB_TOKEN no permissions
8
+ # See https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
9
+ permissions: {}
10
+
11
+ on:
12
+ push:
13
+ branches: [ main ]
14
+ pull_request:
15
+ branches: [ main ]
16
+
17
+ jobs:
18
+ lint:
19
+ name: Code Quality
20
+ permissions:
21
+ # give only read-only access to the contents of the repository
22
+ # this is the only permission this job requires, so keep it to the least privilege
23
+ # i.e., not to issues, discussions, actions, etc.
24
+ contents: read
25
+ runs-on: ubuntu-latest
26
+ strategy:
27
+ matrix:
28
+ python-version: [ "3.12", "3.10" ]
29
+ tox-command: ["manifest", "lint", "pyroma", "mypy"]
30
+ steps:
31
+ - uses: actions/checkout@v4
32
+ - name: "Install uv"
33
+ uses: "astral-sh/setup-uv@v3"
34
+ with:
35
+ enable-cache: true
36
+ cache-dependency-glob: "pyproject.toml"
37
+ - name: "Run command"
38
+ run: |
39
+ uvx -p ${{ matrix.python-version }} --with tox-uv tox -e ${{ matrix.tox-command }}
40
+
41
+ docs:
42
+ name: Documentation
43
+ permissions:
44
+ contents: read
45
+ runs-on: ubuntu-latest
46
+ strategy:
47
+ matrix:
48
+ # We only test documentation on the latest version
49
+ # sphinx 8.0 / sphinx-rtd-theme 3.0 discontinued Python 3.9 support
50
+ # a year early, which prompted re-thinking about this.
51
+ python-version: [ "3.12" ]
52
+ steps:
53
+ - uses: actions/checkout@v4
54
+ - name: "Install uv"
55
+ uses: "astral-sh/setup-uv@v3"
56
+ with:
57
+ enable-cache: true
58
+ cache-dependency-glob: "pyproject.toml"
59
+ - name: Install dependencies
60
+ run: |
61
+ sudo apt-get install graphviz
62
+ - name: Check RST conformity with doc8
63
+ run: uvx -p ${{ matrix.python-version }} --with tox-uv tox -e doc8
64
+ - name: Check docstring coverage
65
+ run: uvx -p ${{ matrix.python-version }} --with tox-uv tox -e docstr-coverage
66
+ - name: Check documentation build with Sphinx
67
+ run: uvx -p ${{ matrix.python-version }} --with tox-uv tox -e docs-test
68
+ tests:
69
+ name: Tests
70
+ permissions:
71
+ contents: read
72
+ runs-on: ${{ matrix.os }}
73
+ strategy:
74
+ matrix:
75
+ os: [ ubuntu-latest ]
76
+ python-version: [ "3.12", "3.10" ]
77
+ steps:
78
+ - uses: actions/checkout@v4
79
+ - name: "Install uv"
80
+ uses: "astral-sh/setup-uv@v3"
81
+ with:
82
+ enable-cache: true
83
+ cache-dependency-glob: "pyproject.toml"
84
+ - name: Test with pytest and generate coverage file
85
+ run:
86
+ uvx -p ${{ matrix.python-version }} --with tox-uv tox -e py
87
+ - name: Upload coverage report to codecov
88
+ uses: codecov/codecov-action@v4
89
+ if: success()
90
+ with:
91
+ file: coverage.xml
@@ -0,0 +1,44 @@
1
+ name: Update Database
2
+ on:
3
+ workflow_dispatch:
4
+ schedule:
5
+ - cron: "0 0 * * *"
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@master
11
+ with:
12
+ persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
13
+ fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
14
+ - uses: actions/setup-python@v2
15
+ with:
16
+ python-version: "3.12"
17
+ - name: Install dependencies
18
+ run: |
19
+ pip install tox tox-uv
20
+ - name: Create local changes
21
+ run: |
22
+ tox -e update
23
+ - name: Commit files
24
+ run: |
25
+ git config --local user.email "action@github.com"
26
+ git config --local user.name "GitHub Action"
27
+ git commit -m "🪝 Automatically update" -a
28
+ - name: bump2version release
29
+ run: |
30
+ tox -e bumpversion-release
31
+ - name: Release to PyPI
32
+ run: |
33
+ tox -e release-headless
34
+ env:
35
+ UV_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }}
36
+ UV_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
37
+ - name: bump2version patch
38
+ run: |
39
+ tox -e bumpversion -- patch
40
+ - name: Push changes
41
+ uses: ad-m/github-push-action@master
42
+ with:
43
+ github_token: ${{ secrets.GITHUB_TOKEN }}
44
+ branch: ${{ github.ref }}