-
Notifications
You must be signed in to change notification settings - Fork 12
[no squashing please] Introduce simple pyproject.toml packaging
#20
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
654b96e
79750ba
6676ac6
f441f67
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| /dist/ | ||
| /pydf.egg-info/ |
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,47 @@ | ||||||||||||
| [project] | ||||||||||||
| name = "pydf" | ||||||||||||
| description = "df(1) clone with colour output" | ||||||||||||
| version = "15" # keep in sync with function "version" in file "pydf" | ||||||||||||
| readme = { file = "README", content-type = "text/plain" } | ||||||||||||
| license = "CC-PDDC" | ||||||||||||
| license-files = ["COPYING"] | ||||||||||||
| authors = [ | ||||||||||||
| { name = "Radovan Garabík", email = "garabik@kassiopeia.juls.savba.sk" }, | ||||||||||||
| ] | ||||||||||||
| requires-python = ">=3.10" | ||||||||||||
| classifiers = [ | ||||||||||||
| "Development Status :: 5 - Production/Stable", | ||||||||||||
| "Environment :: Console", | ||||||||||||
| "Intended Audience :: End Users/Desktop", | ||||||||||||
| "Intended Audience :: System Administrators", | ||||||||||||
| "Operating System :: POSIX :: Linux", | ||||||||||||
| "Programming Language :: Python :: 3", | ||||||||||||
| "Programming Language :: Python :: 3.10", | ||||||||||||
| "Programming Language :: Python :: 3.11", | ||||||||||||
| "Programming Language :: Python :: 3.12", | ||||||||||||
| "Programming Language :: Python :: 3.13", | ||||||||||||
| "Programming Language :: Python :: 3.14", | ||||||||||||
|
Comment on lines
+19
to
+23
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.
Suggested change
I'd avoid these for maintainability.
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. @k4rtik adding support for 3.15 and dropping support for 3.10 needs touching some files in any case and this is a place where I would know to check and the fix being trivial: I'm touching these in a number of projects and that part has never been a personal pain point for me. I'm good with keeping or dropping them here, with a preference to keep. @garabik how do you feel about these? |
||||||||||||
| "Programming Language :: Python :: 3 :: Only", | ||||||||||||
| "Topic :: System", | ||||||||||||
| "Topic :: System :: Filesystems", | ||||||||||||
| "Topic :: System :: Systems Administration", | ||||||||||||
| "Topic :: Utilities", | ||||||||||||
| ] | ||||||||||||
| keywords = ["df", "disk space", "colours", "filesystems"] | ||||||||||||
|
|
||||||||||||
| [project.urls] | ||||||||||||
| "Homepage" = "https://github.com/garabik/pydf" | ||||||||||||
| "Git Repository" = "https://github.com/garabik/pydf" | ||||||||||||
| "Issue Tracker" = "https://github.com/garabik/pydf/issues" | ||||||||||||
|
|
||||||||||||
| [tool.setuptools.data-files] | ||||||||||||
| "bin" = ["pydf"] | ||||||||||||
| "etc" = ["pydfrc"] # best effort | ||||||||||||
| "share/man/man1" = ["pydf.1"] | ||||||||||||
|
|
||||||||||||
| [tool.setuptools.packages.find] | ||||||||||||
| include = [] | ||||||||||||
|
|
||||||||||||
| [build-system] | ||||||||||||
| requires = ["setuptools>=77"] | ||||||||||||
| build-backend = "setuptools.build_meta" | ||||||||||||
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.
According to
vermin, 3.4 is the min version supported:where
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.
@k4rtik interesting command! I would like to stick to
>=3.10because <=3.9 is very dead: https://endoflife.date/pythonThere 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.
Yes, I am aware of that. The INSTALL file currently says this project needs at least 3.1, so I thought there might be an interest in supporting older versions for a system utility like pydf.
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.
My personal vote for killing all remains of <3.10 with fire. I see your point about things being in sync. The PR here is in sync with CI is currently doing. @garabik are you on board with me dropping official remains of <3.10 support (a) in here or (b) in a follow-up PR?
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 very much agree with @k4rtik there is an interest in supporting older python versions (I am myself in such a position, I have accounts on some servers that Are Not To Be Touched with upgrades). Having said that, I agree with dropping <3.10 support officially, esp. for pypi, as long as we do not introduce syntax errors into the tool itself needlessly...