GithubHelp home page GithubHelp logo

3.8 Support about libcst HOT 10 CLOSED

instagram avatar instagram commented on May 22, 2024 2
3.8 Support

from libcst.

Comments (10)

bgw avatar bgw commented on May 22, 2024 3

Not sure why mentioning this in a comment auto-closed on merge

😆

Screenshot from 2019-10-28 17-20-48

Certain keywords, like "closes" and "fixes" can be used to auto-close issues, however github isn't context sensitive. https://help.github.com/en/github/managing-your-work-on-github/closing-issues-using-keywords

from libcst.

DragonMinded avatar DragonMinded commented on May 22, 2024 2

This is on my list of TODOs underneath some deprecation tasks and continued work on matchers API. I don't have any real timeline for supporting this but I can certainly bump priority since there is demand for it.

Support for 3.8 comes in two flavors, however: First is the ability to execute LibCST on 3.8 code. This should be available, but you're running into a snag with LibCST's automatic detection of versions. If a python version isn't supplied to the parser, it assumes the version that you're running and since we can't parse 3.8 yet, it fails. Fixing that is possible if you want to hardcode the parser version (which we do in some parser tests). The second flavor is arguably the only useful version, which is the ability to parse 3.8 code, regardless of the currently running python. That's what I assume this feature request is for, and what I can't give an official timeline on yet.

Can you provide your own timeline and such so I can tell how urgently this needs to get addressed?

from libcst.

jimmylai avatar jimmylai commented on May 22, 2024 2

@dseevr, yes, we've started the work of Python 3.8 supports and some preliminary support was published in LibCST 0.2.3
https://github.com/Instagram/LibCST/blob/master/CHANGELOG.md

from libcst.

DragonMinded avatar DragonMinded commented on May 22, 2024 2

Once #213 and #209 are in, we will fully support Python 3.8, both in executing LibCST and in parsing/generating code. I plan to make a release sometime this week.

from libcst.

DragonMinded avatar DragonMinded commented on May 22, 2024 1

We don't have plans for complete 3.8 support for the rest of the year. However, the preliminary support pushed on the 11th of last month should be enough to unblock Pyre (and it has unblocked sister teams). Pyre needs to upgrade their dependency to 0.2.4.

from libcst.

DragonMinded avatar DragonMinded commented on May 22, 2024 1

Oops, forgot to close this. This is live now.

from libcst.

cooperlees avatar cooperlees commented on May 22, 2024

That's fine. Long as it's planned :) I have disabled it in ptr for >= 3.8 for now. My PR is linked above to do this. I'll keep an eye and when this is closed I'll undo the disable :)

from libcst.

DragonMinded avatar DragonMinded commented on May 22, 2024

Not sure why mentioning this in a comment auto-closed on merge, but this is not finished.

from libcst.

dseevr avatar dseevr commented on May 22, 2024

Is this issue being looked at/considered for development? We've had to stop using pyre entirely because it's blocked on this issue.

from libcst.

bgw avatar bgw commented on May 22, 2024

Hey @dseevr, that sucks. Unfortunately, Thanksgiving is approaching, and a lot of people are on vacation, so we might not be able to get back to you until next week.

from libcst.

Related Issues (20)

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.