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

setup: Only require configparser when native version unavailable #232

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jtojnar
Copy link
Member

@jtojnar jtojnar commented Jun 7, 2017

On Python 3, configparser library is part of standard library. The configparser package therefore is not needed. For this reason, distributions such as Arch Linux do not even provide this package for Python 3, which in turn breaks the build.

This patch changes the setup.py to only add the configparser dependency when native configparser is not available.

@jtojnar jtojnar requested a review from elbenfreund June 7, 2017 19:11
@CLAassistant
Copy link

CLAassistant commented Jun 7, 2017

CLA assistant check
All committers have signed the CLA.

@jtojnar jtojnar force-pushed the setup.py-conditional-configparser branch from 12ad058 to 9f6bdf3 Compare June 7, 2017 19:14
On Python 3, configparser library is part of standard library. The configparser
package therefore is not needed. For this reason, distributions such as Arch Linux
do not even provide this package for Python 3, which in turn breaks the build.

This patch changes the setup.py to only add the configparser dependency when
native configparser is not available.
@jtojnar jtojnar force-pushed the setup.py-conditional-configparser branch from 9f6bdf3 to 05f1836 Compare June 7, 2017 19:19
@codecov
Copy link

codecov bot commented Jun 7, 2017

Codecov Report

Merging #232 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #232   +/-   ##
========================================
  Coverage    96.25%   96.25%           
========================================
  Files            9        9           
  Lines          934      934           
  Branches       141      141           
========================================
  Hits           899      899           
  Misses          13       13           
  Partials        22       22

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c54a9e6...05f1836. Read the comment docs.

@jtojnar
Copy link
Member Author

jtojnar commented Aug 8, 2017

Apparently, it is possible to declare version-specific constraints: https://github.com/joke2k/faker/blob/f81cd517e35d72edbdb264d0ec6a0f93f8d37ab8/setup.py#L68-L78

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

Successfully merging this pull request may close these issues.

2 participants