-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (54 loc) · 1.97 KB
/
setup.py
File metadata and controls
59 lines (54 loc) · 1.97 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open # To use a consistent encoding
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
# Pull requirements from requirements.txt file
with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f:
install_requires, tests_require = [], []
now_we_have_dev = False
for line in f:
if line.startswith("#"):
if "test" in line:
now_we_have_dev = True
elif now_we_have_dev:
tests_require.append(line.strip())
else:
install_requires.append(line.strip())
setup(
name='HookTest',
version="1.3.1",
description='Hook Test Script for GitHub/CapiTainS repositories based on MyCapytain 3.0.0 or higher',
long_description=long_description,
long_description_content_type="text/x-rst",
url='http://github.com/Capitains/HookTest',
author='Thibault Clérice, Matt Munson',
author_email='leponteineptique@gmail.com',
license='Mozilla Public License Version 2.0',
packages=find_packages(exclude=("tests")),
classifiers=[
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Version Control",
"Topic :: Text Processing :: Markup :: XML",
"Topic :: Text Processing :: General",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)"
],
install_requires=install_requires,
tests_require=tests_require,
package_data={
'HookTest': ['resources/*.rng']
},
include_package_data=True,
entry_points={
'console_scripts': [
'hooktest=HookTest.cmd:cmd',
'hooktest-build=HookTest.cmd:cmd_build'
]
},
test_suite="tests",
zip_safe=False
)