From 3e1e6828f764f349c16a3ad1f168b2b06ba5c3b0 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Fri, 3 Feb 2023 15:44:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'rest=5Fauth=5Fprovider/se?= =?UTF-8?q?tup.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rest_auth_provider/setup.py | 91 ++++--------------------------------- 1 file changed, 8 insertions(+), 83 deletions(-) diff --git a/rest_auth_provider/setup.py b/rest_auth_provider/setup.py index 0c9a862..b32445f 100644 --- a/rest_auth_provider/setup.py +++ b/rest_auth_provider/setup.py @@ -1,86 +1,11 @@ -"""A setuptools based setup module. -See: -https://packaging.python.org/en/latest/distributing.html -https://github.com/pypa/sampleproject -""" - -# Always prefer setuptools over distutils -from setuptools import setup, find_packages -from os import path -# io.open is needed for projects that support Python 2.7 -# It ensures open() defaults to text mode with universal newlines, -# and accepts an argument to specify the text encoding -# Python 3 only projects can skip this import -from io import open - -here = path.abspath(path.dirname(__file__)) - -# Get the long description from the README file -with open(path.join(here, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - -# Arguments marked as "Required" below must be included for upload to PyPI. -# Fields marked as "Optional" may be commented out. +from setuptools import setup setup( - # This is the name of your project. The first time you publish this - # package, this name will be registered for you. It will determine how - # users can install this project, e.g.: - # - # $ pip install sampleproject - # - # And where it will live on PyPI: https://pypi.org/project/sampleproject/ - # - # There are some restrictions on what makes a valid project name - # specification here: - # https://packaging.python.org/specifications/core-metadata/#name - name='rest_auth_provider', # Required - - # Versions should comply with PEP 440: - # https://www.python.org/dev/peps/pep-0440/ - # - # For a discussion on single-sourcing the version across setup.py and the - # project code, see - # https://packaging.python.org/en/latest/single_source_version.html - version='0.1.1', # Required - - # This is a one-line description or tagline of what your project does. This - # corresponds to the "Summary" metadata field: - # https://packaging.python.org/specifications/core-metadata/#summary - description='HTTP JSON REST Authenticator module for synapse', # Required - - # This should be a valid link to your project's main homepage. - # - # This field corresponds to the "Home-Page" metadata field: - # https://packaging.python.org/specifications/core-metadata/#home-page-optional - url='https://github.com/kamax-io/matrix-synapse-rest-auth', # Optional - - # This should be your name or the name of the organization which owns the - # project. - author='Maxime Dor', # Optional - - # Classifiers help users find your project by categorizing it. - # - # For a list of valid classifiers, see https://pypi.org/classifiers/ - classifiers=[ - # Pick your license as you wish - 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', - ], - - # This field adds keywords for your project which will appear on the - # project page. What does your project relate to? - # - # Note that this is a string of words separated by whitespace, not a list. - keywords='synapse matrix identity', # Optional - - # You can just specify package directories manually here if your project is - # simple. Or you can use find_packages(). - # - # Alternatively, if you just want to distribute a single Python file, use - # the `py_modules` argument instead as follows, which will expect a file - # called `my_module.py` to exist: - # - # py_modules=["my_module"], - # - py_modules=['rest_auth_provider'], # Required + name="rest_auth_provider", + version="0.0.1", + py_modules=['rest_auth_provider'], + description="Password Provider for Synapse fetching data from a REST endpoint", + include_package_data=True, + zip_safe=True, + install_requires=[], ) \ No newline at end of file