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

Provide proper defaults for devpi upload #62

Closed
ghost opened this issue Jul 16, 2015 · 2 comments
Closed

Provide proper defaults for devpi upload #62

ghost opened this issue Jul 16, 2015 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ghost
Copy link

ghost commented Jul 16, 2015

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.
@ghost ghost added the enhancement New feature or request label Jul 16, 2015
@FlorianWilhelm FlorianWilhelm added this to the 2.3 milestone Jul 16, 2015
@FlorianWilhelm FlorianWilhelm self-assigned this Jul 16, 2015
@StephanErb
Copy link
Contributor

Slight correction: with-docs is not supported. Only formats and no-vcs are applicable.

See: https://bitbucket.org/hpk42/devpi/src/2baae00d35df81608edc5705215ad72986436fab/client/devpi/upload.py?at=default#cl-32 and the following lines

@FlorianWilhelm
Copy link
Member

Thanks. This is addressed in v2.3rc11.

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

No branches or pull requests

2 participants