-
-
Notifications
You must be signed in to change notification settings - Fork 12.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
todoman 1.8.0 (new formula) #9080
Conversation
b4b02e3
to
cfaf2a3
Compare
Using the GitHub url:
|
@ilovezfs That's probably because |
@hobarrera thanks for the additional info |
depends_on :python3 | ||
|
||
resource "atomicwrites" do | ||
url "https://pypi.python.org/packages/a1/e1/2d9bc76838e6e6667fde5814aa25d7feb93d6fa471bf6816daac2596e8b2/atomicwrites-1.1.5.tar.gz" |
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.
would be good to use files.pythonhosted.org for all of them
desc "Simple CalDAV-based todo manager" | ||
homepage "https://todoman.readthedocs.io/" | ||
url "https://pypi.python.org/packages/2f/06/a377b38dcd3cba5334f3e6444ab5a26a0d7b134a6d040ac46a16ed70568f/todoman-1.8.0.tar.gz" | ||
sha256 "8ccd602da8b0870dab8273dd50631847b2b9ad7e902a8ec5bfe901e0ea6c72a2" |
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.
head "https://github.com/pimutils/todoman.git"
otherwise brew livecheck
will not work, unless we use the GitHub source archive tarball above, which would be another option in lieu of adding head.
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.
The GitHub tarballs don't work, because they lack git metadata.
The tarballs at PyPI have a python file which is generated when publishing, which contains the required metadata.
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.
OK, so we can use either the tag itself, or the pythonhosted URL and add head "https://github.com/pimutils/todoman.git"
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.
Yes, the cloned tag is okay (meaning "not the tarball for the tag" either).
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.
Right, we do :tag => "foo123", :revision => "abcdef..."
|
||
test do | ||
ENV["LC_ALL"] = "en_US.UTF-8" | ||
ENV["LANG"] = "en_US.UTF-8" |
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.
do we really have to set both? Usually one or the other is sufficient depending on circumstances.
date_format = %Y-%m-%d | ||
default_list = Personal | ||
EOS | ||
mkdir testpath/".calendar/Personal" |
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.
(testpath/".calendar/Personal").mkpath
EOS | ||
mkdir testpath/".calendar/Personal" | ||
system "#{bin}/todo", "new", "newtodo" | ||
assert_match /newtodo/, shell_output("#{bin}/todo list", 0) |
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.
assert_match "newtodo", shell_output("#{bin}/todo list")
end | ||
|
||
def install | ||
virtualenv_create(libexec, "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.
this line is unnecessary. The depends_on :python3
takes care of it.
cfaf2a3
to
cab2d9b
Compare
Hope I got everything correct, especially the GH url with tag and head. |
@benjaminfrank thanks for the 🆕 formula! |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?