This repository has been archived by the owner on Nov 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
88 lines (80 loc) · 2.39 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_packages
import os
# Needs pip>=20
from pip._internal.network.session import PipSession
from pip._internal.req import parse_requirements
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
# adapted from:
# https://stackoverflow.com/a/57191701
# https://stackoverflow.com/a/59969843
# https://alexanderwaldin.github.io/packaging-python-project.html
requirements0 = parse_requirements(
os.path.join(os.path.dirname(__file__), 'requirements.txt'),
session=PipSession()
)
requirements = [str(requirement.requirement) for requirement in requirements0]
del requirements0
setup_requirements = [
"pip>=20.2",
"bump2version>=1.0",
"wheel>=0.35.1",
"Sphinx>=3.2.1",
"twine>=3.2.0",
"check-manifest"
]
test_requirements = [
'pytest',
'pytest-runner',
"mock",
"flake8",
"black",
"mypy",
"tox",
"coverage",
"yamllint",
"doc8",
"types-requests",
"types-mock"
]
setup(
author="Nikolaos Perrakis",
author_email='[email protected]',
python_requires='>=3.9',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
],
description="Python utility to handle podman containers within Fedora.",
entry_points={
'console_scripts': [
'podcust=podcust.cli:main',
],
},
install_requires=requirements,
license="Parity Public License v7.0.0",
long_description=readme + '\n\n' + history,
include_package_data=True,
keywords='podcust',
name='podcust',
packages=find_packages(include=['podcust', 'podcust.*']),
setup_requires=setup_requirements,
test_suite='tests',
tests_require=test_requirements,
# hack from https://stackoverflow.com/a/41398850/1904901 to be able to install deps from pip
extras_require={
"dev": setup_requirements + test_requirements
},
# Adding man pages to python package: https://stackoverflow.com/a/48381612/1904901
data_files = [('/usr/share/man/man1/', ['docs/_build/man/podcust.1'])],
url='https://github.com/Iolaum/podcust',
version='0.1.8',
zip_safe=False,
)