-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Migrate metadata from setup.py to setup.cfg #863
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
44fcf04
Migrate metadata from setup.py to setup.cfg
cclauss 4f78bba
version = attr: oauthlib.__version__
cclauss 5a2eaea
Migrate metadata from setup.py to setup.cfg
cclauss 1146a12
python -m build
cclauss c26a45e
Update setup.cfg
auvipy a07db1e
Update setup.cfg
auvipy 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 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 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 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,12 +1,59 @@ | ||
[metadata] | ||
name = oauthlib | ||
version = attr: oauthlib.__version__ | ||
author = The OAuthlib Community | ||
author_email = idan@gazit.me | ||
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. we can use the email of two current active maintainer here 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. @JonathanHuot Your call on changing the Author email address? |
||
description = A generic, spec-compliant, thorough implementation of the OAuth request-signing logic | ||
license = BSD-3-Clause | ||
license_files = LICENSE | ||
long_description = file: README.rst | ||
long_description_content_type = text/x-rst | ||
maintainer = Asif Saif Uddin, Jonathan Huot | ||
maintainer_email = auvipy@gmail.com | ||
url = https://github.com/oauthlib/oauthlib | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Environment :: Web Environment | ||
Intended Audience :: Developers | ||
License :: OSI Approved | ||
License :: OSI Approved :: BSD License | ||
Operating System :: MacOS | ||
Operating System :: POSIX | ||
Operating System :: POSIX :: Linux | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
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 :: Only | ||
Programming Language :: Python :: Implementation | ||
Programming Language :: Python :: Implementation :: CPython | ||
Programming Language :: Python :: Implementation :: PyPy | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
platforms = any | ||
|
||
[options] | ||
packages = find: | ||
python_requires = >=3.6 | ||
|
||
[options.packages.find] | ||
exclude = docs; tests; tests.* | ||
|
||
[options.extras_require] | ||
rsa = cryptography>=3.0.0 | ||
signals = blinker>=1.4.0 | ||
signedtoken = cryptography>=3.0.0; pyjwt>=2.0.0,<3 | ||
|
||
[isort] | ||
combine_as_imports = true | ||
default_section = THIRDPARTY | ||
include_trailing_comma = true | ||
known_first_party = oauthlib | ||
known_tests = tests | ||
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,TESTS,LOCALFOLDER | ||
line_length = 79 | ||
multi_line_output = 5 | ||
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,TESTS,LOCALFOLDER |
This file contains 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,68 +1,5 @@ | ||
#!/usr/bin/env python3 | ||
# Hack because logging + setuptools sucks. | ||
import contextlib | ||
with contextlib.suppress(ImportError): | ||
import multiprocessing | ||
|
||
from setuptools import setup | ||
|
||
from os.path import dirname, join | ||
|
||
from setuptools import find_packages, setup | ||
|
||
import oauthlib | ||
|
||
|
||
def fread(fn): | ||
with open(join(dirname(__file__), fn), 'r') as f: | ||
return f.read() | ||
|
||
|
||
rsa_require = ['cryptography>=3.0.0'] | ||
signedtoken_require = ['cryptography>=3.0.0', 'pyjwt>=2.0.0,<3'] | ||
signals_require = ['blinker>=1.4.0'] | ||
|
||
setup( | ||
name='oauthlib', | ||
version=oauthlib.__version__, | ||
description='A generic, spec-compliant, thorough implementation of the OAuth request-signing logic', | ||
long_description=fread('README.rst'), | ||
long_description_content_type='text/x-rst', | ||
author='The OAuthlib Community', | ||
author_email='idan@gazit.me', | ||
maintainer='Ib Lundgren', | ||
maintainer_email='ib.lundgren@gmail.com', | ||
url='https://github.com/oauthlib/oauthlib', | ||
platforms='any', | ||
license='BSD-3-Clause', | ||
packages=find_packages(exclude=('docs', 'tests', 'tests.*')), | ||
python_requires='>=3.6', | ||
extras_require={ | ||
'rsa': rsa_require, | ||
'signedtoken': signedtoken_require, | ||
'signals': signals_require, | ||
}, | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Web Environment', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved', | ||
'License :: OSI Approved :: BSD License', | ||
'Operating System :: MacOS', | ||
'Operating System :: POSIX', | ||
'Operating System :: POSIX :: Linux', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'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 :: Only', | ||
'Programming Language :: Python :: Implementation', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Programming Language :: Python :: Implementation :: PyPy', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
] | ||
) | ||
setup() |
This file contains 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
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.
do this provide both sdist bdist_wheel at once?
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.
https://pypa-build.readthedocs.io
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 saw that before, but just asking out of curiosity, do that provide same functionalities in a simpler new way?
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.
build
is the PyPA default tool for doing Python builds without asetup.py
but there are many other ways to do builds. I suggest we look at the build results to see if they fit our purposes.