taskipy | the complementary task runner for python | Automation library
kandi X-RAY | taskipy Summary
kandi X-RAY | taskipy Summary
Every development pipeline has tasks, such as test, lint or publish. With taskipy, you can define those tasks in one file and run them with a simple command.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Run a task
- Returns the formatted commands for the given task
- Run a command and return its exit code
- Resolve all variables in the project
- Return a function that sends a signal to the task process
- Get the types of the given variables
- Format the task command
- Get the pre - task for a task
- Checks if the given list of tasks is used
- Gets a task
- Get pre task
- Create a new release commit
- List tasks
- Print the tasks section
- Highlight text
taskipy Key Features
taskipy Examples and Code Snippets
Community Discussions
Trending Discussions on taskipy
QUESTION
I use Poetry to build my package with cython extensions. Now I'd like to write tests for it (preferably with nosetest). The problem is that I need to precompile binaries what is usually done with setup.py build_clib build_ext --inplace
The best solution for me is to run tests without creating extra .py
or .sh
files in the directory as I already have build.py
. It is ok to run tests after installing the package in virtual environment, like it is implemented on the readthedocs server.
I also got familiar with taskipy
, so some bash commands in my pyproject.toml
are also ok. Any other packages that work with pyproject.toml
are welcome.
Maybe there are any hooks for Poetry, as it cythonizes and comiles while creating .whl
distribution file.
Any help on this will be appreciated.
UPD Tox looks like suitable tool, but it does not see pyproject.toml
while it in the directory. Links to repos with tox and cython in packages or tutorials are extremely welcome.
ANSWER
Answered 2020-Mar-04 at 16:19If the extension is part of the distribution, you don't need to do anything besides running poetry install
- poetry
will build the extensions in-place as part of the editable installation of your project.
In other cases, you can embed calling distutils
commands in your tests as part of suite setup/teardown. I'm not very familiar with nose
, but here's a simple example. Imagine I have a fib.pyx
(this is an example from the Cython book):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install taskipy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page