70 lines
2.5 KiB
Python
70 lines
2.5 KiB
Python
"""A setuptools based setup module.
|
|
|
|
"""
|
|
|
|
# io.open is needed for projects that support Python 2.7
|
|
# It ensures open() defaults to text mode with universal newlines,
|
|
# and accepts an argument to specify the text encoding
|
|
# Python 3 only projects can skip this import
|
|
from io import open
|
|
from os import path
|
|
|
|
# Always prefer setuptools over distutils
|
|
from setuptools import find_packages, setup
|
|
|
|
|
|
here = path.abspath(path.dirname(__file__))
|
|
|
|
# Get the long description from the README file
|
|
with open(path.join(here, "README.md"), encoding="utf-8") as f:
|
|
long_description = f.read()
|
|
|
|
# Arguments marked as "Required" below must be included for upload to PyPI.
|
|
# Fields marked as "Optional" may be commented out.
|
|
|
|
setup(
|
|
name="proquint", # Required
|
|
version="0.1.0", # Required
|
|
description="Enunciable numerics",
|
|
long_description=long_description, # Optional
|
|
long_description_content_type="text/markdown", # Optional (see note above)
|
|
url="https://github.com/arrdem/source",
|
|
author="Reid 'arrdem' McKenzie",
|
|
author_email="me@arrdem.com",
|
|
classifiers=[
|
|
# Optional
|
|
# https://pypi.org/pypi?%3Aaction=list_classifiers
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: BSD License",
|
|
"Programming Language :: Python :: 3.5",
|
|
],
|
|
# This field adds keywords for your project which will appear on the
|
|
# project page. What does your project relate to?
|
|
#
|
|
# Note that this is a string of words separated by whitespace, not a list.
|
|
keywords="sample setuptools development", # Optional
|
|
# You can just specify package directories manually here if your project is
|
|
# simple. Or you can use find_packages().
|
|
#
|
|
# Alternatively, if you just want to distribute a single Python file, use
|
|
# the `py_modules` argument instead as follows, which will expect a file
|
|
# called `my_module.py` to exist:
|
|
#
|
|
# py_modules=["my_module"],
|
|
#
|
|
packages=find_packages(exclude=["docs", "tests"]),
|
|
python_requires=">=3.5",
|
|
# List additional groups of dependencies here (e.g. development
|
|
# dependencies). Users will be able to install these using the "extras"
|
|
# syntax, for example:
|
|
#
|
|
# $ pip install sampleproject[dev]
|
|
#
|
|
# Similar to `install_requires` above, these must be valid existing
|
|
# projects.
|
|
extras_require={ # Optional
|
|
"dev": ["check-manifest"],
|
|
"test": ["pytest", "hypothesis"],
|
|
},
|
|
)
|