-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (40 loc) · 1.43 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
import os
import setuptools
NAME = 'anecapi'
DESCRIPTION = 'Russian anecdotes and jokes'
URL = 'https://github.com/suborofu/anecAPI'
EMAIL = '[email protected]'
AUTHOR = 'suborofu'
REQUIRES_PYTHON = '>=3.6'
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md'), 'r', encoding='utf-8') as file:
long_description = '\n' + file.read()
with open(os.path.join(here, 'VERSION'), 'r', encoding='utf-8') as file:
VERSION = '.'.join([d for d in str(int(''.join(file.read().split('.')), 10) + 1).rjust(3, '0')])
setuptools.setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
author=AUTHOR,
author_email=EMAIL,
python_requires=REQUIRES_PYTHON,
packages=["anecAPI"],
url=URL,
include_package_data=True,
license='MIT',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Text Processing :: Linguistic',
],
)
with open(os.path.join(here, 'VERSION'), 'w', encoding='utf-8') as file:
file.write(VERSION)