This repository was archived by the owner on Dec 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
52 lines (44 loc) · 1.61 KB
/
setup.py
File metadata and controls
52 lines (44 loc) · 1.61 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
import os
import re
from setuptools import find_packages, setup
def packages(path):
"""Simple parser for requirements.txt files"""
with open(path) as requirements:
for line in requirements:
if re.match('^[a-zA-Z]', line):
yield line.strip()
def read(path):
""" Read entire file contents and return them """
with open(path) as fp:
return fp.read()
HERE = os.path.dirname(__file__)
README = read(os.path.join(HERE, 'README.md'))
REQUIREMENTS = list(packages(os.path.join(HERE, 'requirements.txt')))
DEVELOPMENT = list(packages(os.path.join(HERE, 'requirements-development.txt')))
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='dom2fixture',
version='0.1.0',
packages=find_packages(),
include_package_data=True,
license='MIT License',
description='A command line tool for converting DOM into a VeriPy fixtures',
long_description=README,
url='https://github.com/Codebiosys/specio_app',
author='CodeBiosys, Inc',
author_email='developers@codebiosys.com',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
install_requires=REQUIREMENTS,
extras_require={'develop': DEVELOPMENT},
tests_require=DEVELOPMENT,
scripts=('bin/dom2fixture',),
)