Re: [Distutils] Distributing packages to offline machines

2018-04-04 Thread Wes Turner
Have you already tried `pip download --platform`?

https://pip.pypa.io/en/stable/reference/pip_download/#cmdoption-platform


It may be worth setting up devpi (maybe in a container) and caching the
packages; particularly for CI:

https://packaging.python.org/guides/index-mirrors-and-caches/

AFAIU, there's no way to specify a limited set of packages and platforms to
mirror with bandersnatch?

On Wednesday, April 4, 2018, Eric Gorr  wrote:

> I had a question about distributing python packages to offline machines
> when the offline machine is running a different OS then a machine with an
> internet connection. The packages I am concerned with are third party upon
> which mine depend.
>
> Based on what I have learned so far, there are three solutions.
>
> (a) Use a CI to run a fleet of machines for each OS one needs to target to
> obtain the OS specific wheels.
>
> (b) 'pip download  --no-binary :all:' -- the intention here
> is to grab the source distribution without any OS specific code included.
>
> (c) use https://warehouse.pypa.io/api-reference/json to look for
> distributed wheels for the target OS and python version and download them
> directly. (This may make for a nice flag to add to pip somewhere...the
> ability to specify what wheel one wants when it isn’t for the machine pip
> is running on)
>
> The issue I see with (a) is the shear amount work it would take to setup
> and maintain such a system.
>
> The issue I see with (b) is that it is not 100% reliable as some packages
> are tricky to install and may not work well with 'pip download’.
>
> I have not played around with (c) yet, so I do not know how well it will
> work, but it seems like a viable solution.
>
> I was just wondering if anyone had any comments on this as I think though
> the ways to solve this problem.
>
> Thank you.
>
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


[Distutils] Distributing packages to offline machines

2018-04-04 Thread Eric Gorr
I had a question about distributing python packages to offline machines
when the offline machine is running a different OS then a machine with an
internet connection. The packages I am concerned with are third party upon
which mine depend.

Based on what I have learned so far, there are three solutions.

(a) Use a CI to run a fleet of machines for each OS one needs to target to
obtain the OS specific wheels.

(b) 'pip download  --no-binary :all:' -- the intention here
is to grab the source distribution without any OS specific code included.

(c) use https://warehouse.pypa.io/api-reference/json to look for
distributed wheels for the target OS and python version and download them
directly. (This may make for a nice flag to add to pip somewhere...the
ability to specify what wheel one wants when it isn’t for the machine pip
is running on)

The issue I see with (a) is the shear amount work it would take to setup
and maintain such a system.

The issue I see with (b) is that it is not 100% reliable as some packages
are tricky to install and may not work well with 'pip download’.

I have not played around with (c) yet, so I do not know how well it will
work, but it seems like a viable solution.

I was just wondering if anyone had any comments on this as I think though
the ways to solve this problem.

Thank you.
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] IRC/Twitter livechats about Warehouse today & Thursday

2018-04-04 Thread Sumana Harihareswara
The next chat will be in a little under half a day.

We're also adding one more IRC livechat, for next week: Tuesday, April
10th, 19:00 UTC:
https://www.timeanddate.com/worldclock/converter.html?iso=20180410T19=24=1440=179
.

-Sumana


