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

Remove dependency on PyScaffold during builds #290

Merged
merged 6 commits into from Jul 20, 2020

Conversation

abravalheri
Copy link
Collaborator

@abravalheri abravalheri commented Jul 13, 2020

As discussed in #256, after pytest-runner was deprecated and removed, the only strong reason for having PyScaffold required during builds is to use setuptools_scm. Docs can easily be generated via Makefile (already created by default) or tox/nox (the new tox template already contains a task for the docs).

A way of removing this dependency is by injecting setuptools_scm directly on the setup.py template. In the future something similar can be done for pyproject.toml (when it is generated by default).

This change is an attempt of doing that. As a direct consequence, we also remove PyScaffold as a build-time dependency of itself, which makes things easier. It also closes #245.

@abravalheri abravalheri force-pushed the remove-build-dependency branch 5 times, most recently from ec8268d to 02fb829 Compare July 17, 2020 00:49
@abravalheri abravalheri marked this pull request as ready for review July 17, 2020 01:01
@abravalheri abravalheri force-pushed the remove-build-dependency branch 3 times, most recently from 822153f to 039405e Compare July 18, 2020 22:21
As discussed in pyscaffold#256, after pytest-runner was deprecated and removed,
the only strong reason for having PyScaffold required during builds is
to use setuptools_scm. Docs can easily be generated via Makefile
(already created by default) or tox/nox (the new tox template already
contains a task for the docs).

A way of removing this dependency is by injecting setuptools_scm
directly on the `setup.py` template. In the future something similar can
be done for `pyproject.toml` (when it is generated by default).

This change is an attempt of doing that. As a direct consequence, we
also remove PyScaffold as a build-time dependency of itself, which makes
things easier.
- Remove unecessary egg_info
- Remove unsupported Python version
- Remove coverage combine (it seams pytest-cov already do that)
@abravalheri abravalheri force-pushed the remove-build-dependency branch 5 times, most recently from a236d89 to b3cc601 Compare July 20, 2020 00:23
@abravalheri
Copy link
Collaborator Author

By the general comments in #256 and the quick hint in #289 (implying that in v4 PyScaffold will have runtime dependencies, but not "build-time" ones), I assume this PR is aligned with the current understanding on how PyScaffold should move forward. So now that the tests are fixed on Windows, I will merge the PR into v4.0.x.

The changes can also be reviewed/undone prior to the release.

@abravalheri abravalheri merged commit 6e0dcbb into pyscaffold:v4.0.x Jul 20, 2020
@abravalheri abravalheri deleted the remove-build-dependency branch July 20, 2020 14:20
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.

None yet

1 participant