-
Notifications
You must be signed in to change notification settings - Fork 48
chore: consolidate package metadata into pyproject.toml (PEP 621) #473
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
Open
erdemtuna
wants to merge
8
commits into
Adyen:main
Choose a base branch
from
erdemtuna:feature/471-consolidate-pyproject
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
82a1043
Initialize PAW workflow for Consolidate Pyproject Metadata
erdemtuna afa5b8b
Add spec research and specification for pyproject consolidation
erdemtuna 1b45942
Add code research and implementation plan
erdemtuna 081a786
Strengthen plan success criteria per multi-model review
erdemtuna 62fecd7
Fix spec per cross-artifact review findings
erdemtuna 7b70aa5
chore: consolidate package metadata into pyproject.toml (PEP 621)
erdemtuna fcad968
Add technical documentation (Phase 2)
erdemtuna 989f7dc
chore: remove PAW workflow artifacts from tracking
erdemtuna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,4 +10,5 @@ venv/ | |
| .env | ||
| test.py | ||
| build/ | ||
| *.egg-info/ | ||
| *.egg-info/ | ||
| .paw/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,45 +1,2 @@ | ||
| from setuptools import find_packages, setup | ||
|
|
||
| setup( | ||
| name="Adyen", | ||
| packages=find_packages(include=["Adyen*"], exclude=["tests", "tests.*"]), | ||
| version="15.0.0", | ||
| maintainer="Adyen", | ||
| maintainer_email="support@adyen.com", | ||
| description="Adyen Python Api", | ||
| long_description="A Python client library for accessing Adyen APIs", | ||
| author="Adyen", | ||
| author_email="support@adyen.com", | ||
| url="https://github.com/Adyen/adyen-python-api-library", | ||
| keywords=["payments", "adyen", "fintech"], | ||
| python_requires=">=3.8", | ||
| install_requires=[], | ||
| extras_require={ | ||
| "requests": ["requests>=2.25.0"], | ||
| "pycurl": ["pycurl>=7.43.0"], | ||
| "test": [ | ||
| "pytest>=7.0.0", | ||
| "pytest-cov>=4.0.0", | ||
| "mock>=4.0.0", | ||
| "requests>=2.25.0", | ||
| ], | ||
| "dev": [ | ||
| "ruff>=0.4.4", | ||
| "pre-commit>=3.0.0", | ||
| ], | ||
| }, | ||
| classifiers=[ | ||
| "Development Status :: 5 - Production/Stable", | ||
| "Intended Audience :: Developers", | ||
| "Topic :: Software Development :: Libraries", | ||
| "License :: OSI Approved :: MIT License", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "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", | ||
| ], | ||
| ) | ||
| from setuptools import setup | ||
| setup() |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 updated
installtarget is missingpycurlandcoveralls, which were previously installed by default.pyproject.toml. To maintain the same development environment as before, it should be included in the extras list in thepip installcommand.pyproject.tomlentirely. To align with the goal of consolidating metadata, it should be added to thetestordevextras inpyproject.tomland then included here.If these were intentionally removed from the default installation, please disregard this, but usually
make installis expected to set up a complete environment for development and testing.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.
Both exclusions are intentional:
pycurl: Requires system-level
libcurl(libcurl4-openssl-dev) which is often not present on developer machines and causes install failures. It's adequately tested via tox's pycurl variant (tox -e py310-pycurl). Including it inmake installwould break the out-of-box dev setup on machines without libcurl.coveralls: Was a CI-only dependency not used in any local dev or test workflow — it's not in any
pyproject.tomlextras group and wasn't referenced in any Makefile target or CI workflow. Dropping it is intentional cleanup.The new
make installgives a complete local dev environment: editable install + requests + test deps + dev tools (ruff, pre-commit). Pycurl testing is handled by tox where the system dependency is explicitly set up.