Changeset 1915:174493b3a382


Ignore:
Timestamp:
Jan 3, 2020, 8:00:10 PM (3 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Tags:
tip
Message:
Reformat with Black
File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r1914 r1915  
    1818
    1919
    20 doc_files = [os.path.join("doc", name)
    21              for name in ["ftputil.txt", "ftputil.html",
    22                           "whats_new_in_ftputil_3.0.txt",
    23                           "whats_new_in_ftputil_3.0.html",
    24                           "README.txt"]]
     20doc_files = [
     21    os.path.join("doc", name)
     22    for name in [
     23        "ftputil.txt",
     24        "ftputil.html",
     25        "whats_new_in_ftputil_3.0.txt",
     26        "whats_new_in_ftputil_3.0.html",
     27        "README.txt",
     28    ]
     29]
    2530
    26 doc_files_are_present = all((os.path.exists(doc_file)
    27                             for doc_file in doc_files))
     31doc_files_are_present = all((os.path.exists(doc_file) for doc_file in doc_files))
    2832
    2933if "install" in sys.argv[1:] and not doc_files_are_present:
     
    3337
    3438core.setup(
    35   # Installation data
    36   name=_name,
    37   version=_version,
    38   packages=[_package],
    39   package_dir={_package: _package},
    40   data_files=[("doc/ftputil", doc_files)],
    41   # Metadata
    42   author="Stefan Schwarzer",
    43   author_email="sschwarzer@sschwarzer.net",
    44   url="https://ftputil.sschwarzer.net/",
    45   description="High-level FTP client library (virtual file system and more)",
    46   keywords="FTP, client, library, virtual file system",
    47   license="Open source (revised BSD license)",
    48   platforms=["Pure Python"],
    49   # See https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
    50   python_requieres=">=3.6",
    51   long_description="""\
     39    # Installation data
     40    name=_name,
     41    version=_version,
     42    packages=[_package],
     43    package_dir={_package: _package},
     44    data_files=[("doc/ftputil", doc_files)],
     45    # Metadata
     46    author="Stefan Schwarzer",
     47    author_email="sschwarzer@sschwarzer.net",
     48    url="https://ftputil.sschwarzer.net/",
     49    description="High-level FTP client library (virtual file system and more)",
     50    keywords="FTP, client, library, virtual file system",
     51    license="Open source (revised BSD license)",
     52    platforms=["Pure Python"],
     53    # See https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
     54    python_requieres=">=3.6",
     55    long_description="""\
    5256ftputil is a high-level FTP client library for the Python programming
    5357language. ftputil implements a virtual file system for accessing FTP servers,
     
    5660shutil modules. ftputil has convenience functions for conditional uploads
    5761and downloads, and handles FTP clients and servers in different timezones.""",
    58   download_url=
    59     "http://ftputil.sschwarzer.net/trac/attachment/wiki/Download/"
     62    download_url="http://ftputil.sschwarzer.net/trac/attachment/wiki/Download/"
    6063    "{}-{}.tar.gz?format=raw".format(_name, _version),
    61   classifiers=[
    62     # Commented-out for beta release
    63     # "Development Status :: 5 - Production/Stable",
    64     "Development Status :: 4 - Beta",
    65     "Environment :: Other Environment",
    66     "Intended Audience :: Developers",
    67     "Intended Audience :: System Administrators",
    68     "License :: OSI Approved :: BSD License",
    69     "Operating System :: OS Independent",
    70     "Programming Language :: Python",
    71     "Programming Language :: Python :: 3 :: Only",
    72     "Topic :: Internet :: File Transfer Protocol (FTP)",
    73     "Topic :: Software Development :: Libraries :: Python Modules",
    74     "Topic :: System :: Filesystems",
    75     ]
     64    classifiers=[
     65        # Commented-out for beta release
     66        # "Development Status :: 5 - Production/Stable",
     67        "Development Status :: 4 - Beta",
     68        "Environment :: Other Environment",
     69        "Intended Audience :: Developers",
     70        "Intended Audience :: System Administrators",
     71        "License :: OSI Approved :: BSD License",
     72        "Operating System :: OS Independent",
     73        "Programming Language :: Python",
     74        "Programming Language :: Python :: 3 :: Only",
     75        "Topic :: Internet :: File Transfer Protocol (FTP)",
     76        "Topic :: Software Development :: Libraries :: Python Modules",
     77        "Topic :: System :: Filesystems",
     78    ],
    7679)
Note: See TracChangeset for help on using the changeset viewer.