-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: Migrate to setup.cfg * chore: Clean up dependencies * build: Use requirements.txt in setup.cfg * ci: Use build package instead of setup.py * build: Include data files
- Loading branch information
Showing
9 changed files
with
68 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ include tests/valid/* | |
include tox.ini | ||
include requirements.txt | ||
include xml2rfc/data/* | ||
include xml2rfc/templates/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,51 @@ | ||
[metadata] | ||
name = xml2rfc | ||
version = 3.17.0 | ||
description = xml2rfc generates RFCs and IETF drafts from document source in XML according to the IETF xml2rfc v2 and v3 vocabularies. | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
keywords = ietf, rfc, id, internet-draft, xml, xml2rfc | ||
author = Henrik Levkowetz | ||
author_email = tools-discuss@ietf.org | ||
maintainer = Kesara Rathnayake | ||
maintainer_email = kesara@staff.ietf.org | ||
url = /~https://github.com/ietf-tools/xml2rfc | ||
download_url = /~https://github.com/ietf-tools/xml2rfc/releases | ||
license = Revised BSD License | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Environment :: Console | ||
Operating System :: MacOS :: MacOS X | ||
Operating System :: Microsoft :: Windows | ||
Operating System :: POSIX :: Linux | ||
Programming Language :: Python | ||
Topic :: Text Processing | ||
Topic :: Text Processing :: Markup :: XML | ||
License :: OSI Approved :: BSD License | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
|
||
[options] | ||
packages = xml2rfc, xml2rfc/writers, xml2rfc/util, xml2rfc/uniscripts, xml2rfc/data, xml2rfc/templates | ||
zip_safe = False | ||
include_package_data = True | ||
install_requires = file: requirements.txt | ||
|
||
[options.package_data] | ||
* = | ||
data/* | ||
templates/* | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
xml2rfc = xml2rfc.run:main | ||
|
||
[options.extras_require] | ||
pdf = weasyprint>=53.0,!=57.0 | ||
|
||
[bdist_wheel] | ||
universal = 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,5 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# ------------------------------------------------------- | ||
# Copyright The IETF Trust 2011-2022, All Rights Reserved | ||
# ------------------------------------------------------- | ||
|
||
import os | ||
from codecs import open | ||
from setuptools import setup | ||
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 | ||
|
||
description = "Xml2rfc generates RFCs and IETF drafts from document source in XML according to the IETF xml2rfc v2 and v3 vocabularies." | ||
|
||
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() | ||
|
||
|
||
setup( | ||
# Package metadata | ||
name='xml2rfc', | ||
author='Henrik Levkowetz', | ||
author_email='tools-discuss@ietf.org', | ||
maintainer = "Kesara Rathnayake", | ||
maintainer_email = "kesara@staff.ietf.org", | ||
url='/~https://github.com/ietf-tools/xml2rfc', | ||
description=description, | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
download_url = "/~https://github.com/ietf-tools/xml2rfc/releases", | ||
classifiers= [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Console', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX :: Linux', | ||
'Programming Language :: Python', | ||
'Topic :: Text Processing', | ||
'Topic :: Text Processing :: Markup :: XML', | ||
'License :: OSI Approved :: BSD License', | ||
|
||
# Specify the Python versions you support here. In particular, ensure | ||
# that you indicate whether you support Python 2, Python 3 or both. | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
], | ||
license="BSD-3-Clause", | ||
|
||
# Program data | ||
#scripts=['scripts/xml2rfc'], | ||
entry_points = { | ||
'console_scripts' : [ | ||
'xml2rfc = xml2rfc.run:main', | ||
], | ||
}, | ||
|
||
packages=['xml2rfc', 'xml2rfc/writers', 'xml2rfc/util', 'xml2rfc/uniscripts', ], | ||
package_data={'xml2rfc': [ | ||
'templates/*', | ||
'data/*', | ||
]}, | ||
|
||
install_requires = requirements, | ||
tests_require = [ | ||
'decorator', | ||
'dict2xml', | ||
'pycairo', | ||
'pypdf', | ||
'tox', | ||
'weasyprint', | ||
], | ||
|
||
zip_safe = False, # We're reading templates from a package directory. | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters