|
| 1 | +"""A setuptools based setup module. |
| 2 | +See: |
| 3 | +https://packaging.python.org/en/latest/distributing.html |
| 4 | +https://github.com/pypa/sampleproject |
| 5 | +""" |
| 6 | + |
| 7 | +# Always prefer setuptools over distutils |
| 8 | +from setuptools import setup, find_packages |
| 9 | +# To use a consistent encoding |
| 10 | +from codecs import open |
| 11 | +from os import path |
| 12 | + |
| 13 | +here = path.abspath(path.dirname(__file__)) |
| 14 | + |
| 15 | +# Get the long description from the README file |
| 16 | +with open(path.join(here, 'README.md'), encoding='utf-8') as f: |
| 17 | + long_description = f.read() |
| 18 | + |
| 19 | +# Arguments marked as "Required" below must be included for upload to PyPI. |
| 20 | +# Fields marked as "Optional" may be commented out. |
| 21 | + |
| 22 | +setup( |
| 23 | + # This is the name of your project. The first time you publish this |
| 24 | + # package, this name will be registered for you. It will determine how |
| 25 | + # users can install this project, e.g.: |
| 26 | + # |
| 27 | + # $ pip install sampleproject |
| 28 | + # |
| 29 | + # And where it will live on PyPI: https://pypi.org/project/sampleproject/ |
| 30 | + # |
| 31 | + # There are some restrictions on what makes a valid project name |
| 32 | + # specification here: |
| 33 | + # https://packaging.python.org/specifications/core-metadata/#name |
| 34 | + name='pylivecoding', # Required |
| 35 | + |
| 36 | + # Versions should comply with PEP 440: |
| 37 | + # https://www.python.org/dev/peps/pep-0440/ |
| 38 | + # |
| 39 | + # For a discussion on single-sourcing the version across setup.py and the |
| 40 | + # project code, see |
| 41 | + # https://packaging.python.org/en/latest/single_source_version.html |
| 42 | + version='0.0.1', # Required |
| 43 | + |
| 44 | + # This is a one-line description or tagline of what your project does. This |
| 45 | + # corresponds to the "Summary" metadata field: |
| 46 | + # https://packaging.python.org/specifications/core-metadata/#summary |
| 47 | + description='live coding library for Python 3', # Required |
| 48 | + |
| 49 | + # This is an optional longer description of your project that represents |
| 50 | + # the body of text which users will see when they visit PyPI. |
| 51 | + # |
| 52 | + # Often, this is the same as your README, so you can just read it in from |
| 53 | + # that file directly (as we have already done above) |
| 54 | + # |
| 55 | + # This field corresponds to the "Description" metadata field: |
| 56 | + # https://packaging.python.org/specifications/core-metadata/#description-optional |
| 57 | + long_description=long_description, # Optional |
| 58 | + |
| 59 | + # Denotes that our long_description is in Markdown; valid values are |
| 60 | + # text/plain, text/x-rst, and text/markdown |
| 61 | + # |
| 62 | + # Optional if long_description is written in reStructuredText (rst) but |
| 63 | + # required for plain-text or Markdown; if unspecified, "applications should |
| 64 | + # attempt to render [the long_description] as text/x-rst; charset=UTF-8 and |
| 65 | + # fall back to text/plain if it is not valid rst" (see link below) |
| 66 | + # |
| 67 | + # This field corresponds to the "Description-Content-Type" metadata field: |
| 68 | + # https://packaging.python.org/specifications/core-metadata/#description-content-type-optional |
| 69 | + long_description_content_type='text/markdown', # Optional (see note above) |
| 70 | + |
| 71 | + # This should be a valid link to your project's main homepage. |
| 72 | + # |
| 73 | + # This field corresponds to the "Home-Page" metadata field: |
| 74 | + # https://packaging.python.org/specifications/core-metadata/#home-page-optional |
| 75 | + url='https://github.com/kilon/pylivecoding.git', # Optional |
| 76 | + |
| 77 | + # This should be your name or the name of the organization which owns the |
| 78 | + # project. |
| 79 | + author='kilon', # Optional |
| 80 | + |
| 81 | + # This should be a valid email address corresponding to the author listed |
| 82 | + # above. |
| 83 | + author_email='[email protected]', # Optional |
| 84 | + |
| 85 | + # Classifiers help users find your project by categorizing it. |
| 86 | + # |
| 87 | + # For a list of valid classifiers, see https://pypi.org/classifiers/ |
| 88 | + classifiers=[ # Optional |
| 89 | + # How mature is this project? Common values are |
| 90 | + # 3 - Alpha |
| 91 | + # 4 - Beta |
| 92 | + # 5 - Production/Stable |
| 93 | + 'Development Status :: 3 - Alpha', |
| 94 | + |
| 95 | + # Indicate who your project is intended for |
| 96 | + 'Intended Audience :: Developers', |
| 97 | + 'Topic :: Software Development :: Build Tools', |
| 98 | + |
| 99 | + # Pick your license as you wish |
| 100 | + 'License :: OSI Approved :: MIT License', |
| 101 | + |
| 102 | + # Specify the Python versions you support here. In particular, ensure |
| 103 | + # that you indicate whether you support Python 2, Python 3 or both. |
| 104 | + 'Programming Language :: Python :: 3', |
| 105 | + 'Programming Language :: Python :: 3.4', |
| 106 | + 'Programming Language :: Python :: 3.5', |
| 107 | + 'Programming Language :: Python :: 3.6', |
| 108 | + ], |
| 109 | + |
| 110 | + # This field adds keywords for your project which will appear on the |
| 111 | + # project page. What does your project relate to? |
| 112 | + # |
| 113 | + # Note that this is a string of words separated by whitespace, not a list. |
| 114 | + keywords='live code smalltalk python livecoding coding reload', # Optional |
| 115 | + |
| 116 | + # You can just specify package directories manually here if your project is |
| 117 | + # simple. Or you can use find_packages(). |
| 118 | + # |
| 119 | + # Alternatively, if you just want to distribute a single Python file, use |
| 120 | + # the `py_modules` argument instead as follows, which will expect a file |
| 121 | + # called `my_module.py` to exist: |
| 122 | + # |
| 123 | + # py_modules=["my_module"], |
| 124 | + # |
| 125 | + packages=find_packages(exclude=['contrib', 'tests']), # Required |
| 126 | + |
| 127 | + # This field lists other packages that your project depends on to run. |
| 128 | + # Any package you put here will be installed by pip when your project is |
| 129 | + # installed, so they must be valid existing projects. |
| 130 | + # |
| 131 | + # For an analysis of "install_requires" vs pip's requirements files see: |
| 132 | + # https://packaging.python.org/en/latest/requirements.html |
| 133 | + install_requires=[], # Optional |
| 134 | + |
| 135 | + # List additional groups of dependencies here (e.g. development |
| 136 | + # dependencies). Users will be able to install these using the "extras" |
| 137 | + # syntax, for example: |
| 138 | + # |
| 139 | + # $ pip install sampleproject[dev] |
| 140 | + # |
| 141 | + # Similar to `install_requires` above, these must be valid existing |
| 142 | + # projects. |
| 143 | + extras_require={ |
| 144 | + }, |
| 145 | + |
| 146 | + # If there are data files included in your packages that need to be |
| 147 | + # installed, specify them here. |
| 148 | + # |
| 149 | + # If using Python 2.6 or earlier, then these have to be included in |
| 150 | + # MANIFEST.in as well. |
| 151 | + package_data={ |
| 152 | + }, |
| 153 | + |
| 154 | + # Although 'package_data' is the preferred approach, in some case you may |
| 155 | + # need to place data files outside of your packages. See: |
| 156 | + # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files |
| 157 | + # |
| 158 | + # In this case, 'data_file' will be installed into '<sys.prefix>/my_data' |
| 159 | + data_files=[], # Optional |
| 160 | + |
| 161 | + # To provide executable scripts, use entry points in preference to the |
| 162 | + # "scripts" keyword. Entry points provide cross-platform support and allow |
| 163 | + # `pip` to create the appropriate form of executable for the target |
| 164 | + # platform. |
| 165 | + # |
| 166 | + # For example, the following would provide a command called `sample` which |
| 167 | + # executes the function `main` from this package when invoked: |
| 168 | + entry_points={ # Optional |
| 169 | + 'console_scripts': [ |
| 170 | + 'sample=sample:main', |
| 171 | + ], |
| 172 | + }, |
| 173 | + |
| 174 | + # List additional URLs that are relevant to your project as a dict. |
| 175 | + # |
| 176 | + # This field corresponds to the "Project-URL" metadata fields: |
| 177 | + # https://packaging.python.org/specifications/core-metadata/#project-url-multiple-use |
| 178 | + # |
| 179 | + # Examples listed include a pattern for specifying where the package tracks |
| 180 | + # issues, where the source is hosted, where to say thanks to the package |
| 181 | + # maintainers, and where to support the project financially. The key is |
| 182 | + # what's used to render the link text on PyPI. |
| 183 | + project_urls={ |
| 184 | + }, |
| 185 | +) |
0 commit comments