Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge branch 'master' into add-python-requires
  • Loading branch information
avian2 committed Feb 16, 2022
commit a351b3491c6e24ac98297aad5e5432703f2167f8
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ classifiers =

[options]
packages = find:
python_requires = >=3.6
install_requires =
ecdsa != 0.15
rsa >=4.0, <5.0, !=4.4, !=4.1.1
Expand Down
70 changes: 1 addition & 69 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,72 +2,4 @@
from setuptools import setup


long_description = (Path(__file__).parent / "README.rst").read_text()


def get_packages(package):
"""
Return root package and all sub-packages.
"""
return [
dirpath
for dirpath, dirnames, filenames in os.walk(package)
if os.path.exists(os.path.join(dirpath, "__init__.py"))
]


pyasn1 = ["pyasn1"]
extras_require = {
"cryptography": ["cryptography>=3.4.0"],
"pycrypto": ["pycrypto >=2.6.0, <2.7.0"] + pyasn1,
"pycryptodome": ["pycryptodome >=3.3.1, <4.0.0"] + pyasn1,
}
# TODO: work this into the extras selection instead.
install_requires = ["ecdsa != 0.15", "rsa"] + pyasn1


setup(
name="python-jose",
author="Michael Davis",
author_email="[email protected]",
description="JOSE implementation in Python",
license="MIT",
keywords="jose jws jwe jwt json web token security signing",
url="http://github.com/mpdavis/python-jose",
packages=get_packages("jose"),
long_description=long_description,
project_urls={
"Documentation": "https://python-jose.readthedocs.io/en/latest/",
"Source": "https://github.com/mpdavis/python-jose/",
"Tracker": "https://github.com/mpdavis/python-jose/issues/",
"Changelog": "https://github.com/mpdavis/python-jose/blob/master/CHANGELOG.md",
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Utilities",
],
extras_require=extras_require,
setup_requires=[
"pytest-runner",
"setuptools>=39.2.0",
],
python_requires=">=3.6",
tests_require=[
"ecdsa != 0.15",
"pytest",
"pytest-cov",
"pytest-runner",
],
install_requires=install_requires,
)
setup()
You are viewing a condensed version of this merge commit. You can view the full changes here.