On 04/03/2018 10:44 AM, Sumana Harihareswara wrote:
> The next one starts in ~16 minutes. Links, etc. at
> https://pyfound.blogspot.com/2018/03/warehouse-all-new-pypi-is-now-in-beta.html#livechat
> .
> 
> -Sumana
> 
> On 03/26/2018 05:13 PM, Sumana Harihareswara wrote:
>> Warehouse developers will be in IRC, in #pypa-dev on Freenode, and on
>> Twitter (hashtag: #newpypi), available to talk about problems you run
>> into, or about how to hack on Warehouse, for four livechats over the
>> next few weeks:
>>
>>
>> 1. Tuesday, March 27th, 9am-10am PDT, noon-1pm EDT, 18:00-19:00 CEST,
>> 9:30pm-10:30pm India, 16:00-17:00 UTC
>> https://www.timeanddate.com/worldclock/fixedtime.html?msg=Warehouse/PyPI+beta+chat=20180327T16=:=1
>>
>>
>> 2. Friday, March 30th, 10-11am EDT, 16:00-17:00 CEST, 7:30pm-8:30pm
>> India, 14:00-15:00 UTC
>> https://www.timeanddate.com/worldclock/fixedtime.html?msg=Warehouse/PyPI+beta+live+chat=20180330T14=1440=1
>>
>>
>> 3.  Tuesday, April 3rd, 8am-9am PDT, 11am-noon EDT, 17:00-18:00 CEST,
>> 8:30pm-9:30pm India, 15:00-16:00 UTC
>> https://www.timeanddate.com/worldclock/fixedtime.html?msg=Warehouse/PyPI+beta+livechat=20180403T10=24=1
>>
>>
>> 4. Thursday, April 5th, 5pm-6pm PDT, 8pm-9pm EDT, (April 5th) 8am-9am
>> Manila, (April 5th) 10am-11am Melbourne, (April 5th) 0:00-1:00 UTC
>> https://www.timeanddate.com/worldclock/fixedtime.html?p1=24=20180405T19=Warehouse/PyPI%20beta%20livechat=1=4
>>
>>
>> Feel free to drop in! (By participating, you agree to abide by the PyPA
>> Code of Conduct: https://www.pypa.io/en/latest/code-of-conduct/ .)
>>

___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] [Python-ideas] Pypi private repo's

2018-04-04 Thread Jannis Gebauer
What if there was some kind of “blessed” entity that runs these services and 
puts the majority of the revenue into a fund that funds development on PyPi 
(maybe trough the PSF)? 

Jannis

> On 4. Apr 2018, at 23:24, Dustin Ingram  wrote:
> 
> This was recently discussed on the Packaging-WG mailing list. To
> summarize, there are a few key reasons why this would be challenging:
> 
> 1) The PSF is a non-profit. Taking on work generally in the domain of
> for-profit enterprises might jeopardize our tax-exempt status.
> 
> 2) PyPI relies heavily (~$1M/yr) on donated services and
> infrastructure. If we start trying to make money, our sponsors may not
> appreciate it.
> 
> 3) If PyPI is in the business of hosting private packages, it may
> de-incentivize us from helping to make sure "competing" private
> indices (devpi, Artifactory, gemfury, etc) are functional.
> 
> 4) With the exception of the current MOSS grant, PyPI is supported
> entirely by unpaid volunteers. Is it fair to ask volunteers to
> continue contributing their time to a for-profit enterprise?
> 
> Not to say that this would be impossible -- PyCon is quite similar
> (turns a profit, has sponsors, competes with other conferences, uses
> volunteer support) has addressed (and is addressing) many of these
> challenges, but it remains that the transition would be challenging.
> 
> D.
> 
> On Wed, Apr 4, 2018 at 3:55 PM, Alex Walters  wrote:
>> I am fairly sure if you give the PyPA that suggestion, they will just
>> deflate at the thought of the workload.  Besides, we already offer private
>> repos for free, several ways ranging from devpi to python -m
>> SimpleHTTPServer in a specially created directory.
>> 
>> 
>> 
>> 
>> 
>> From: Python-ideas 
>> On Behalf Of Nick Humrich
>> Sent: Wednesday, April 4, 2018 12:26 PM
>> To: python-id...@python.org
>> Subject: [Python-ideas] Pypi private repo's
>> 
>> 
>> 
>> I am sure this has been discussed before, and this might not even be the
>> best place for this discussion, but I just wanted to make sure this has been
>> thought about.
>> 
>> What if pypi.org supported private repos at a cost, similar to npm?
>> 
>> This would be able to help support the cost of pypi, and hopefully make it
>> better/more reliable, thus in turn improving the python community.
>> 
>> If this discussion should happen somewhere else, let me know.
>> 
>> Nick
>> 
>> 
>> ___
>> Distutils-SIG maillist  -  Distutils-SIG@python.org
>> https://mail.python.org/mailman/listinfo/distutils-sig
>> 
> ___
> Distutils-SIG maillist  -  Distutils-SIG@python.org
> https://mail.python.org/mailman/listinfo/distutils-sig

___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] [Python-ideas] Pypi private repo's

2018-04-04 Thread Dustin Ingram
This was recently discussed on the Packaging-WG mailing list. To
summarize, there are a few key reasons why this would be challenging:

