-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·72 lines (61 loc) · 1.83 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import locale
from os import path
from setuptools import (setup, find_packages)
from pyexample import __doc__, __author__, __version__, __license__, __email__
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
# Get the long description from the relevant dir
here = path.abspath(path.dirname(__file__))
filepath = path.join(here, 'DESCRIPTION.rst')
with open(filepath, encoding='utf8') as f:
long_description = f.read()
# Requirements from requirements.txt
REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]
setup(
# Basic
name='pyexample',
version=__version__,
packages=find_packages(),
# Requirements
install_requires=REQUIREMENTS,
extras_require={
'dev': ['check-manifest'],
'test': ['coverage'],
},
# Entry ponit
entry_points={
'console_scripts': [
'pyexample = pyexample.__main__:main',
]
},
# copy script run into /usr/bin,
# but better is used entry point
# scripts=['run'],
# Data
package_data={
# If any package contains *.txt or *.rst files, include them:
# '': ['*.txt', '*.rst'],
# And include any *.msg files found in the 'hello' package, too:
'pyexample': ['resources/*.ini', 'resources/*.dat', 'resources/dir/*.dat']
},
# test_suite = test.test_hello,
# About
author=str(__author__),
author_email=__email__,
description='Python example project',
long_description=__doc__,
license=__license__,
keywords="python3 example",
url='https://github.com/kedrigern/pyexample',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Natural Language :: English',
'Natural Language :: Czech',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3 :: Only',
]
)