1
+ from setuptools import setup
2
+ import re
3
+
4
+ requirements = []
5
+ with open ('requirements.txt' ) as f :
6
+ requirements = f .read ().splitlines ()
7
+
8
+ version = ''
9
+ with open ('pluralkit/__init__.py' ) as f :
10
+ version = re .search (r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]' , f .read (), re .MULTILINE ).group (1 )
11
+
12
+ if not version :
13
+ raise RuntimeError ('version is not set' )
14
+
15
+ readme = ''
16
+ with open ('README.md' ) as f :
17
+ readme = f .read ()
18
+
19
+ extras_require = {
20
+ 'docs' : [
21
+ 'mkdocs==1.1.2' ,
22
+ 'mkdocs-git-revision-date-plugin==0.3.1' ,
23
+ 'mkdocs-material==6.2.5' ,
24
+ 'mkdocs-material-extensions==1.0.1' ,
25
+ 'pymdown-extensions==8.1'
26
+ ]
27
+ }
28
+
29
+ setup (name = 'pluralkit.py' ,
30
+ author = 'Johnystar' ,
31
+ url = 'https://github.com/Johnystar/pluralkit.py' ,
32
+ project_urls = {
33
+ "Documentation" : "https://pluralkit.johnystar.moe/en/latest/" ,
34
+ "Issue tracker" : "https://github.com/Johnystar/pluralkit.py/issues" ,
35
+ },
36
+ version = version ,
37
+ packages = ['pluralkit' ],
38
+ license = 'MIT' ,
39
+ description = 'A Python wrapper for the PluralKit API' ,
40
+ long_description = readme ,
41
+ long_description_content_type = "text/markdown" ,
42
+ install_requires = requirements ,
43
+ extras_require = extras_require ,
44
+ python_requires = '>=3.5.3' ,
45
+ classifiers = [
46
+ 'Development Status :: 1 - Planning' ,
47
+ 'License :: OSI Approved :: MIT License' ,
48
+ 'Intended Audience :: Developers' ,
49
+ 'Natural Language :: English' ,
50
+ 'Operating System :: OS Independent' ,
51
+ 'Programming Language :: Python :: 3.5' ,
52
+ 'Programming Language :: Python :: 3.6' ,
53
+ 'Programming Language :: Python :: 3.7' ,
54
+ 'Programming Language :: Python :: 3.8' ,
55
+ 'Topic :: Internet' ,
56
+ 'Topic :: Software Development :: Libraries' ,
57
+ 'Topic :: Software Development :: Libraries :: Python Modules' ,
58
+ 'Topic :: Utilities' ,
59
+ ]
60
+ )
0 commit comments