1+ #!/usr/bin/env python
2+ # -*- encoding: utf-8 -*-
3+ from __future__ import absolute_import
4+ from __future__ import print_function
5+
6+ import io
7+ import re
8+ from glob import glob
9+ from os .path import basename
10+ from os .path import dirname
11+ from os .path import join
12+ from os .path import splitext
13+
14+ from setuptools import find_packages
15+ from setuptools import setup
16+
17+
18+ def read (* names , ** kwargs ):
19+ with io .open (
20+ join (dirname (__file__ ), * names ),
21+ encoding = kwargs .get ('encoding' , 'utf8' )
22+ ) as fh :
23+ return fh .read ()
24+
25+
26+ setup (
27+ name = 'PyStateMachine' ,
28+ version = '0.0.1' ,
29+ license = 'GNU GENERAL PUBLIC LICENSE' ,
30+ description = 'PyStateMachine Package' ,
31+ long_description = '%s\n %s' % (
32+ re .compile ('^.. start-badges.*^.. end-badges' , re .M | re .S ).sub ('' , read ('README.md' )),
33+ re .sub (':[a-z]+:`~?(.*?)`' , r'``\1``' , read ('CHANGELOG.md' ))
34+ ),
35+ author = 'ZigRazor' ,
36+ author_email = 'zigrazor@gmail.com' ,
37+ url = 'https://github.com/ZigRazor/PyStateMachine' ,
38+ packages = find_packages ('src' ),
39+ package_dir = {'' : 'src' },
40+ py_modules = [splitext (basename (path ))[0 ] for path in glob ('src/*.py' )],
41+ include_package_data = True ,
42+ zip_safe = False ,
43+ classifiers = [
44+ # complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
45+ 'Development Status :: 5 - Production/Stable' ,
46+ 'Intended Audience :: Developers' ,
47+ 'License :: OSI Approved :: GNU GENERAL PUBLIC LICENSE' ,
48+ 'Operating System :: Unix' ,
49+ 'Operating System :: POSIX' ,
50+ 'Operating System :: Microsoft :: Windows' ,
51+ 'Programming Language :: Python' ,
52+ 'Programming Language :: Python :: 3' ,
53+ 'Programming Language :: Python :: 3.5' ,
54+ 'Programming Language :: Python :: 3.6' ,
55+ 'Programming Language :: Python :: 3.7' ,
56+ 'Programming Language :: Python :: 3.8' ,
57+ 'Programming Language :: Python :: 3.9' ,
58+ # uncomment if you test on these interpreters:
59+ # 'Programming Language :: Python :: Implementation :: IronPython',
60+ # 'Programming Language :: Python :: Implementation :: Jython',
61+ # 'Programming Language :: Python :: Implementation :: Stackless',
62+ 'Topic :: Utilities' ,
63+ ],
64+ project_urls = {
65+ 'Changelog' : 'https://github.com/ZigRazor/PyStateMachine/blob/master/CHANGELOG.md' ,
66+ 'Issue Tracker' : 'https://github.com/ZigRazor/PyStateMachine/issues' ,
67+ },
68+ keywords = [
69+ # eg: 'keyword1', 'keyword2', 'keyword3',
70+ ],
71+ python_requires = '>=3' ,
72+ install_requires = [
73+ # eg: 'aspectlib==1.1.1', 'six>=1.7',
74+ ],
75+ extras_require = {
76+ # eg:
77+ # 'rst': ['docutils>=0.11'],
78+ # ':python_version=="2.6"': ['argparse'],
79+ },
80+ setup_requires = [
81+ 'pytest-runner' ,
82+ ],
83+ entry_points = {
84+ 'console_scripts' : [
85+ 'nameless = nameless.cli:main' ,
86+ ]
87+ },
88+ )
0 commit comments