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

Feat/build with poetry #132

Merged
merged 109 commits into from
Dec 20, 2023
Merged

Feat/build with poetry #132

merged 109 commits into from
Dec 20, 2023

Conversation

pseusys
Copy link
Collaborator

@pseusys pseusys commented May 18, 2023

Description

Building with poetry added.

Checklist

  • I have covered the code with tests
  • I have added comments to my code to help others understand it
  • I have updated the documentation to reflect the changes
  • I have performed a self-review of the changes

scripts/test_and_docs.py Outdated Show resolved Hide resolved
pseusys and others added 9 commits May 24, 2023 06:16
This requires the `wrapt` library which I haven't specified yet in project requirements.
Added wrapt dependency as a core dependency
Added urllib3 dependency to core (poetry requires urllib3<2.0 to function but some extra libraries update its version)

Maybe should use a different approach for these dependencies (not install them in core)
- Add pip upgrade for no reason
- Install specific extras instead of all
- Add flags to fix problems with poetry install
- Temporary fix of coverage job (poetry run test doesn't work)
@kudep kudep mentioned this pull request Jun 22, 2023
4 tasks
@RLKRo RLKRo added the enhancement New feature or request label Jul 26, 2023
@RLKRo RLKRo self-assigned this Jul 26, 2023
@RLKRo RLKRo mentioned this pull request Aug 10, 2023
4 tasks
@pseusys pseusys marked this pull request as ready for review September 27, 2023 07:14
@pseusys
Copy link
Collaborator Author

pseusys commented Sep 27, 2023

Help needed with following lines of patching.py file: I couldn't find a way ti replace them right away.

patch_source_file(
    getsourcefile(sphinx_autodoc_typehints),
    """
class LoggerDummy():
    def warning(self, message, *args):
        print(f"Warning suppressed: {message % args}")

_LOGGER = LoggerDummy()
    """,
)

@pseusys pseusys requested a review from RLKRo September 27, 2023 07:33
# Conflicts:
#	dff/__init__.py
#	docs/source/conf.py
#	makefile
#	setup.py
Instead of removing all directories to check that tests pass and do not miss any json files in `dff` it would be better to simply include all files under `dff` into source package.
Also remove redundant excludes and includes.
These are separate tasks.
@pseusys
Copy link
Collaborator Author

pseusys commented Dec 14, 2023

Should we exclude scripts dir from coverage? No need to test them imho.

@RLKRo
Copy link
Member

RLKRo commented Dec 14, 2023

Do you mean from codestyle?
I think it's fine.

@RLKRo RLKRo self-requested a review December 14, 2023 23:50
Poetry lock allows us to freeze dependencies without doing so in pyproject.toml.
urllib breaks poetry, so we want to restrict its version only in devel environments
@RLKRo
Copy link
Member

RLKRo commented Dec 15, 2023

Merging this PR will make dependabot notify us only about new versions of coverage and urllib3. xD

@RLKRo
Copy link
Member

RLKRo commented Dec 18, 2023

@pseusys
Could you review my changes and leave a "thumbs up" on this comment if everything looks good?

.coveragerc Outdated Show resolved Hide resolved
@RLKRo RLKRo merged commit 8dc9b1b into dev Dec 20, 2023
17 checks passed
@RLKRo RLKRo deleted the feat/build_with_poetry branch December 20, 2023 08:48
@RLKRo RLKRo mentioned this pull request Mar 1, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Lint skipping
3 participants