|
6 | 6 | """
|
7 | 7 |
|
8 | 8 | # Always prefer setuptools over distutils
|
9 |
| -from setuptools import setup, find_packages |
10 |
| -# To use a consistent encoding |
11 |
| -from codecs import open |
12 |
| -from os import path |
| 9 | +from setuptools import setup |
13 | 10 |
|
14 |
| -here = path.abspath(path.dirname(__file__)) |
15 |
| - |
16 |
| -# Get the long description from the README file |
17 |
| -with open(path.join(here, 'README.rst'), encoding='utf-8') as f: |
18 |
| - long_description = f.read() |
19 | 11 |
|
20 | 12 | setup(
|
21 |
| - name='sample', |
22 |
| - |
23 |
| - # Versions should comply with PEP440. For a discussion on single-sourcing |
24 |
| - # the version across setup.py and the project code, see |
25 |
| - # https://packaging.python.org/en/latest/single_source_version.html |
26 |
| - version='1.2.0', |
27 |
| - |
28 |
| - description='A sample Python project', |
29 |
| - long_description=long_description, |
30 |
| - |
31 |
| - # The project's main homepage. |
32 |
| - url='https://github.com/pypa/sampleproject', |
33 |
| - |
34 |
| - # Author details |
35 |
| - author='The Python Packaging Authority', |
36 |
| - |
37 |
| - |
38 |
| - # Choose your license |
39 |
| - license='MIT', |
40 |
| - |
41 |
| - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers |
42 |
| - classifiers=[ |
43 |
| - # How mature is this project? Common values are |
44 |
| - # 3 - Alpha |
45 |
| - # 4 - Beta |
46 |
| - # 5 - Production/Stable |
47 |
| - 'Development Status :: 3 - Alpha', |
48 |
| - |
49 |
| - # Indicate who your project is intended for |
50 |
| - 'Intended Audience :: Developers', |
51 |
| - 'Topic :: Software Development :: Build Tools', |
52 |
| - |
53 |
| - # Pick your license as you wish (should match "license" above) |
54 |
| - 'License :: OSI Approved :: MIT License', |
55 |
| - |
56 |
| - # Specify the Python versions you support here. In particular, ensure |
57 |
| - # that you indicate whether you support Python 2, Python 3 or both. |
58 |
| - 'Programming Language :: Python :: 2', |
59 |
| - 'Programming Language :: Python :: 2.7', |
60 |
| - 'Programming Language :: Python :: 3', |
61 |
| - 'Programming Language :: Python :: 3.3', |
62 |
| - 'Programming Language :: Python :: 3.4', |
63 |
| - 'Programming Language :: Python :: 3.5', |
64 |
| - ], |
65 |
| - |
66 |
| - # What does your project relate to? |
67 |
| - keywords='sample setuptools development', |
68 |
| - |
69 |
| - # You can just specify the packages manually here if your project is |
70 |
| - # simple. Or you can use find_packages(). |
71 |
| - packages=find_packages(exclude=['contrib', 'docs', 'tests']), |
72 |
| - |
73 |
| - # Alternatively, if you want to distribute just a my_module.py, uncomment |
74 |
| - # this: |
75 |
| - # py_modules=["my_module"], |
76 |
| - |
77 |
| - # List run-time dependencies here. These will be installed by pip when |
78 |
| - # your project is installed. For an analysis of "install_requires" vs pip's |
79 |
| - # requirements files see: |
80 |
| - # https://packaging.python.org/en/latest/requirements.html |
81 |
| - install_requires=['peppercorn'], |
82 |
| - |
83 |
| - # List additional groups of dependencies here (e.g. development |
84 |
| - # dependencies). You can install these using the following syntax, |
85 |
| - # for example: |
86 |
| - # $ pip install -e .[dev,test] |
87 |
| - extras_require={ |
88 |
| - 'dev': ['check-manifest'], |
89 |
| - 'test': ['coverage'], |
90 |
| - }, |
91 |
| - |
92 |
| - # If there are data files included in your packages that need to be |
93 |
| - # installed, specify them here. If using Python 2.6 or less, then these |
94 |
| - # have to be included in MANIFEST.in as well. |
95 |
| - package_data={ |
96 |
| - 'sample': ['package_data.dat'], |
97 |
| - }, |
98 |
| - |
99 | 13 | # Although 'package_data' is the preferred approach, in some case you may
|
100 | 14 | # need to place data files outside of your packages. See:
|
101 | 15 | # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa
|
102 | 16 | # In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
|
103 | 17 | data_files=[('my_data', ['data/data_file'])],
|
104 |
| - |
105 |
| - # To provide executable scripts, use entry points in preference to the |
106 |
| - # "scripts" keyword. Entry points provide cross-platform support and allow |
107 |
| - # pip to create the appropriate form of executable for the target platform. |
108 |
| - entry_points={ |
109 |
| - 'console_scripts': [ |
110 |
| - 'sample=sample:main', |
111 |
| - ], |
112 |
| - }, |
113 | 18 | )
|
0 commit comments