-
Notifications
You must be signed in to change notification settings - Fork 5
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
Modernise dataset template #95
Comments
I played around with the idea before but ultimately gave up. The problem is that this breaks downstream packages that ‘inherit’ from the dataset template and ‘override’ some of the files (including setup.py_tmpl), e.g.: https://github.com/lexibank/pylexibank/tree/master/src/pylexibank/dataset_templates/lexibank_simple |
Hm. Alternatively, we could add a "modenize" command of sorts, that takes an existing |
Hm, that would involve parsing a python file – I don't know if we want to go down that rabbit hole if we don't have to.
Yeah, I think that would be for the best. From what I see pyproject.toml doesn't actually do anything new that we need (apart from supporting build systems other than setuptools, which we're unlikely to switch to). Plus, when I played around with the pyproject.toml I found that there are some tools (flake8 for instance) which only support setup.cfg, so I ended up with all three file formats in the same project (py, cfg, and toml). So, I don't really see any benefits in ‘modernising’ here. Also, who knows how many more config files the ecosystem will have XKCD 927'd into existence by the time setup.py actually stops working… (maybe a json file, and a yaml file for good measure) (<_<)" |
I lack the proficiency and experience of @johenglisch and @xrotwang here, but I played around with pyproject.toml (they have a little package to turn cfg files to toml, and I managed to run the pip installation for edictor project without greater problems, but I did not yet look deeper into flake and the like. Thus, if it means we must keep the cfg-files anyway, plus the empty setup.py, we could as well wait (but we'd need to switch from setup.py with code to using cfg files). |
In the dataset templates we should use a
pyproject.toml
-based approach (rather thansetup.py
). Something along the lines of this seems to work:The text was updated successfully, but these errors were encountered: