|
1 | | -#!/usr/bin/env python |
2 | | -# |
3 | | -# Copyright 2015-2019 by Hartmut Goebel <h.goebel@crazy-compilers.com> |
4 | | -# |
5 | | -# This file is part of unittest2pytest. |
6 | | -# |
7 | | -# unittest2pytest is free software: you can redistribute it and/or modify |
8 | | -# it under the terms of the GNU General Public License as published by |
9 | | -# the Free Software Foundation, either version 3 of the License, or |
10 | | -# (at your option) any later version. |
11 | | -# |
12 | | -# This program is distributed in the hope that it will be useful, but |
13 | | -# WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 | | -# General Public License for more details. |
16 | | -# |
17 | | -# You should have received a copy of the GNU General Public License |
18 | | -# along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | | -# |
20 | | -from pathlib import Path |
21 | | - |
22 | 1 | from setuptools import setup |
23 | | -import re |
24 | | - |
25 | | - |
26 | | -this_dir = Path(__file__).parent |
27 | | - |
28 | | -def get_version(filename): |
29 | | - """ |
30 | | - Return package version as listed in `__version__` in `filename`. |
31 | | - """ |
32 | | - init_py = this_dir.joinpath(filename).read_text(encoding="utf-8") |
33 | | - return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1) |
34 | | - |
35 | | - |
36 | | -version = get_version('unittest2pytest/__init__.py') |
37 | | - |
38 | | - |
39 | | -def read(filename): |
40 | | - return this_dir.joinpath(filename).read_text(encoding='utf-8') |
41 | | - |
42 | | - |
43 | | -long_description = '\n\n'.join([read('README.rst'), |
44 | | - read('CHANGELOG.rst')]) |
45 | | - |
46 | 2 |
|
47 | | -setup( |
48 | | - name="unittest2pytest", |
49 | | - license='GPLv3+', |
50 | | - version=version, |
51 | | - description="Convert unittest test-cases to pytest", |
52 | | - long_description=long_description, |
53 | | - long_description_content_type="text/x-rst", |
54 | | - author="Hartmut Goebel", |
55 | | - author_email="h.goebel@crazy-compilers.com", |
56 | | - url="https://github.com/pytest-dev/unittest2pytest", |
57 | | - packages=["unittest2pytest", "unittest2pytest.fixes"], |
58 | | - entry_points={ |
59 | | - 'console_scripts': [ |
60 | | - 'unittest2pytest = unittest2pytest.__main__:main', |
61 | | - ], |
62 | | - }, |
63 | | - classifiers=[ |
64 | | - "Development Status :: 4 - Beta", |
65 | | - "Environment :: Console", |
66 | | - "Intended Audience :: Developers", |
67 | | - "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", |
68 | | - "Operating System :: OS Independent", |
69 | | - "Programming Language :: Python", |
70 | | - "Programming Language :: Python :: 3", |
71 | | - "Programming Language :: Python :: 3 :: Only", |
72 | | - "Programming Language :: Python :: 3.9", |
73 | | - "Programming Language :: Python :: 3.10", |
74 | | - "Programming Language :: Python :: 3.11", |
75 | | - "Programming Language :: Python :: 3.12", |
76 | | - "Programming Language :: Python :: 3.13", |
77 | | - "Programming Language :: Python :: 3.14", |
78 | | - "Programming Language :: Python :: 3.15", |
79 | | - "Topic :: Software Development", |
80 | | - "Topic :: Utilities", |
81 | | - ], |
82 | | - install_requires=["fissix"], |
83 | | - python_requires=">=3.9", |
84 | | - zip_safe=False |
85 | | -) |
| 3 | +setup() |
0 commit comments