Skip to content

Provide proper defaults for devpi upload #62

Description

PyScaffold should provide proper defaults for the devpi upload as the usage of https://pypi.python.org/pypi/setuptools_scm comes with some peculiarities in combination with devpi upload. E.g. devpi by default exports from the SCM to avoid packaging files not under version control.

Potential content of the relevant section in setup.cfgcould be:

[devpi:upload]
formats = sdist.tgz,bdist_wheel
no-vcs = 1
with-docs = 1

Rational for each line:

  • setuptools_scm is a required to execute the setup.py and installation will be handled by easy_install. As this can cause errors when using custom indices a wheel should be provided.
  • no-vcs ensures that the version console information is present during packaging.
  • with-docs would ensure the documentation is also uploaded to devpi. As PyScaffold generates Sphinx documentation I assume this to be a sensible default.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions