forked from fraoustin/sphinx_fontawesome
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
43 lines (39 loc) · 1.29 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import codecs
from setuptools import setup, find_packages
name = "sphinx_fontawesome"
__version_info__ = (0, 0, 6)
version = '.'.join([str(val) for val in __version_info__])
desc = "add directive for fontawesome in sphinx"
urlpkg = "https://github.com/fraoustin/sphinx_fontawesome"
here = os.path.abspath(os.path.dirname(__file__))
# README AND CHANGES
with open(os.path.join(here, 'README.rst')) as readme:
with open(os.path.join(here, 'CHANGES.rst')) as changelog:
long_description = readme.read() + '\n\n' + changelog.read()
# REQUIREMENTS
with open('REQUIREMENTS.txt') as f:
required = f.read().splitlines()
# CLASSIFIERS
with open('CLASSIFIERS.txt') as f:
classified = f.read().splitlines()
# AUTHORS
with open('AUTHORS.txt') as f:
data = f.read().splitlines()
authors = ','.join([i.split('::')[0] for i in data])
authors_email = ','.join([i.split('::')[1] for i in data])
setup(
name = name,
version = version,
packages = find_packages(),
author = authors,
author_email = authors_email,
description = desc,
long_description= long_description,
include_package_data=True,
install_requires=required,
url = urlpkg,
classifiers=classified,
)