Skip to content
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

Handle version specifiers #190

Merged
merged 35 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b9b2646
Rearrange Python API (utils)
CasperWA Oct 4, 2023
b625cfb
Update API Reference docs tests
CasperWA Oct 4, 2023
72a4d98
Move update_deps util functions to utils module
CasperWA Oct 4, 2023
e8ac9bf
Create ignore rules based on requirement specifiers
CasperWA Oct 5, 2023
9e698c7
Color and formatting addition to console prints
CasperWA Oct 5, 2023
bbf77c1
Start to fix issues to satisfy unit tests
CasperWA Oct 5, 2023
9019cc8
Re-add parenthesis to avoid nuking whole value
CasperWA Oct 5, 2023
5fcee6a
Update ignore rules creation from specifiers
CasperWA Oct 5, 2023
fa79cd4
Use pip's SpecifierSet to evaluate ignore verions
CasperWA Oct 5, 2023
9c92fe6
Use 'packaging' package explicitly
CasperWA Oct 6, 2023
a1f3f79
Support the python_version dependency marker
CasperWA Oct 9, 2023
695837e
Implement 'SemanticVersion.previous_version()'
CasperWA Oct 9, 2023
dc6fe03
Import annotations from future
CasperWA Oct 9, 2023
96f303b
Import annotations from future
CasperWA Oct 9, 2023
05067a8
Avoid warning if package name equals project name
CasperWA Oct 9, 2023
0e2fdac
Merge remote-tracking branch 'origin/main' into cwa/fix-141-utilize-i…
CasperWA Oct 27, 2023
e9a156d
Merge branch 'main' into cwa/fix-141-utilize-ignore
CasperWA Nov 1, 2023
4fc1652
Add tests for expected errors
CasperWA Nov 1, 2023
01c024c
More tests + Remove unnecessary sanity check
CasperWA Nov 1, 2023
10c65a8
Implement tests for fail_fast as well
CasperWA Nov 2, 2023
2ddeb8f
Avoid using `re.escape` within raw strings.
CasperWA Nov 2, 2023
ca63c8a
Except in one place
CasperWA Nov 2, 2023
21ca6ee
Escape Emoji values
CasperWA Nov 2, 2023
8dd71d6
Test and optimize get_min_max_py_version()
CasperWA Nov 2, 2023
690eb3b
Move no cover statement
CasperWA Nov 3, 2023
5ba668b
Update pytest config
CasperWA Nov 3, 2023
18a917c
Extend tests for update_deps
CasperWA Nov 3, 2023
1b561ef
Validate input Python version
CasperWA Nov 3, 2023
d161a2f
Update dependencies according to Python version
CasperWA Nov 3, 2023
b6578a8
Add typing-extensions as an explicit dependency
CasperWA Nov 3, 2023
4a71dc0
Revert "Add typing-extensions as an explicit dependency"
CasperWA Nov 3, 2023
1207cbe
Revert "Update dependencies according to Python version"
CasperWA Nov 3, 2023
636a836
Revert "Validate input Python version"
CasperWA Nov 3, 2023
93b7e58
Revert "Update pytest config"
CasperWA Nov 3, 2023
6c71755
New test for unresolvable specifier set
CasperWA Nov 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ci_cd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
"""CI/CD Tools. Tiny package to run invoke tasks as a standalone program."""
import logging

__version__ = "2.5.3"
__author__ = "Casper Welzel Andersen"
__author_email__ = "casper.w.andersen@sintef.no"


logging.getLogger("ci_cd").setLevel(logging.DEBUG)
4 changes: 4 additions & 0 deletions ci_cd/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ class InputError(ValueError, CICDException):

class InputParserError(InputError):
"""The input could not be parsed, it may be wrongly formatted."""


class UnableToResolve(CICDException):
"""Unable to resolve a task or sub-task."""
4 changes: 2 additions & 2 deletions ci_cd/tasks/api_reference_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
from invoke import Context, Result


LOGGER = logging.getLogger(__file__)
LOGGER.setLevel(logging.DEBUG)
# Get logger
LOGGER = logging.getLogger(__name__)


@task(
Expand Down
4 changes: 2 additions & 2 deletions ci_cd/tasks/setver.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

from ci_cd.utils import Emoji, SemanticVersion, update_file

LOGGER = logging.getLogger(__file__)
LOGGER.setLevel(logging.DEBUG)
# Get logger
LOGGER = logging.getLogger(__name__)


@task(
Expand Down
Loading