Coder Social home page Coder Social logo

yazdipour / omnivorex Goto Github PK

View Code? Open in Web Editor NEW
34.0 2.0 1.0 210 KB

Omnivore TUI Terminal Client [Windows - MacOS - Linux]

Home Page: https://pypi.org/project/omnivorex/

License: MIT License

Python 100.00%
omnivore omnivore-api rich text-us textual tui windows-terminal

omnivorex's Issues

Fix sibling-package-imports

Title: Setup.py Update Needed for Improved Importing of Components


Description

Currently, our project uses a workaround that requires manually adding the components folder to the sys.path for it to be imported from anywhere in the project. The relevant code snippet is shown below:

# TODO: fix this hack with a proper setup.py
# Things to do: In setup.py, add a command to copy the components folder to the site-packages folder
# Then, in omnivorex.py, add the site-packages folder to the sys.path
# This will allow the components folder to be imported from anywhere
# Use this as a reference: https://stackoverflow.com/questions/6323860/sibling-package-imports
# sys.path.append(os.path.dirname(os.path.realpath(__file__)))
import omnivorex.utils as utils
from omnivorex.components.article_item import ArticleItem
from omnivorex.components.login_screen import LoginScreen

Tasks

  • Update setup.py to include a command to copy the components folder to the site-packages directory.
  • In omnivorex.py, update sys.path to include the site-packages directory.
  • Verify that the components folder can be imported from anywhere in the project.
  • Remove the manual addition of the components folder to sys.path.

Acceptance Criteria

  • The components folder is automatically copied to the site-packages directory during setup.
  • The omnivorex.py file automatically includes the site-packages directory in sys.path.
  • Components can be imported from anywhere in the project without manual intervention.
  • All existing functionality remains intact and passes all tests.

software

I will not use the terminal, please have any software installation package, thank you

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.