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

build: configure build with pyproject.toml #388

Merged
merged 7 commits into from
Apr 10, 2024
Merged

build: configure build with pyproject.toml #388

merged 7 commits into from
Apr 10, 2024

Conversation

jsstevenson
Copy link
Contributor

@jsstevenson jsstevenson commented Apr 8, 2024

I am not sure I can test that this produces a totally valid release, because setuptools_scm will render a version number that is incompatible with PyPI if you do so from a commit that doesn't have a version tag on it. I'm pretty sure it's correct, though.

pyproject.toml Outdated Show resolved Hide resolved
# which requires packaging changes. Deferred.
testpaths = src tests
doctest_optionflags = ALLOW_UNICODE ALLOW_BYTES ELLIPSIS IGNORE_EXCEPTION_DETAIL NORMALIZE_WHITESPACE
addopts = --cov-config=setup.cfg --cov-report=term-missing --cov=ga4gh
Copy link
Contributor Author

@jsstevenson jsstevenson Apr 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setup.cfg is given as the pytest-cov config target but no actual configuration options are set. I just removed this option from the corresponding line in pyproject.toml.

Comment on lines -114 to -119
# http://pep8.readthedocs.org/en/latest/intro.html#error-codes
[flake8]
max-line-length = 120
exclude = tests/*
max-complexity = 10
ignore = E129,E221,E241,E251,E303,W291
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't add as a separate .flake8 file because flake8 isn't ever installed as part of dev dependencies

Comment on lines -108 to -109
[bdist_wheel]
universal = 1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for retaining compatibility with Python 2 (https://wheel.readthedocs.io/en/stable/user_guide.html#building-wheels) -- we can remove it

Comment on lines -105 to -106
[aliases]
test = pytest
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe there is a direct pyproject.toml equivalent of this, but it also doesn't seem to be used by the Makefile, so I left it out

@jsstevenson jsstevenson marked this pull request as ready for review April 8, 2024 15:27
@jsstevenson jsstevenson requested review from a team as code owners April 8, 2024 15:27
Comment on lines +4 to +7
{name = "Larry Babb", email = "lbabb@broadinstitute.org"},
{name = "Reece Hart", email = "reecehart@gmail.com"},
{name = "Andreas Prlic", email = "andreas.prlic@gmail.com"},
{name = "Alex Wagner", email = "alex.wagner@nationwidechildrens.org"},
Copy link
Contributor Author

@jsstevenson jsstevenson Apr 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

previously this was just Reece, but I went with all of the former and current VR heads for the sake of consistency

@jsstevenson jsstevenson changed the title build: use pyproject.toml build: configure build with pyproject.toml Apr 8, 2024
pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
@jsstevenson jsstevenson merged commit ab9e527 into main Apr 10, 2024
10 checks passed
@jsstevenson jsstevenson deleted the pyproject branch April 10, 2024 16:56
@korikuzma korikuzma mentioned this pull request Apr 10, 2024
korikuzma added a commit that referenced this pull request Apr 10, 2024
* In #388 we forgot to update the commands to remove setup.py since it
  was removed. This commit removes references to setup.py and setup.cfg
in Makefile
korikuzma added a commit that referenced this pull request Apr 11, 2024
* In #388 we forgot to update the commands to remove setup.py since it
  was removed. This commit removes references to setup.py and setup.cfg
in Makefile
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.

3 participants