-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (54 loc) · 1.98 KB
/
Copy pathsetup.py
File metadata and controls
61 lines (54 loc) · 1.98 KB
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
import os
from ptrrecordsync import __author__ as author
from ptrrecordsync import __version__ as version
from ptrrecordsync import __license__ as license
from ptrrecordsync import __maintainer__ as maintainer
from ptrrecordsync import __email__ as author_email
from ptrrecordsync import __url__ as url
from setuptools import setup
from setuptools.command.test import test
from setuptools.command.install import install
def readme(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
#class BindTest(test):
# def finalize_options(self):
# super().finalize_options()
# self.test_suite = True
# self.test_args = []
# def run_tests(self):
# if not os.environ.get('TEST_NO_EXAMPLES'):
# script_path = os.path.dirname(os.path.realpath(__file__))
#class CustomInstallCommand(install):
# def run(self):
# for item in self.items():
# print(item)
#install.run(self, '--record files.txt')
setup(
name='ptrrecordsync',
version=version,
author=author,
author_email=author_email,
description='Creates PTR records for a DNS Zone',
license=license,
long_description=readme('README.md'),
url=url,
packages=['ptrrecordsync'],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Internet :: Name Service (DNS)'
],
# cmdclass = {
# 'install': CustomInstallCommand,
# },
data_files = [('/etc', ['etc/ptrrecordsync.conf']),
('/etc/systemd/system', ['etc/systemd/system/ptrrecordsync.timer']),
('/etc/systemd/system', ['etc/systemd/system/ptrrecordsync.service'])],
entry_points={
'console_scripts': ['ptrrecordsync = ptrrecordsync.__main__:main', ],
}
)