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: Modernize, use setuptools 69 #428

Merged
merged 3 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added canopen/py.typed
Empty file.
38 changes: 36 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,40 @@
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]
requires = ["setuptools>=69", "wheel", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[project]
name = "canopen"
authors = [
{name = "Christian Sandberg", email = "[email protected]"},

Choose a reason for hiding this comment

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

Feel free to add more people here. 🙂

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Alright, I added myself and @af-silva, completing the top-three list of contributors according to GitHub.

Email address taken from one of your commits, @af-silva, hope that's alright?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@acolomb It is ok :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I counted up the PRs that go into this release, and a large fraction of them are mine. Please feel free to use my name and email ([email protected]) in any release notes.

]
description = "CANopen stack implementation"
readme = "README.rst"
requires-python = ">=3.6"
license = {file = "LICENSE.txt"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering",
]
dependencies = [
"python-can >= 3.0.0",
]
dynamic = ["version"]

[project.urls]
documentation = "https://canopen.readthedocs.io/en/stable/"
repository = "https://github.com/christiansandberg/canopen"

[tool.setuptools_scm]
write_to = "canopen/_version.py"
version_file = "canopen/_version.py"

[tool.pytest.ini_options]
testpaths = [
"test",
]
filterwarnings = [
"ignore::DeprecationWarning",

Choose a reason for hiding this comment

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

Could this be useful to see anyway?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe so. I suggest we leave it be until after the release. The only warnings I get currently are for datetime.utcnow() and the bustype argument to can.interface.Bus.

acolomb marked this conversation as resolved.
Show resolved Hide resolved
]
29 changes: 0 additions & 29 deletions setup.cfg

This file was deleted.

Loading