-
Notifications
You must be signed in to change notification settings - Fork 75
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
chore: migrate project metadata to pyproject.toml #436
Conversation
Do you want to include the settings from |
Yes, include them |
Seems clear e simpler to maintain. I will approve after an inclusion of a link to the LICENSE file. |
mypy | ||
lxml-stubs | ||
-e . | ||
-e .[dev] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if you need to have this list as well? It is redundant with the dev group. What do you think?
@@ -1,2 +0,0 @@ | |||
[mypy] | |||
show_error_codes = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now enabled by default.
You have test cases that rely on Remove those? |
I am a huge fan of this github action: https://github.com/hynek/build-and-inspect-python-package It checks if the package can be built and it outputs inspection results. You want to test it? |
try to replace |
Not now, it's very interesting but the testing process of |
How to proceed?
You want to |
I can merge anyway despite the failing tests (minor things anyway, but static typing errors have to be checked also against the next major release of Waiting for your feedback, if you can, add a skip on failing tests, but don't mind about that if you can't. Then if it's okay for you, I'll squash and merge your commits after your feedback. Best |
I am not sure, if I understand what you mean. I skipped two tests, that depend on setup.py being present. Still: I don't know, why the typing tests fail. I did not touch the code itself. Were they passing before? Yes, feel free to squash and merge, if you want to work on the tests individually. |
Hi, Within setup.py there was these config entries:
using
Tried all the possible options on these sections but the result is a correct wheel with a bunch of warnings or an incomplete wheel (package-data is not included). Any ideas for that? Thank you |
Per documentation What command are you running, that results in the errors / warnings?
|
yes, using |
The difference is mainly on An new-style configuration that works as expected (full wheel, no discover warnings) includes: [tool.setuptools]
license-files = [ "LICENSE" ]
include-package-data = false
[tool.setuptools.package-data]
xmlschema = [
'py.typed',
'locale/**/*.mo',
'locale/**/*.po',
'schemas/*/*.xsd',
'extras/templates/*/*.jinja'
]
[tool.setuptools.packages.find]
include = ["xmlschema*"]
namespaces = false The alternative with [tool.setuptools]
license-files = [ "LICENSE" ]
[tool.setuptools.exclude-package-data]
xmlschema = ["xmlschema.egg-info*"]
[tool.setuptools.packages.find]
include = ["xmlschema*"] but warnings appear adding |
Fixes #435
I migrated the information found in
setup.py
topyproject.toml
.What do you think?
Tasks
.coveragerc
mypy.ini
tool.setuptools.license-files
key