-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
78 lines (66 loc) · 2.02 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Setup script for anyblok_product"""
from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst'),
'r', encoding='utf-8') as readme_file:
readme = readme_file.read()
with open(os.path.join(here, 'CHANGELOG.rst'),
'r', encoding='utf-8') as changelog_file:
changelog = changelog_file.read()
with open(os.path.join(here, 'VERSION'),
'r', encoding='utf-8') as version_file:
version = version_file.read().strip()
requirements = [
'anyblok',
'anyblok_postgres',
'anyblok-marshmallow',
]
test_requirements = [
"pytest"
]
bloks = [
'product_item=anyblok_product.bloks.product_item:ProductItemBlok',
(
'product_template=anyblok_product.bloks.product_template:'
'ProductTemplateBlok'
),
'product_family=anyblok_product.bloks.product_family:ProductFamilyBlok',
]
test_bloks = [
(
'test_family_blok=anyblok_product.test_bloks.test_family_blok:'
'TestFamilyBlok'
),
]
setup(
name='anyblok_product',
version=version,
description="Anyblok blok for Product management.",
long_description=readme + '\n\n' + changelog,
author="Franck Bret",
author_email='franckbret@gmail.com',
url='https://github.com/AnyBlok/anyblok_product',
packages=find_packages(),
entry_points={
'bloks': bloks,
'test_bloks': test_bloks,
},
include_package_data=True,
install_requires=requirements,
zip_safe=False,
keywords='anyblok, product, family, template, item',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
test_suite='tests',
tests_require=test_requirements,
)