-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
64 lines (53 loc) · 2.04 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
54
55
56
57
58
59
60
61
62
63
64
from os import path
from setuptools import setup
supported_versions = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
basedir = path.abspath(path.dirname(__file__))
long_description = ''
requirements = []
requirements_path = path.join(basedir, 'requirements')
with open(path.join(basedir, path.join('flask_datepicker', 'about.py'))) as f:
exec(f.read())
with open(path.join(basedir, 'README.md')) as f:
long_description += f.read()
if path.isdir(requirements_path):
with open(path.join(requirements_path, 'main.txt')) as f:
requirements += [line for line in f.read().split('\n') if line]
else:
requires_path = path.join(
path.join(basedir, "Flask_Datepicker.egg-info"), "requires.txt"
)
with open(requires_path) as f:
requirements += [line for line in f.read().split("\n") if line]
supported_python_classifiers = [
"Programming Language :: Python :: {0}".format(v) for v in supported_versions
]
setup(
name='Flask-Datepicker',
version=__version__, # noqa
url='https://github.com/mrf345/flask_datepicker/',
download_url='https://github.com/mrf345/flask_datepicker/archive/%s.tar.gz'
% __version__, # noqa
license=__license__, # noqa
author=__author__, # noqa
author_email=__email__, # noqa
description=__doc__, # noqa
long_description=long_description,
long_description_content_type='text/markdown',
packages=['flask_datepicker'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=requirements,
setup_requires=requirements,
keywords=['flask', 'extension', 'date', 'picker', 'jquery-ui', 'datepicker'],
classifiers=[
*supported_python_classifiers,
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)