Skip to content

Commit a2115ed

Browse files
committed
forgot to push this
1 parent 8c59b60 commit a2115ed

File tree

5 files changed

+78
-11
lines changed

5 files changed

+78
-11
lines changed

docs/requirements.txt

-5
This file was deleted.

pluralkit/__init__.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
PluralKit API Wrapper
3+
~~~~~~~~~~~~~~~~~~~
4+
A basic wrapper for the PluralKit API.
5+
:copyright: (c) 2021-present Johnystar
6+
:license: MIT, see LICENSE for more details.
7+
"""
8+
9+
__title__ = 'pluralkit'
10+
__author__ = 'Johnystar'
11+
__license__ = 'MIT'
12+
__copyright__ = 'Copyright 2021-present Johnystar'
13+
__version__ = '2021.01.23.1'

.readthedocs.yml renamed to readthedocs.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ version: 2
77

88
mkdocs:
99
configuration: mkdocs.yml
10-
11-
# Optionally build your docs in additional formats such as PDF
12-
formats:
13-
- epub
14-
- pdf
10+
fail_on_warning: false
1511

1612
# Optionally set the version of Python and requirements required to build your docs
1713
python:
1814
version: 3.8
1915
install:
20-
- requirements: docs/requirements.txt
16+
- method: pip
17+
path: .
18+
extra_requirements:
19+
- docs

requirements.txt

Whitespace-only changes.

setup.py

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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

Comments
 (0)