Giter Club home page Giter Club logo

Comments (6)

johanneskastl avatar johanneskastl commented on June 16, 2024 1

I tried with 0.27.1 and one of the original errors (Unknown directive type: 'currentmodule') is gone.

I needed to work around the other one, as I need to rename the src directory before the builds and rename it back, otherwise I run into some weird errors.
So I had to put __about__.py back into src/libtmux/ and now the tests succeed. I could even re-enable the checks I had to disable a while ago:

IGNORED_TESTS="test_capture_pane"
IGNORED_TESTS="${IGNORED_TESTS} or test_capture_pane_start"
IGNORED_TESTS="${IGNORED_TESTS} or test_function_times_out"
IGNORED_TESTS="${IGNORED_TESTS} or test_function_times_out_no_rise"
IGNORED_TESTS="${IGNORED_TESTS} or test_function_times_out_no_raise_assert"
IGNORED_TESTS="${IGNORED_TESTS} or test_select_window"
IGNORED_TESTS="${IGNORED_TESTS} or test_new_window_with_environment[environment0]"
IGNORED_TESTS="${IGNORED_TESTS} or test_new_window_with_environment[environment1]"
IGNORED_TESTS="${IGNORED_TESTS} or test_split_window_with_environment[environment0]"
IGNORED_TESTS="${IGNORED_TESTS} or test_split_window_with_environment[environment1]"
%pytest -k "not (${IGNORED_TESTS})"

Hence: Closing this issue! Thanks for your help!

from libtmux.

tony avatar tony commented on June 16, 2024

@johanneskastl Thank you for this!

How is the package being checked out? How are it and its dependencies being installed?

e.g. If it's from git source, does poetry install --with=test,coverage,lint work?

from libtmux.

johanneskastl avatar johanneskastl commented on June 16, 2024

The package is built in a offline environment, aka all dependencies are being prepared beforehand. This means all of the other packages are being installed via openSUSE's RPM package manager.
libtmux itself is being prepared from a PyPI tarball, which worked up until now. I can test and use the GitHub tarball, to see if this solves the issue.

from libtmux.

tony avatar tony commented on June 16, 2024

@johanneskastl

MIGRATION:

I will make a fix for this and report when the release is pushed.

poetry build
cd dist/
tar xvf libtmux-0.27.0.tar.gz
ls libtmux-0.27.0/
CHANGES  LICENSE  PKG-INFO  README.md  conftest.py  docs  pyproject.toml  src  tests

__about__.py:

I'm confident this exists:

ls libtmux-0.27.0/src/libtmux
__about__.py  __init__.py  _compat.py  _internal  _vendor  common.py  exc.py  formats.py  neo.py  pane.py  py.typed  pytest_plugin.py  server.py  session.py  test.py  window.py

currentmodule directive

Unknown directive type: 'currentmodule' [myst.directive_unknown].

This should be fine to ignore.

from libtmux.

tony avatar tony commented on June 16, 2024

@johanneskastl If you try v0.27.1, is anything different?

from libtmux.

tony avatar tony commented on June 16, 2024

@johanneskastl Thank you for the detailed follow up!

from libtmux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.