-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup.py
53 lines (43 loc) · 1.71 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
"""An FTP client library for MicroPython
This is an adaption of the 'ftplib' module from the CPython standard library to
MicroPython. Apart from making it compatible with the 'socket' module
implementation of MicroPython and removing the use of the 're' library, some
parts of the original library have been removed and the code and docstrings
have been cleaned up somewhat.
The 'FTP_SSL' class has been removed completely and so has the 'all_errors'
module variable. The test code has been moved to a separate script and reworked
too. The 'ftpcp' function has been moved to the 'ftpcp.py' module.
A new FTP-over-TLS implementation has been added based on the present
implementation in the CPython standard library, but has been extensively
reworked as well.
The code has been tested under the following MicroPython ports against the FTP
server from the 'pyftpdlib' package.
* unix
* stm32 (using W5500 ethernet module)
* esp8266
* esp32
* rp2 (Raspberry Pi Pico W)
For the esp8266 port, use the specially adapted modules in the the `esp`
sub-directory.
FTP-over-SSL support for esp32 is may or may not actually work, depending on
the installed MicroPython firmware version and the amount of available RAM on
the board used.
"""
from setuptools import setup
setup(
name='micropython-ftplib',
version='0.3.0',
description=__doc__.splitlines()[0],
long_description="".join(__doc__.splitlines()[2:]),
url='https://github.com/SpotlightKid/micropython-ftplib',
author='Guido van Rossum, et al.',
maintainer='Christopher Arndt',
maintainer_email='[email protected]',
license='Python Software Foundation License',
py_modules=[
'ftpcp',
'ftplib',
'ftplibtls',
'ftpuload',
]
)