mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 03:38:03 +01:00
Convert setup.py to setup.cfg, pyproject.toml
https://www.python.org/dev/peps/pep-0518/
This commit is contained in:
3
pyproject.toml
Normal file
3
pyproject.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
[build-system]
|
||||
requires = ["setuptools", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
58
setup.cfg
58
setup.cfg
@@ -1,6 +1,64 @@
|
||||
[metadata]
|
||||
name = asciinema
|
||||
version = 2.0.2
|
||||
# does not work with interpolation in `download_url` below
|
||||
#version = attr: asciinema.__version__
|
||||
author = Marcin Kulik
|
||||
author_email = m@ku1ik.com
|
||||
url = https://asciinema.org
|
||||
download_url =
|
||||
https://github.com/asciinema/asciinema/archive/v%(version)s.tar.gz
|
||||
description = Terminal session recorder
|
||||
description_file = README.md
|
||||
license = GNU GPLv3
|
||||
license_file = LICENSE
|
||||
long_description = file: README.md
|
||||
long_description_content_type = text/markdown; charset=UTF-8
|
||||
classifiers =
|
||||
Development Status :: 5 - Production/Stable
|
||||
Environment :: Console
|
||||
Intended Audience :: Developers
|
||||
Intended Audience :: System Administrators
|
||||
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
||||
Natural Language :: English
|
||||
Programming Language :: Python
|
||||
Programming Language :: Python :: 3
|
||||
Programming Language :: Python :: 3.3
|
||||
Programming Language :: Python :: 3.4
|
||||
Programming Language :: Python :: 3.5
|
||||
Programming Language :: Python :: 3.6
|
||||
Programming Language :: Python :: 3.7
|
||||
Programming Language :: Python :: 3.8
|
||||
Programming Language :: Python :: 3.9
|
||||
Topic :: System :: Shells
|
||||
Topic :: Terminals
|
||||
Topic :: Utilities'
|
||||
|
||||
[options]
|
||||
include_package_data = True
|
||||
packages =
|
||||
asciinema
|
||||
asciinema.asciicast
|
||||
asciinema.commands
|
||||
install_requires =
|
||||
|
||||
[options.package_data]
|
||||
asciinema = data/*.png
|
||||
|
||||
[options.entry_points]
|
||||
console_scripts =
|
||||
asciinema = asciinema.__main__:main
|
||||
|
||||
[options.data_files]
|
||||
share/doc/asciinema =
|
||||
CHANGELOG.md
|
||||
CODE_OF_CONDUCT.md
|
||||
CONTRIBUTING.md
|
||||
README.md
|
||||
doc/asciicast-v1.md
|
||||
doc/asciicast-v2.md
|
||||
share/man/man1 =
|
||||
man/asciinema.1
|
||||
|
||||
[pycodestyle]
|
||||
ignore = E501,E402,E722
|
||||
|
||||
58
setup.py
58
setup.py
@@ -1,58 +0,0 @@
|
||||
import asciinema
|
||||
import sys
|
||||
from setuptools import setup
|
||||
|
||||
if sys.version_info.major < 3:
|
||||
sys.exit('Python < 3 is unsupported.')
|
||||
|
||||
url_template = 'https://github.com/asciinema/asciinema/archive/v%s.tar.gz'
|
||||
requirements = []
|
||||
|
||||
with open('README.md', encoding='utf8') as file:
|
||||
long_description = file.read()
|
||||
|
||||
setup(
|
||||
name='asciinema',
|
||||
version=asciinema.__version__,
|
||||
packages=['asciinema', 'asciinema.commands', 'asciinema.asciicast'],
|
||||
license='GNU GPLv3',
|
||||
description='Terminal session recorder',
|
||||
long_description=long_description,
|
||||
long_description_content_type='text/markdown',
|
||||
author=asciinema.__author__,
|
||||
author_email='m@ku1ik.com',
|
||||
url='https://asciinema.org',
|
||||
download_url=(url_template % asciinema.__version__),
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'asciinema = asciinema.__main__:main',
|
||||
],
|
||||
},
|
||||
package_data={'asciinema': ['data/*.png']},
|
||||
data_files=[('share/doc/asciinema', ['CHANGELOG.md',
|
||||
'CODE_OF_CONDUCT.md',
|
||||
'CONTRIBUTING.md',
|
||||
'README.md',
|
||||
'doc/asciicast-v1.md',
|
||||
'doc/asciicast-v2.md']),
|
||||
('share/man/man1', ['man/asciinema.1'])],
|
||||
install_requires=requirements,
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Environment :: Console',
|
||||
'Intended Audience :: Developers',
|
||||
'Intended Audience :: System Administrators',
|
||||
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
|
||||
'Natural Language :: English',
|
||||
'Programming Language :: Python',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Programming Language :: Python :: 3.7',
|
||||
'Topic :: System :: Shells',
|
||||
'Topic :: Terminals',
|
||||
'Topic :: Utilities'
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user