forked from ietf-tools/rfc-errata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
82 lines (66 loc) · 2.26 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env python
# -------------------------------------------------------
# Copyright The IETF Trust 2018-2022, All Rights Reserved
# -------------------------------------------------------
import os
from codecs import open
from setuptools import setup, find_packages
import sys
# This workaround is necessary to make setup.py upload work with non-ascii
# arguments to setup().
try:
reload(sys).setdefaultencoding("UTF-8")
except NameError:
pass
here = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the README file
with open(os.path.join(here, 'README.md'), encoding='utf-8') as file:
long_description = file.read()
# Get the requirements from the local requirements.txt file
with open(os.path.join(here, 'requirements.txt'), encoding='utf-8') as file:
requirements = file.read().splitlines()
import Rfc_Errata
setup(
name='rfc-errata',
description="Build html files from the text RFCs and the errata database.",
long_description=long_description,
long_description_content_type="text/markdown",
# The projects main homepage.
url='https://github.com/ietf-tools/rfc-errata',
download_url = "https://github.com/ietf-tools/rfc-errata/releases",
# Author details
author='Jim Schaad',
author_email='tools-discuss@ietf.org',
# Choose your license
license='BSD-3-Clause',
# Classifiers
classifiers = [
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Other Audience',
'Topic :: Text Processing',
'Topic :: Text Processing :: Markup :: XML',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3.6',
],
# What does your project relate to?
keywords='RFC errata',
#
packages=find_packages(exclude=['contrib', 'docs', 'Tests']),
# List run-time dependencies here.
install_requires=requirements,
python_requires='>=3.3',
# List additional gorups of dependencies here.
# extras_require=(
# 'dev':['twine',],
# ]
package_data={
'Rfc_Errata': ['templates/*', 'css/*']
},
include_package_data = True,
entry_points={
'console_scripts': [
'rfc-errata=Rfc_Errata.run:main'
]
},
zip_safe=False
)