feat: pyproject.toml
This commit is contained in:
parent
15598724bc
commit
41bb650d5b
3 changed files with 56 additions and 34 deletions
41
pyproject.toml
Normal file
41
pyproject.toml
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
[build-system]
|
||||||
|
build-backend = "flit_core.buildapi"
|
||||||
|
requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "tiramisu_cmdline_parser"
|
||||||
|
version = "0.5.0"
|
||||||
|
authors = [
|
||||||
|
{name = "Emmanuel Garette", email = "gnunux@gnunux.info"},
|
||||||
|
]
|
||||||
|
readme = "README.md"
|
||||||
|
description = "command-line parser using Tiramisu"
|
||||||
|
license = {file = "LICENSE"}
|
||||||
|
classifiers = [
|
||||||
|
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
|
||||||
|
"Programming Language :: Python",
|
||||||
|
"Programming Language :: Python :: 3.8",
|
||||||
|
"Programming Language :: Python :: 3.9",
|
||||||
|
"Programming Language :: Python :: 3.10",
|
||||||
|
"Programming Language :: Python :: 3.11",
|
||||||
|
"Programming Language :: Python :: 3.12",
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Operating System :: OS Independent",
|
||||||
|
"Natural Language :: English",
|
||||||
|
"Natural Language :: French",
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
"tiramisu ~= 5.0.0",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
Home = "https://forge.cloud.silique.fr/stove/tiramisu-cmdline-parser"
|
||||||
|
|
||||||
|
[tool.commitizen]
|
||||||
|
name = "cz_conventional_commits"
|
||||||
|
tag_format = "$version"
|
||||||
|
version_scheme = "pep440"
|
||||||
|
version_provider = "pep621"
|
||||||
|
update_changelog_on_bump = true
|
34
setup.py
34
setup.py
|
@ -1,34 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
from setuptools import setup, find_packages
|
|
||||||
import os
|
|
||||||
from tiramisu_cmdline_parser import __version__
|
|
||||||
|
|
||||||
|
|
||||||
PACKAGE_NAME = os.environ.get('PACKAGE_DST', 'tiramisu_cmdline_parser')
|
|
||||||
|
|
||||||
setup(
|
|
||||||
version=__version__,
|
|
||||||
author="Tiramisu's team",
|
|
||||||
author_email='gnunux@gnunux.info',
|
|
||||||
name=PACKAGE_NAME,
|
|
||||||
description="command-line parser using Tiramisu.",
|
|
||||||
url='https://framagit.org/tiramisu/tiramisu-cmdline-parser',
|
|
||||||
license='GNU Library or Lesser General Public License (LGPL)',
|
|
||||||
install_requires=["tiramisu>=5.0"],
|
|
||||||
classifiers=[
|
|
||||||
"Programming Language :: Python :: 3",
|
|
||||||
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
|
|
||||||
"Operating System :: OS Independent",
|
|
||||||
"Natural Language :: English",
|
|
||||||
"Natural Language :: French",
|
|
||||||
],
|
|
||||||
long_description="""\
|
|
||||||
tiramisu-cmdline-parser
|
|
||||||
---------------------------------
|
|
||||||
|
|
||||||
Python3 parser for command-line options and arguments using Tiramisu engine.
|
|
||||||
""",
|
|
||||||
include_package_data=True,
|
|
||||||
packages=find_packages(include=['tiramisu_cmdline_parser'])
|
|
||||||
)
|
|
|
@ -1,3 +1,18 @@
|
||||||
|
# Copyright (C) 2018-2019 Team tiramisu (see AUTHORS for all contributors)
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU Lesser General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or (at your
|
||||||
|
# option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
||||||
|
# details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
from typing import Union, List, Dict, Tuple, Optional, Any
|
||||||
try:
|
try:
|
||||||
from .api import TiramisuCmdlineParser
|
from .api import TiramisuCmdlineParser
|
||||||
except ImportError as err:
|
except ImportError as err:
|
||||||
|
|
Loading…
Reference in a new issue