1) The PSF is a non-profit. Taking on work generally in the domain of
for-profit enterprises might jeopardize our tax-exempt status.

2) PyPI relies heavily (~$1M/yr) on donated services and
infrastructure. If we start trying to make money, our sponsors may not
appreciate it.

3) If PyPI is in the business of hosting private packages, it may
de-incentivize us from helping to make sure "competing" private
indices (devpi, Artifactory, gemfury, etc) are functional.

4) With the exception of the current MOSS grant, PyPI is supported
entirely by unpaid volunteers. Is it fair to ask volunteers to
continue contributing their time to a for-profit enterprise?

Not to say that this would be impossible -- PyCon is quite similar
(turns a profit, has sponsors, competes with other conferences, uses
volunteer support) has addressed (and is addressing) many of these
challenges, but it remains that the transition would be challenging.

D.

On Wed, Apr 4, 2018 at 3:55 PM, Alex Walters  wrote:
> I am fairly sure if you give the PyPA that suggestion, they will just
> deflate at the thought of the workload.  Besides, we already offer private
> repos for free, several ways ranging from devpi to python -m
> SimpleHTTPServer in a specially created directory.
>
>
>
>
>
> From: Python-ideas 
> On Behalf Of Nick Humrich
> Sent: Wednesday, April 4, 2018 12:26 PM
> To: python-id...@python.org
> Subject: [Python-ideas] Pypi private repo's
>
>
>
> I am sure this has been discussed before, and this might not even be the
> best place for this discussion, but I just wanted to make sure this has been
> thought about.
>
> What if pypi.org supported private repos at a cost, similar to npm?
>
> This would be able to help support the cost of pypi, and hopefully make it
> better/more reliable, thus in turn improving the python community.
>
> If this discussion should happen somewhere else, let me know.
>
> Nick
>
>
> ___
> Distutils-SIG maillist  -  Distutils-SIG@python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] [Python-ideas] Pypi private repo's

2018-04-04 Thread Alex Walters
I am fairly sure if you give the PyPA that suggestion, they will just deflate 
at the thought of the workload.  Besides, we already offer private repos for 
free, several ways ranging from devpi to python -m SimpleHTTPServer in a 
specially created directory.

 

 

From: Python-ideas  On 
Behalf Of Nick Humrich
Sent: Wednesday, April 4, 2018 12:26 PM
To: python-id...@python.org
Subject: [Python-ideas] Pypi private repo's

 

I am sure this has been discussed before, and this might not even be the best 
place for this discussion, but I just wanted to make sure this has been thought 
about.

What if pypi.org   supported private repos at a cost, similar 
to npm?

This would be able to help support the cost of pypi, and hopefully make it 
better/more reliable, thus in turn improving the python community.

If this discussion should happen somewhere else, let me know.

Nick

___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] Github-Flavored Markdown is now supported on PyPI

2018-04-04 Thread Thomas Kluyver
A soon-to-be released version of flit will should make use of this
automatically if your description file has a .md extension.

On Wed, Apr 4, 2018, at 6:26 PM, Jon Wayne Parrott via Distutils-SIG wrote:> Hi 
distutils-sig,
> If you haven't yet heard, as of April 1st PyPI (warehouse) supports
> GitHub-Flavored Markdown for project descriptions.> 
> You can read more about this here:
> http://blog.jonparrott.com/github-flavored-markdown-on-pypi/> 
> Thanks all!
> _
> Distutils-SIG maillist  -  Distutils-SIG@python.org
> https://mail.python.org/mailman/listinfo/distutils-sig

___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


[Distutils] Github-Flavored Markdown is now supported on PyPI

2018-04-04 Thread Jon Wayne Parrott via Distutils-SIG
Hi distutils-sig,
If you haven't yet heard, as of April 1st PyPI (warehouse) supports
GitHub-Flavored Markdown for project descriptions.

You can read more about this here:
http://blog.jonparrott.com/github-flavored-markdown-on-pypi/

Thanks all!
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


[Distutils] how can I get the pdf version of library

2018-04-04 Thread X.b. Gao
Dear
   Could you please help to understand if I can get the pdf version of library 
? then I can look up modules of library locally and easily.

Thanks
Kind Regards,
X.B
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


[Distutils] (no subject)

2018-04-04 Thread Keisha Alexander
How can I get my Ip Address changed
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig