Skip to content
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

Python 3.x support #6

Open
neomonkeus opened this issue Nov 27, 2014 · 4 comments
Open

Python 3.x support #6

neomonkeus opened this issue Nov 27, 2014 · 4 comments

Comments

@neomonkeus
Copy link
Member

Update niflib to use Python3.x

@BlazesRus
Copy link

After having pip install modernize, try:
py -3.9 -m modernize -w FILENAME
py -3.9 -m pyupgrade --py3-plus --py36-plus --py37-plus --py38-plus FILENAME
with filename replaced with target files(and 3.9 replaced with current python version)(worked for upgrading docsys to 3.x)
Manually replace the .imports such as
from .nifxml import Member, Compound, Block
into
from nifxml import Member, Compound, Block
And possibly also delete the init.py files so python 3.x can autopackage without needing from future imports

@neomonkeus
Copy link
Member Author

neomonkeus commented Nov 21, 2020

Feel free to PR back in to the repos, I see that you have alot of working going on.
If you can drop by - https://discord.gg/y6pHsh9Dha

@BlazesRus
Copy link

BlazesRus commented Nov 23, 2020

Discord link invalid(all that stuff I'm working on is just hobbyist stuff and most of it are planned components of other code)
P.S. Also trying to set up a C++ replacement of DocSys that supports 0.9.2 nifxml (including more than one expression test formulas) :)

@neomonkeus
Copy link
Member Author

Sorry might have expired, updated there.
The last piece of work that jon did was to add some support within the nif.xml library itself to generate docs, with the intent that it should be self describing and not have to rely on external tooling.
I have a PR open for a minor bug, but haven't had time to look much further past it I am afraid.
All contributions are welcome as most project could do with much love to get them up to using latest versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants