Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
donaldstufft
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
donaldstufft
13y ago
I call them abstract for lack of a better word. Referenced by name? It's not about providing versions of code that does or doesn't pass tests. It's about where that code is fetched from. If you reference the dependency by nam
92.
▲
by
donaldstufft
13y ago
Sure that'd be good too :) This wasn't really aiming to be a comprehensive best practices guide to distributing things. Mostly trying to explain the differences between what a dependency in setup.py means vs a requirements.txt lik
93.
▲
by
donaldstufft
13y ago
``setup.py#install_requires`` would be the gemspec file. Ideally We'd have requirements.txt and requirements.txt.lock which would correspond to Gemfile and Gemfile.lock. However right now that doesn't really happen. So you're
94.
▲
by
donaldstufft
13y ago
Actually you've misread it or I didn't explain it well enough :) A private library/app can have abstract dependencies. As I said in the post it deals with the "deploy specific" side of a Python application. So each
95.
▲
Setup.py vs requirements.txt
(caremad.io)
64 points
by
donaldstufft
13y ago
|
22 comments
96.
▲
by
donaldstufft
13y ago
Not yet anyways ;)
97.
▲
by
donaldstufft
13y ago
Crate is a synonym for Package and I liked the name :)
98.
▲
by
donaldstufft
13y ago
Have you looked at the PyPI codebase? ;) The real answer is I have. I'm a PyPI administrator now and have been enacting a lot of these benefits on PyPI itself. Just this weekend I've deployed a CDN in front of all of PyPI so that package do
99.
▲
by
donaldstufft
13y ago
Working with PyPI tends to make for an angry time.
100.
▲
by
donaldstufft
13y ago
It uses the XMLRPC API to pick up new packages. http://wiki.python.org/moin/PyPIXmlRpc
101.
▲
by
donaldstufft
13y ago
Crate is currently an experiment of mine into what a better package system would look like. It can be used as a drop in replacement against PyPI using the --index-url option of pip. (pip install --index-url= https://simple.crate.io/ ) It ha
102.
▲
by
donaldstufft
15y ago
pip supports a download cache (off by default) that stores packages as their urlname. It works similar to how you describe. It will see it needs the package at url xyz.com/package.tar.gz, it'll check it's download cache and if it doesn't ex
103.
▲
by
donaldstufft
15y ago
This is a good idea! I used the subdomain because I plan on hosting the "simple" interface in EC2 (Packages are hosted on S3/CloudFront) in multiple availability zones while my main site is hosted on Gondor.io. However I could enable a shor
104.
▲
by
donaldstufft
15y ago
Purely coincidence. To be honest I've never seen Rust before, when I was trying to name it I just hit a thesaurus up until I came up with a word that had something to do with "packaging" (Shipping Crates!) that was available that I liked.