-
Notifications
You must be signed in to change notification settings - Fork 295
refactor: use flit as a backend #546
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,41 @@ | ||
| [build-system] | ||
| requires = ['setuptools >= 40.8.0', 'wheel'] | ||
| build-backend = 'setuptools.build_meta' | ||
| requires = ["flit_core >=3.3"] | ||
| build-backend = "flit_core.buildapi" | ||
|
|
||
|
|
||
| [project] | ||
| name = "packaging" | ||
| description = "Core utilities for Python packages" | ||
| version = "21.4.dev0" | ||
| readme = "README.rst" | ||
| requires-python = ">=3.7" | ||
| authors = [{name = "Donald Stufft", email = "donald@stufft.io"}] | ||
| classifiers = [ | ||
| "Development Status :: 5 - Production/Stable", | ||
| "Intended Audience :: Developers", | ||
| "License :: OSI Approved :: Apache Software License", | ||
| "License :: OSI Approved :: BSD License", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3 :: Only", | ||
| "Programming Language :: Python :: 3.7", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: Implementation :: CPython", | ||
| "Programming Language :: Python :: Implementation :: PyPy", | ||
| ] | ||
| dependencies = [] | ||
|
|
||
| [project.urls] | ||
| Documentation = "https://packaging.pypa.io/" | ||
| Source = "https://github.com/pypa/packaging" | ||
|
|
||
|
|
||
| [tool.flit.sdist] | ||
| include = ["LICENSE*", "tests/", "docs/"] | ||
| exclude = ["docs/_build", "tests/manylinux/build-hello-world.sh", "tests/musllinux/build.sh", "tests/hello-world.c", "tests/__pycache__", "build/__pycache__"] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This does not include everything that MANIFEST.in has. Also MANIFEST.in is not removed. I think it's not anymore used with flit?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the differences are explained above (unless you see something specific). If I forgot MANIFEST.in, that's a mistake. :)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @henryiii I just tried to test your branch to see if my change to flit helps. I'm confused. Running nox for tests, docs or lint does not create
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I don't know why that would be unless you are running Python with
I think that was added by mistake, we are not bundling a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was not running Python explicitly. I was running this project's test runner and it did not create There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suggest confirming whether build is necessary and removing tests in follow-up when flit is fixed to exclude bytecode automatically and this project depends on newer version of flit.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we need to exclude
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We might want to report another issue about that... I don't think it makes any sense for sdist to contain Python bytecode.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Correct, Hatchling hard-codes that exclusion. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Created pypa/flit#568 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That said, even if that is fixed, it would imply requiring a very new version of flit. Maybe it makes sense just go with this and have an issue about cleaning it up later.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There hasn't been a flit-core release with recursive globs FYI. |
||
|
|
||
|
|
||
| [tool.coverage.run] | ||
|
|
@@ -19,3 +54,8 @@ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"] | |
| [[tool.mypy.overrides]] | ||
| module = ["_manylinux"] | ||
| ignore_missing_imports = true | ||
|
|
||
|
|
||
| [tool.isort] | ||
| profile = "black" | ||
| combine_as_imports = true | ||
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.