-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #452 from fizyk/cfg
Define package in setup.cfg instead of setup.py
- Loading branch information
Showing
5 changed files
with
67 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,49 @@ | ||
[metadata] | ||
name = mirakuru | ||
version = 2.3.0 | ||
url = https://github.com/ClearcodeHQ/mirakuru | ||
description = Process executor (not only) for tests. | ||
long_description = file: README.rst, CHANGES.rst | ||
long_description_content_type = text/x-rst | ||
keywords = process, executor, tests, orchestration | ||
license = LGPLv3+ | ||
maintainer = Grzegorz Śliwiński | ||
maintainer_email = [email protected] | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+) | ||
Natural Language :: English | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3 :: Only | ||
|
||
[options] | ||
zip_safe = False | ||
include_package_data = True | ||
python_requires = >= 3.7 | ||
packages = find: | ||
package_dir = | ||
=src | ||
install_requires = | ||
# psutil is used to find processes leaked during termination. | ||
# It runs on many platforms but not Cygwin: | ||
# <https://github.com/giampaolo/psutil/issues/82>. | ||
psutil>=4.0.0; sys_platform != "cygwin" | ||
|
||
[options.packages.find] | ||
where = src | ||
|
||
[options.extras_require] | ||
tests = | ||
pytest | ||
pytest-cov | ||
python-daemon | ||
|
||
[pycodestyle] | ||
max-line-length = 80 | ||
exclude = docs/*,build/*,venv/* | ||
|
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,4 +1,4 @@ | ||
# Copyright (C) 2014 by Clearcode <http://clearcode.cc> | ||
# Copyright (C) 2014-2021 by Clearcode <http://clearcode.cc> | ||
# and associates (see AUTHORS). | ||
|
||
# This file is part of mirakuru. | ||
|
@@ -16,75 +16,6 @@ | |
# You should have received a copy of the GNU Lesser General Public License | ||
# along with mirakuru. If not, see <http://www.gnu.org/licenses/>. | ||
"""Mirakuru installation module.""" | ||
from setuptools import setup | ||
|
||
import os | ||
from setuptools import setup, find_packages | ||
|
||
|
||
here = os.path.dirname(__file__) | ||
|
||
|
||
requirements = [ | ||
# psutil is used to find processes leaked during termination. | ||
# It runs on many platforms but not Cygwin: | ||
# <https://github.com/giampaolo/psutil/issues/82>. | ||
'psutil>=4.0.0; sys_platform != "cygwin"', | ||
] | ||
|
||
tests_require = ( | ||
"pytest", # tests framework used | ||
"pytest-cov", # coverage reports to verify tests quality | ||
"python-daemon", # used in test for easy creation of daemons | ||
) | ||
extras_require = { | ||
"docs": ["sphinx"], | ||
"tests": tests_require, | ||
} | ||
|
||
|
||
def read(fname): | ||
""" | ||
Read filename. | ||
:param str fname: name of a file to read | ||
""" | ||
return open(os.path.join(here, fname)).read() | ||
|
||
|
||
setup( | ||
name="mirakuru", | ||
version="2.3.0", | ||
description="Process executor for tests.", | ||
long_description=(read("README.rst") + "\n\n" + read("CHANGES.rst")), | ||
keywords="process executor tests summon_process", | ||
url="https://github.com/ClearcodeHQ/mirakuru", | ||
author="Clearcode - The A Room", | ||
author_email="[email protected]", | ||
license="LGPL", | ||
python_requires=">=3.6", | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Web Environment", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: " | ||
"GNU Lesser General Public License v3 or later (LGPLv3+)", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Software Development :: Testing", | ||
], | ||
package_dir={"": "src"}, | ||
packages=find_packages("src"), | ||
install_requires=requirements, | ||
tests_require=tests_require, | ||
test_suite="tests", | ||
include_package_data=True, | ||
zip_safe=False, | ||
extras_require=extras_require, | ||
) | ||
setup() |
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