-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use modern pyproject.toml package metadata
- Loading branch information
Showing
6 changed files
with
37 additions
and
44 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
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,27 @@ | ||
[project] | ||
|
||
name = "pyaml" | ||
version = "23.05.05" | ||
|
||
description = "PyYAML-based module to produce a bit more pretty and readable YAML-serialized data" | ||
authors = [{name="Mike Kazantsev", email="mk.fraggod@gmail.com"}] | ||
license = {text="WTFPL"} | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"License :: Public Domain", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.6", | ||
"Topic :: Software Development", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Utilities" ] | ||
keywords = ["yaml", "serialization", "pretty", "print", "format", "human", "readability"] | ||
|
||
dependencies = ["PyYAML"] | ||
dynamic = ["readme"] | ||
|
||
[tool.setuptools.dynamic] | ||
readme = {file="README.rst"} | ||
|
||
[project.optional-dependencies] | ||
anchors = ["unidecode"] |
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,38 +1,3 @@ | ||
#!/usr/bin/env python | ||
|
||
from setuptools import setup, find_packages | ||
import os, io | ||
|
||
pkg_root = os.path.dirname(__file__) | ||
|
||
# Error-handling here is to allow package to be built w/o README included | ||
try: readme = io.open(os.path.join(pkg_root, 'README.rst'), encoding='utf-8').read() | ||
except IOError: readme = '' | ||
|
||
setup( | ||
|
||
name = 'pyaml', | ||
version = '21.10.2', | ||
author = 'Mike Kazantsev', | ||
author_email = 'mk.fraggod@gmail.com', | ||
license = 'WTFPL', | ||
keywords = 'yaml serialization pretty print format human readable readability', | ||
url = 'https://github.com/mk-fg/pretty-yaml', | ||
|
||
description = 'PyYAML-based module to' | ||
' produce pretty and readable YAML-serialized data', | ||
long_description = readme, | ||
|
||
classifiers = [ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.5', | ||
'Topic :: Software Development', | ||
'Topic :: Software Development :: Libraries :: Python Modules' ], | ||
|
||
install_requires = ['PyYAML'], | ||
packages = find_packages(), | ||
package_data = {'': ['README.txt']}, | ||
exclude_package_data = {'': ['README.*']} ) | ||
# For compatibility only - see pyproject.toml file instead | ||
from setuptools import setup | ||
setup() |