title: 'lein deploy clojars' does not ask for a passphrase
body: <p>I want to deploy a Clojure library using Leiningen. I have done the following things:</p>
  
  <ul>
  <li>installed gpg</li>
  <li>created a gpg key-pair</li>
  <li>encrypted my Clojars credential into ~/.lein/credentials.clj.gpg</li>
  <li>installed gpg-agent</li>
  <li>installed <a href="https://github.com/funtoo/keychain" rel="nofollow" title="Keychain">Keychain</a></li>
  </ul>
  
  <p>When I call 'lein deploy clojars', I get the following output:</p>
  
  <pre><code>WARNING: please set :license in project.clj.
  Could not decrypt credentials from ~/.lein/credentials.clj.gpg
  gpg: can't query passphrase in batch mode
  gpg: decryption failed: secret key not available
  
  See `lein help gpg` for how to install gpg.
  No credentials found for clojars
  See `lein help deploy` for how to configure credentials.
  Username:
  </code></pre>
  
  <p>I then uninstalled gpg, installed gpg2 and made a symlink from gpg to gpg2. When I now call 'lein deploy clojars', I get:</p>
  
  <pre><code>WARNING: please set :license in project.clj.
  ^CCould not decrypt credentials from ~/.lein/credentials.clj.gpg
  pinentry-curses: no LC_CTYPE known - assuming UTF-8
  pinentry-curses: no LC_CTYPE known - assuming UTF-8
  pinentry-curses: no LC_CTYPE known - assuming UTF-8
  pinentry-curses: no LC_CTYPE known - assuming UTF-8
  
  gpg: signal Interrupt caught ... exiting
  
  See `lein help gpg` for how to install gpg.
  No credentials found for clojars
  See `lein help deploy` for how to configure credentials.
  Username: 
  </code></pre>
  
  <p>After the warning, the command waits for an input, from which I can only exit by pressing ctrl-c.</p>
  
  <p>Can anyone tell me what I need to do in order to deploy the library?</p>