2

I know there are many JS/CSS minification tools out there, but I'm looking for tools that integrate to my python projects as distutils commands, i.e. something I could configure in the setup.cfg or setup.py file and use with python setup.py <command>.

I already found distwebres which seems interesting but is not officially published. Are there other tools available?

PS: I am only interested by tools that integrate as regular distutils commands, not buildout recipes.

2 Answers 2

1

You can wrap any command-line tool in a distutils command, actually. If you’re only interested by tools that integrate as distutils commands because you want them to be written in Python, then you need to use something like distwebres, but if your interest is in having a unified interface (I mean python setup.py command), then any tool can be called by a command. Depending on the level of configurability you want, it can take ten lines or a hundred.

Sign up to request clarification or add additional context in comments.

1 Comment

My interest is having a unified interface and using aliases to automate many things. I finally wrote a tool that wraps the YUI compressor tool.
0

I finally wrote one myself: Minify

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.