Conversation
sha256 "0992d4c0c98e71a0638050f3900125a82bd29e15d5be080a4520830fa48c660a" | ||
|
||
option "without-keyring", "Build without python-keyring support" | ||
depends_on :python3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blank line between the option and dependency, please.
@BrewTestBot test this please |
If this is only interesting to you as a dependency of that other package, then this PR can be closed. Does this really need python3? We use system Python (meaning python 2) when possible. All instances of "python3.4" need to use the result of xy = Language::Python.major_minor_version "python3"
... libexec/"lib/python#{xy}/site-packages" ... |
As already mentioned, it is first and foremost a standalone application to sync {card,cal}dav endpoints with your local filesystem. aside from that, it offers some library like API for applications to call. |
Should I use Language::Python.major_minor_version "python3" for python2 as well? as in Language::Python.major_minor_version "python2" ? |
That's not true, vdirsyncer works against Python 2.7 and Python 3.3+ (Python 3.2 and 3.1 are not supported) |
Yes, that comment from me is rather outdated. I thought that click requires python3 (the error said something about pyhton3 and lazy me just tried pathon3 and everything was fine, so I assumed python3) but a closer look indicated another issue regarding proper LANG env settings. Long story short, the formula does not require python2 and works with the os x system python. |
Ok, I forgot to mention that the user experience is better with vdirsyncer running on Python 3 though. Whether that's worth the extra dependency is up to you. On 11 July 2015 14:00:26 CEST, benjaminfrank notifications@github.com wrote:
Sent from my phone. Please excuse my brevity. |
@untitaker Mind elaborating a bit so we can decide? Thanks! |
Under Python 2, vdirsyncer doesn't respond to ^C properly, or only after a long On Sat, Jul 11, 2015 at 01:29:00PM -0700, Mike McQuaid wrote:
|
@untitaker Cool, thanks, Python 2 it is. |
I will try to come up with something meaningfull, but in the progress I found another issue with tls/ssl I need to figure out first. |
Looking forward to this. I don't think it's reasonable to hold this up on a more meaningful test. The |
That said, this formula doesn't successfully install for me. I'm on Yosemite. Ran
|
Yes, this error is known. The issue is that the github releases do not contain neither the version.py file nor the .git infos that would be require for setuptools_scm to generate ist. |
6d53d21
to
02d554d
Compare
Your latest commit is called 0.2.5 when it should be 0.5.2 FWIW. On 25 July 2015 08:29:22 CEST, benjaminfrank notifications@github.com wrote:
Sent from my phone. Please excuse my brevity. |
I am sorry, but I don't get it. I can't find anything containing 0.2.5....could you be more specific so I can fix it? Thanks. |
Eugh, seems like I misread myself, sorry for the noise. On 25 July 2015 09:50:16 CEST, benjaminfrank notifications@github.com wrote:
Sent from my phone. Please excuse my brevity. |
No problem. |
02d554d
to
155479b
Compare
0.6.0 is out. |
155479b
to
a38275e
Compare
Sorry for taking my time, but I wasn't around the last month. |
|
||
option "without-keyring", "Build without python-keyring support" | ||
|
||
depends_on :python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be depends_on :python if MacOS.version <= :snow_leopard
AFAIK. Otherwise we end up making everyone who installs this from a bottle install our Python first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is intentional as the system python has (some) broken ssl code such that you can't use https connections with vdirsyncer. at least it didn't work for me.
Edit: here is the error when using the system python:
/usr/local/Cellar/vdirsyncer/0.6.0/libexec/vendor/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:90:
InsecurePlatformWarning: A true SSLContext object is not available.
This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail.
For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case you might as well depend on Python 3 since vdirsyncer works better with it, no?
On 5 September 2015 08:53:47 CEST, benjaminfrank notifications@github.com wrote:
@@ -0,0 +1,91 @@
+class Vdirsyncer < Formula
- desc "Synchronize calendars and contacts"
- homepage "https://github.com/untitaker/vdirsyncer"
- url
"https://pypi.python.org/packages/source/v/vdirsyncer/vdirsyncer-0.6.0.tar.gz"- sha256
"0d2a9677b086cfbe5fe5e7cb5e55db4c1afab62cb5dc56aeaff6e95d34bf60d5"- head "https://github.com/untitaker/vdirsyncer.git"
- option "without-keyring", "Build without python-keyring support"
- depends_on :python
That is intentional as the system python has (some) broken ssl code
such that you can't use https connections with vdirsyncer. at least it
didn't work for me
Reply to this email directly or view it on GitHub:
https://github.com/Homebrew/homebrew/pull/41208/files#r38808419
Sent from my phone. Please excuse my brevity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that should be possible, not sure about other pros/cons. If no one objects I'll change that later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should have been fixed for 10.10.5. Other platforms may still have issues I guess. I seem to recall @tdsmith saying the warning wasn't entirely correct/accurate but not sure whether I'm recalling correctly on that and alas people will get upset if they see it. I'm happy with Python3 unless Tim isn't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also happy with Python3 unless @tdsmith disagrees.
bb71031
to
bcfc073
Compare
Also updated the formula to use python3. |
Anything left I can do to include this into homebrew? |
end | ||
|
||
def install | ||
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python3.4/site-packages" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs changing now. Python3 is up to 3.5. Tim has recommended:
version = Language::Python.major_minor_version "python3"
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python#{version}/site-packages"
elsewhere to handle that, so that should work here I expect. You'd want:
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python#{version}/site-packages"
for the primary installation as well.
bcfc073
to
2d803db
Compare
Thanks, changed that bit and will keep it in mind for other python programs. |
Synchronize calendars and contacts https://vdirsyncer.readthedocs.org/
2d803db
to
3c5635b
Compare
I'm happy enough here. Merged in 04438fc. Thank you for sticking with this @benjaminfrank! |
Hooray! @benjaminfrank I see that vdirsyncer's tests are not run, but were you able to run the testsuite successfully on OS X? |
I admit I never even tried to run them as vdirsyncer just worked. I will give the tests a shot tonight. |
Synchronize calendars and contacts https://vdirsyncer.readthedocs.org/