-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
77 lines (68 loc) · 2.32 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
# This file is a part of the AnyBlok / Sale project
#
# Copyright (C) 2018 Franck Bret <franckbret@gmail.com>
#
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file,You can
# obtain one at http://mozilla.org/MPL/2.0/.
# -*- coding: utf-8 -*-
"""Setup script for anyblok_sale"""
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_mixins',
'anyblok_marshmallow',
'marshmallow-sqlalchemy<=0.17.0',
'anyblok_attachment',
'anyblok_address',
'anyblok_product',
'prices',
]
test_requirements = [
# TODO: put package test requirements here
]
setup(
name='anyblok_sale',
version=version,
description="Sale management",
long_description=readme + '\n\n' + changelog,
author="Franck Bret",
author_email='f.bret@sensee.com',
url='https://github.com/AnyBlok/anyblok_sale',
packages=find_packages(),
entry_points={
'bloks': [
'sale_base=anyblok_sale.bloks.sale_base:SaleBaseBlok',
'sale=anyblok_sale.bloks.sale:SaleBlok',
'customer=anyblok_sale.bloks.customer:CustomerBlok',
'customer_sale=anyblok_sale.bloks.customer_sale:CustomerSaleBlok',
'pricelist=anyblok_sale.bloks.price_list:PriceListBlok',
],
},
include_package_data=True,
install_requires=requirements,
zip_safe=False,
keywords='anyblok_sale, anyblok, sale',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
test_suite='tests',
tests_require=test_requirements,
)