René's URL Explorer Experiment


Title: Deprecated setuptools features are used · Issue #1653 · gitpython-developers/GitPython · GitHub

Open Graph Title: Deprecated setuptools features are used · Issue #1653 · gitpython-developers/GitPython

X Title: Deprecated setuptools features are used · Issue #1653 · gitpython-developers/GitPython

Description: This project currently uses deprecated features of setuptools, some of which may be removed in the future. Installing by running setup.py directly, as the instructions in README.md say to do and as is done in test_installation, is deprec...

Open Graph Description: This project currently uses deprecated features of setuptools, some of which may be removed in the future. Installing by running setup.py directly, as the instructions in README.md say to do and as...

X Description: This project currently uses deprecated features of setuptools, some of which may be removed in the future. Installing by running setup.py directly, as the instructions in README.md say to do and as...

Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/1653

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deprecated setuptools features are used","articleBody":"This project currently uses deprecated features of `setuptools`, some of which may be removed in the future.\r\n\r\n- **Installing by running `setup.py` directly**, as the instructions in `README.md` say to do and as is done in `test_installation`, is deprecated. Actual breakage due to this begins in Python 3.12, where although `setuptools` is still supported as a build backend and nontrivial logic can still be used in `setup.py`, global and virtual environments do not automatically have the `setuptools` package. (See the `ensurepip` item in the [list of removals in 3.12](https://docs.python.org/3.12/whatsnew/3.12.html#removed).) This is the cause of #1640. But the deprecation is not new as of Python 3.12. The following message appears during installation (with any Python version provided the installed `setuptools` version is not very old, but I used Python 3.11.5):\r\n\r\n  ```text\r\n  /home/ek/repos-wsl/GitPython/.venv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.\r\n  !!\r\n  \r\n          ********************************************************************************\r\n          Please avoid running ``setup.py`` directly.\r\n          Instead, use pypa/build, pypa/installer or other\r\n          standards-based tools.\r\n  \r\n          See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.\r\n          ********************************************************************************\r\n  \r\n  !!\r\n  ```\r\n\r\n  This could be worked around without a fix by adding `setuptools` as a development dependency, but an actual fix is straightforward, and there are some further benefits to using `pip install .` to install locally, including that `-e` can easily be passed to make the installation editable.\r\n\r\n- **Building by running `setup.py` directly** is, if I understand correctly, also deprecated. This is a less serious problem, but a true fix for this is also straightforward: the `build` module can be added as a development dependency and used for building the sdist and wheel in `Makefile`. The `setuptools` documentation [recommends using `build`](https://setuptools.pypa.io/en/latest/userguide/quickstart.html).\r\n\r\n- **The `tests_require` keyword argument** is deprecated and intended for removal in a future version of `setuptools`, as noted in the [`setuptools.setup` keyword arguments documentation](https://setuptools.pypa.io/en/latest/references/keywords.html).\r\n\r\n  This is already not achieving what appears intended or least hoped for (see #1652), and one reasonable way to fix this is to remove that argument altogether. But both the reliance on a deprecated feature and the absence of an automated way to install test dependencies as a group (without `pip install -r` commands) could be remedied by using a `test` *extra* rather than `tests_require`.\r\n\r\nAlthough I worry a bit about broad scope, it seems to me that it is natural to fix #1640, #1651, #1652, and this issue (which itself overlaps with #1640 and #1652, though is not limited to them) in a single pull request. I say this because there is significant overlap in the changes, and because decisions made in review should probably take the considerations of all these issues into account. I've opened #1654 for this.\r\n\r\nNote that while it is today discouraged to implement nontrivial logic in `setup.py`, and recommended to use `pyproject.toml` and/or `setup.cfg` for what has traditionally been done in `setup.py`, *I do not believe it is deprecated to make nontrivial use of `setup.py` as this project does*. Although it would be beneficial to define build and installation rules declaratively, I think that would be a much bigger change than needed to fix this issue. I have not attempted to do anything like that at this time.","author":{"url":"https://github.com/EliahKagan","@type":"Person","name":"EliahKagan"},"datePublished":"2023-09-10T18:40:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1653/GitPython/issues/1653"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ce782b5f-53cb-376d-fb79-97c382ee6d7e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id94EC:1E9D45:443D13:5F40D7:69695DD5
html-safe-noncef5e2c484816c79ce06fd7f24897439b7ac8641792cacf1d73f2713f3886800f2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEVDOjFFOUQ0NTo0NDNEMTM6NUY0MEQ3OjY5Njk1REQ1IiwidmlzaXRvcl9pZCI6IjQ4NTc0NDY3MTE3NTI3NDQ0MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbcc6a79114219e6daca192121772f4ac4ffddc717529a444922a8ed5b54e5fbc
hovercard-subject-tagissue:1889282750
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/1653/issue_layout
twitter:imagehttps://opengraph.githubassets.com/627e55515de7b365302632d194cbb09f1b71dcb718d89fa122452bd0f0a22e4a/gitpython-developers/GitPython/issues/1653
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/627e55515de7b365302632d194cbb09f1b71dcb718d89fa122452bd0f0a22e4a/gitpython-developers/GitPython/issues/1653
og:image:altThis project currently uses deprecated features of setuptools, some of which may be removed in the future. Installing by running setup.py directly, as the instructions in README.md say to do and as...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameEliahKagan
hostnamegithub.com
expected-hostnamegithub.com
None9db5f28da7e24035385d7f349f17890cbe016a939ddd7952be0f07b862094f5a
turbo-cache-controlno-preview
go-importgithub.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126087
octolytics-dimension-repository_nwogitpython-developers/GitPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126087
octolytics-dimension-repository_network_root_nwogitpython-developers/GitPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4e59fe66217d3c72925af2a341ae3a8f2b5b5b2a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/gitpython-developers/GitPython/issues/1653#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fissues%2F1653
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fissues%2F1653
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttps://github.com/gitpython-developers/GitPython/issues/1653
Reloadhttps://github.com/gitpython-developers/GitPython/issues/1653
Reloadhttps://github.com/gitpython-developers/GitPython/issues/1653
gitpython-developers https://github.com/gitpython-developers
GitPythonhttps://github.com/gitpython-developers/GitPython
Please reload this pagehttps://github.com/gitpython-developers/GitPython/issues/1653
Notifications https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Fork 964 https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Star 5k https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Code https://github.com/gitpython-developers/GitPython
Issues 169 https://github.com/gitpython-developers/GitPython/issues
Pull requests 8 https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/gitpython-developers/GitPython/security
Please reload this pagehttps://github.com/gitpython-developers/GitPython/issues/1653
Insights https://github.com/gitpython-developers/GitPython/pulse
Code https://github.com/gitpython-developers/GitPython
Issues https://github.com/gitpython-developers/GitPython/issues
Pull requests https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security https://github.com/gitpython-developers/GitPython/security
Insights https://github.com/gitpython-developers/GitPython/pulse
New issuehttps://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/1653
New issuehttps://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/1653
#1654https://github.com/gitpython-developers/GitPython/pull/1654
Deprecated setuptools features are usedhttps://github.com/gitpython-developers/GitPython/issues/1653#top
#1654https://github.com/gitpython-developers/GitPython/pull/1654
acknowledgedhttps://github.com/gitpython-developers/GitPython/issues?q=state%3Aopen%20label%3A%22acknowledged%22
https://github.com/EliahKagan
https://github.com/EliahKagan
EliahKaganhttps://github.com/EliahKagan
on Sep 10, 2023https://github.com/gitpython-developers/GitPython/issues/1653#issue-1889282750
list of removals in 3.12https://docs.python.org/3.12/whatsnew/3.12.html#removed
Python 3.12: ModuleNotFoundError: No module named 'setuptools' #1640https://github.com/gitpython-developers/GitPython/issues/1640
recommends using buildhttps://setuptools.pypa.io/en/latest/userguide/quickstart.html
setuptools.setup keyword arguments documentationhttps://setuptools.pypa.io/en/latest/references/keywords.html
Readme claims test dependencies are installed automatically #1652https://github.com/gitpython-developers/GitPython/issues/1652
#1640https://github.com/gitpython-developers/GitPython/issues/1640
#1651https://github.com/gitpython-developers/GitPython/issues/1651
#1652https://github.com/gitpython-developers/GitPython/issues/1652
#1640https://github.com/gitpython-developers/GitPython/issues/1640
#1652https://github.com/gitpython-developers/GitPython/issues/1652
#1654https://github.com/gitpython-developers/GitPython/pull/1654
acknowledgedhttps://github.com/gitpython-developers/GitPython/issues?q=state%3Aopen%20label%3A%22acknowledged%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.