carloshatch / wi Goto Github PK
View Code? Open in Web Editor NEWInstaller for Python Wheels
License: MIT License
Installer for Python Wheels
License: MIT License
https://github.com/chromano/wi/blob/ee5ddf40c62a28524fa205143cb97d5e94792610/wi#L102
Since the usage is so trivial, it would be nice if a more backwards-compatible approach were used instead.
Currently, we are relying on the wheel
module to find whether a .whl can be installed on the destination arch, however that module doesn't provide support for manylinux versions (i.e, it won't recognise packages distributed as such).
At the moment the repo to pull from is hardcoded to be
PACKAGES_REPO_URL = 'https://pypi.python.org/pypi'
Allowing to connect to other repos will help a lot, ideally sharing the same argument options as pip (https://pip.pypa.io/en/stable/reference/pip/?highlight=trusted-host#cmdoption-trusted-host, https://pip.pypa.io/en/stable/reference/pip_wheel/#index-url ) for clarity
wi --index-url=http://my_own_repo.company.com --trusted-host my_own_repo.company.com
The trusted host is to avoid requiring https
In order to validate my rpm package, some sort of offline tests are needed.
https://build.opensuse.org/package/show/home:jayvdb:py-new/python-wi
Typical approach for pip tools is to use a fake pypi server, such as devpi.
It would be great if wi was able to pickup dependencies from setup.py
instead of a requirements file.
Ideally with same extras syntax as pip, eg:
wi .[all]
[ 162s] Traceback (most recent call last):
[ 162s] File "/home/abuild/rpmbuild/BUILDROOT/python-wi-0.0.2-lp151.4.1.x86_64/usr/bin/wi", line 28, in <module>
[ 162s] from wheel.install import WheelFile
[ 162s] ModuleNotFoundError: No module named 'wheel.install'
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.