Coder Social home page Coder Social logo

bitbucket-python's People

Contributors

ahmedcommando avatar artemrys avatar atindale avatar capcom6 avatar cbcoutinho avatar geeknero avatar ingmferrer avatar jessewei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bitbucket-python's Issues

Release to pypi?

I am attempting to use the code in the README

client = Client(user='[email protected]', password='REALPASSWORD', owner='OwnerName')

But this fails with the following message:

TypeError: __init__() got an unexpected keyword argument 'owner'

The README on PyPI doesn't have the example with owner. Could the newest version be released onto pypi?

Filter issues?

Hello,
is there any way I can filter issues in get_issues method? For example return only "new" or "open" issues?

Invalid version number: 0.3e

I wanted to use your package from PyCharm (poetry env.) like this:
from bitbucket.client import Client

PyCharm asked me if I wanted to install package, yes, as usual.
After that I got this:

Using version ^0.3e for BitBucket

Updating dependencies
Resolving dependencies...

Writing lock file

Package operations: 1 install, 0 updates, 0 removals

โ€ข Installing bitbucket (0.3e)

EnvCommandError

Command C:\Users\VWW3224\AppData\Local\pypoetry\Cache\virtualenvs\jenkinsinfo-0CGVmcW0-py3.10\Scripts\pip.exe install --no-deps file:///C:/Users/VWW3224/AppData/Local/pypoetry/Cache/artifacts/eb/19/b5/2b28cffd83db306edc73eafac84c4645d801b4d710b9bc94255140cb4c/BitBucket-0.3e.tar.gz errored with the following return code 1, and output:
Processing c:\users\vww3224\appdata\local\pypoetry\cache\artifacts\eb\19\b5\2b28cffd83db306edc73eafac84c4645d801b4d710b9bc94255140cb4c\bitbucket-0.3e.tar.gz
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error

python setup.py egg_info did not run successfully.
exit code: 1

[44 lines of output]
C:\Users\VWW3224\AppData\Local\pypoetry\Cache\virtualenvs\jenkinsinfo-0CGVmcW0-py3.10\lib\site-packages\setuptools\dist.py:561: UserWarning: The version specified ('0.3e') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
  warnings.warn(
running egg_info
C:\Users\VWW3224\AppData\Local\pypoetry\Cache\virtualenvs\jenkinsinfo-0CGVmcW0-py3.10\lib\site-packages\setuptools\_normalization.py:93: SetuptoolsDeprecationWarning: Invalid version: '0.3e'.
        !!


        ###################
        # Invalid version #
        ###################
        '0.3e' is not valid according to PEP 440.

        Please make sure specify a valid version for your package.
        Also note that future releases of setuptools may halt the build process
        if an invalid version is given.


!!

  warnings.warn(cleandoc(msg), SetuptoolsDeprecationWarning)
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "<pip-setuptools-caller>", line 34, in <module>
  File "C:\Users\VWW3224\AppData\Local\Temp\1\pip-req-build-uzg36ei9\setup.py", line 8, in <module>
    setup(name="BitBucket",
  File "C:\Users\VWW3224\AppData\Local\pypoetry\Cache\virtualenvs\jenkinsinfo-0CGVmcW0-py3.10\lib\site-packages\setuptools\__init__.py", line 108, in setup
    return distutils.core.setup(**attrs)
  File "C:\Users\VWW3224\AppData\Local\pypoetry\Cache\virtualenvs\jenkinsinfo-0CGVmcW0-py3.10\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
    return run_commands(dist)
  File "C:\Users\VWW3224\AppData\Local\pypoetry\Cache\virtualenvs\jenkinsinfo-0CGVmcW0-py3.10\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
    dist.run_commands()
  File "C:\Users\VWW3224\AppData\Local\pypoetry\Cache\virtualenvs\jenkinsinfo-0CGVmcW0-py3.10\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "C:\Users\VWW3224\AppData\Local\pypoetry\Cache\virtualenvs\jenkinsinfo-0CGVmcW0-py3.10\lib\site-packages\setuptools\dist.py", line 1221, in run_command
    super().run_command(command)
  File "C:\Users\VWW3224\AppData\Local\pypoetry\Cache\virtualenvs\jenkinsinfo-0CGVmcW0-py3.10\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
    cmd_obj.ensure_finalized()
  File "C:\Users\VWW3224\AppData\Local\pypoetry\Cache\virtualenvs\jenkinsinfo-0CGVmcW0-py3.10\lib\site-packages\setuptools\_distutils\cmd.py", line 111, in ensure_finalized
    self.finalize_options()
  File "C:\Users\VWW3224\AppData\Local\pypoetry\Cache\virtualenvs\jenkinsinfo-0CGVmcW0-py3.10\lib\site-packages\setuptools\command\egg_info.py", line 220, in finalize_options
    parsed_version = packaging.version.Version(self.egg_version)
  File "C:\Users\VWW3224\AppData\Local\pypoetry\Cache\virtualenvs\jenkinsinfo-0CGVmcW0-py3.10\lib\site-packages\setuptools\_vendor\packaging\version.py", line 197, in __init__
    raise InvalidVersion(f"Invalid version: '{version}'")
setuptools.extern.packaging.version.InvalidVersion: Invalid version: '0.3e'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: metadata-generation-failed

Encountered error while generating package metadata.

See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

at c:\Users\VWW3224\AppData\Local\Programs\Python\Python310\lib\site-packages\poetry\utils\env.py:1195 in _run

Failed to add packages, reverting the pyproject.toml file to its original content.

API error message not exposed

I had some issues with authentication (I needed to use my bitbucket username, rather than my email address - I'm not sure in what conditions this applies). bitbucket-python exposed this as NotAuthenticatedError: None.

The code looks like it's expecting error messages wrapped JSON, but in this scenario, the message is delivered as a 'plain text' response body, not JSON, saying:

Login failed due to incorrect login credentials or method.
For information on authentication methods for Bitbucket Cloud APIs, visit:
    https://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication
If you are unsure of which login details or login method to use, visit:
    https://support.atlassian.com/bitbucket-cloud/docs/log-into-or-connect-to-bitbucket-cloud/

This is a minor point, and once I got past it, I was able to do what I needed with bitbucket-python, so thank-you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.