Giter Site home page Giter Site logo

Python 3.12 support about transifex-python HOT 5 CLOSED

transifex avatar transifex commented on July 20, 2024 2
Python 3.12 support

from transifex-python.

Comments (5)

m-aciek avatar m-aciek commented on July 20, 2024

Wouldn't bumping the version of vendored versioneer be enough? Python 3.12 is now current latest stable Python version.

from transifex-python.

m-aciek avatar m-aciek commented on July 20, 2024

The full stack trace of pip install failing:

Collecting transifex-python
  Downloading transifex-python-3.4.0.tar.gz (125 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 126.0/126.0 kB 4.1 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [31 lines of output]
      /tmp/pip-install-wksl6_3s/transifex-python_8fa94a11b5d04a6b85cd7ebda619fb62/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s'
        LONG_VERSION_PY['git'] = '''
      Traceback (most recent call last):
        File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 1[18](https://github.com/python/python-docs-pl/actions/runs/6657716328/job/18093013169#step:5:19), in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-6iw56zmc/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-6iw56zmc/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-6iw56zmc/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 507, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-6iw56zmc/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 341, in run_setup
          exec(code, locals())
        File "<string>", line 12, in <module>
        File "/tmp/pip-install-wksl6_3s/transifex-python_8fa94a11b5d04a6b85cd7ebda6[19](https://github.com/python/python-docs-pl/actions/runs/6657716328/job/18093013169#step:5:20)fb62/versioneer.py", line 1480, in get_version
          return get_versions()["version"]
                 ^^^^^^^^^^^^^^
        File "/tmp/pip-install-wksl6_3s/transifex-python_8fa94a11b5d04a6b85cd7ebda619fb62/versioneer.py", line 1412, in get_versions
          cfg = get_config_from_root(root)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-install-wksl6_3s/transifex-python_8fa94a11b5d04a6b85cd7ebda619fb62/versioneer.py", line [34](https://github.com/python/python-docs-pl/actions/runs/6657716328/job/18093013169#step:5:35)2, in get_config_from_root
          parser = configparser.SafeConfigParser()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

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

from transifex-python.

m-aciek avatar m-aciek commented on July 20, 2024

https://github.com/transifex/transifex-python/blob/devel/transifex/_version.py#L9

The current version we have here is 0.18 whereas the latest one is 0.29. Guide to upgrading Versioneer.

from transifex-python.

nbasili avatar nbasili commented on July 20, 2024

@m-aciek Thanks to your contribution, 3.5.0 has been released. Can you please verify that the latest version resolves this open issue?

from transifex-python.

m-aciek avatar m-aciek commented on July 20, 2024

@nbasili Thank you for the release. The most recent PyPI version of transifex-python gets installed and executes successfully on Python 3.12 now. https://github.com/python/python-docs-pl/actions/runs/6833297969/job/18584916064

from transifex-python.

Related Issues (15)

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.