rehandalal / sort-requirements Goto Github PK
View Code? Open in Web Editor NEWA simple script to sort python dependencies in requirement text files.
License: Mozilla Public License 2.0
A simple script to sort python dependencies in requirement text files.
License: Mozilla Public License 2.0
if there are comments, the comment will be in wrong place, maybe keep the comment stick to the next uncomment line
I always run this after merging branches, to ensure order. It would be awesome if it would delete duplicated lines.
Thanks very much for writing sort-requirements
.!
I just tried to use it on a windows laptop under and got a strange UnicodeEncodeError
on two different packages.
Do you have any advice on how to debug this?
Thanks!
$ sort-requirements.exe requirements.txt
Traceback (most recent call last):
File "C:\Users\crkrenn\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\crkrenn\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\crkrenn\code\codepy\venv\Scripts\sort-requirements.exe\__main__.py", line 9, in <module>
File "c:\users\crkrenn\code\codepy\venv\lib\site-packages\sort_requirements\script.py", line 103, in main
return end(0, args, changed, len(files))
File "c:\users\crkrenn\code\codepy\venv\lib\site-packages\sort_requirements\script.py", line 21, in end
write("All done! \U0001f389\n")
File "C:\Users\crkrenn\Anaconda3\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f389' in position 10: character maps to <undefined>
Hello,
Thanks a bunch for this library. I have a use case where there are many requirements.txt
(and requirements-devel.txt
) in my repo. I was was wondering if you would be open to functionality for recursively searching a directory tree, finding the files that match the glob, and then do the checks on those?
Thanks,
Zach
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.