Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (46 loc) · 1.74 KB
/
Copy pathsetup.py
File metadata and controls
50 lines (46 loc) · 1.74 KB
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
import setuptools
import systempath as i
from systempath import Content
idoc: list = i.__doc__.split('\n')
for index, line in enumerate(idoc):
if line.startswith('@version: ', 4):
version = line.split()[-1]
break
_, author, email = idoc[index + 1].split()
source = idoc[index + 2].split()[-1]
setuptools.setup(
name=i.__name__,
version=version,
author=author,
author_email=email,
license='Apache 2.0',
url='http://gqylpy.com',
project_urls={'Source': source},
description='Operating system paths and files.',
long_description=open('README.md', encoding='utf8').read(),
long_description_content_type='text/markdown',
packages=[i.__name__],
python_requires='>=3.8, <4',
install_requires=[x.decode() for x in Content('requirements.txt') if x],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: Chinese (Simplified)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System',
'Topic :: System :: Filesystems',
'Topic :: System :: Operating System',
'Topic :: System :: Operating System Kernels :: Linux',
'Topic :: System :: Systems Administration :: Authentication/Directory '
':: LDAP',
'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'
]
)