-
Notifications
You must be signed in to change notification settings - Fork 4
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 setup.cfg in favor of pyproject.toml #58
Conversation
|
pvlib-python uses |
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.
The new wheel file includes data
and test
folders, increasing file size to 1.8 MB versus 13 kB for the latest PyPI wheel.
pyproject.toml
Outdated
"Intended Audience :: Science/Research", | ||
] | ||
dependencies = [ | ||
'importlib-metadata; python_version<"3.10"', |
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.
Where did importlib-metadata
come from? Do we need it? I thought it was only needed for python<3.8.
pyproject.toml
Outdated
"setuptools>=42", | ||
"wheel" | ||
] | ||
requires = ["setuptools", "setuptools-scm"] |
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.
We should require >=61 for setuptools, since that's when it started supporting pyproject.toml
/PEP 621.
https://setuptools.pypa.io/en/stable/history.html#v61-0-0
pyproject.toml
Outdated
authors = [ | ||
{name = "Adam R. Jensen", email = "adam-r-j@hotmail.com"}, | ||
{name = "Kevin S. Anderson"}, | ||
] |
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 results in the wheel's METADATA
file including this, which doesn't seem quite right to me:
Author: Kevin S. Anderson
Author-email: "Adam R. Jensen" <adam-r-j@hotmail.com>
The v0.2.5 wheel on PyPI has this, which seems better to me:
Author: 'Adam R. Jensen, Kevin Anderson'
Author-email: adam-r-j@hotmail.com
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 seems like a strange behavior, see explanation below from this link. I've made my email in a separate email entry now.
If only name is provided, the value goes in Author or Maintainer as appropriate.
If only email is provided, the value goes in Author-email or Maintainer-email as appropriate.
If both email and name are provided, the value goes in Author-email or Maintainer-email as appropriate, with the format {name} <{email}>.
Multiple values should be separated by commas.
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.
In the twoaxistracking.egg-info/PKG-INFO
file this now lists as:
Author: Adam R. Jensen, Kevin S. Anderson
Author-email: adam-r-j@hotmail.com
@kandersolar I think this is done now. When I locally install the package using |
It will switch to 0.3.0 whenever we tag that version. See https://setuptools-scm.readthedocs.io/en/latest/usage/#default-versioning-scheme I want to take another look at the metadata in the distribution files. I'll do that today. |
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.
Looks OK to me, with one possible issue: docs
, twoaxistracking/data
, and twoaxistracking/tests
are now included in the dist files, increasing the wheel size from 12.5 kB to 2.8 MB. Should they continue to be excluded?
Ahh yes, I'll address that ASAP Update: this was caused by incorrect formatting of the |
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.
pyproject.toml
Outdated
[tool.setuptools.packages.find] | ||
exclude = [ | ||
"tests*", | ||
"data*", | ||
] |
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.
[tool.setuptools.packages.find] | |
exclude = [ | |
"tests*", | |
"data*", | |
] | |
[tool.setuptools] | |
include-package-data = false | |
[tool.setuptools.packages.find] | |
exclude = [ | |
"twoaxistracking.tests*", | |
"twoaxistracking.data*", | |
"docs*", | |
] |
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.
Whoops, exclude data*
as well
Closes #57