-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
91 lines (74 loc) · 2.28 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
79
80
81
82
83
84
85
86
87
88
89
90
91
"""
A python package for parsing GTINs ("Global Trade Item Numbers"—also known as UPC/EAN/JAN/ISBN).
See:
https://github.com/davebelais/gtin
"""
import re
from setuptools import setup, find_packages
from codecs import open
from os import path
d = path.abspath(path.dirname(__file__))
# Get a long description from the README file
with open(
path.join(
d,
'README.rst'
),
encoding='utf-8'
) as f:
long_description = ''.join(
re.split(
r'(^\s*To\s*install::\s*$)',
f.read(),
flags=re.IGNORECASE+re.MULTILINE
)[1:]
)
setup(
name='gtin',
version='0.1.4',
description='A module for parsing GTINs ("Global Trade Item Numbers"—also known as UPC/EAN/JAN/ISBN).',
long_description=long_description,
# The project's main homepage.
url='https://github.com/davebelais/gtin',
# Author details
author='David Belais',
author_email='[email protected]',
# Choose your license
license='MIT',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# 'Development Status :: 3 - Alpha',
'Development Status :: 4 - Beta',
# 'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
keywords='upc ean jan isbn gs1',
packages=find_packages(exclude=['docs', 'tests']),
# packages=[], # explicitly set packages
# py_modules=[], # Single-file module names
# dependencies
# See https://packaging.python.org/en/latest/requirements.html
install_requires=[
'future>=0.15.2',
],
# pip install -e .[dev,test]
extras_require={
'dev': ['pytest>=2.9.0'],
'test': ['pytest>=2.9.0'],
},
package_data={
'gtin': ['gcp/*.xml'],
},
# See http://docs.python.org/3.5/distutils/setupscript.html#installing-additional-files
data_files=[],
entry_points={
'console_scripts': [],
}
)