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

Request: drop d2to1 #136

Open
ahesford opened this issue Jan 28, 2021 · 0 comments
Open

Request: drop d2to1 #136

ahesford opened this issue Jan 28, 2021 · 0 comments

Comments

@ahesford
Copy link

d2to1 is deprecated. It seems like setuptools_scm has overtaken the arena for building Python packages with metadata in setup.cfg.

When updating setuptools for Void Linux, I noticed that its python3-changelog package was broken because it does not offer the necessary python3-d2to1 package. Previously, setuptools would silently fetch this build dependency. Now, the long-deprecated easy_install has been dropped from setuptools, so the build fails without explicitly installing d2to1.

As a workaround, I patched gitchangelog to allow its use with setuptools_scm. See patches for setup.py and for setup.cfg. The setup.cfg does not carry over the extras_require originally in your setup.py because Void Linux does not account for optional dependencies. However, you should be able to add this information to setup.cfg in the form of a subsection

[options.extras_require]
Mustache =
    pystache
Mako =
    mako
test =
    nose
    minimock
    mako
    pystache

There may be a few adjustments necessary; I'm not well versed on the details of setup.cfg but was able to hack together what was necessary to build the project as expected without d2to1.

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

1 participant