diff --git a/AUTHORS b/AUTHORS deleted file mode 100644 index 425ae3a..0000000 --- a/AUTHORS +++ /dev/null @@ -1 +0,0 @@ -Phillip Marshall diff --git a/AUTHORS.rst b/AUTHORS.rst new file mode 100644 index 0000000..62c43b8 --- /dev/null +++ b/AUTHORS.rst @@ -0,0 +1,5 @@ +======= +Authors +======= + +- Phillip Marshall diff --git a/CHANGES.rst b/CHANGES.rst new file mode 100644 index 0000000..5fcfb01 --- /dev/null +++ b/CHANGES.rst @@ -0,0 +1,9 @@ +======= +Changes +======= + + +1.0 (2018-10-24) +---------------- + +- Initial PyPI release. 🎉 diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..004eaa3 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,5 @@ +include AUTHORS.rst +include CHANGES.rst +include LICENSE +include MANIFEST.in +include README.rst diff --git a/README.rst b/README.rst index 550cce8..9709bcb 100644 --- a/README.rst +++ b/README.rst @@ -16,9 +16,11 @@ Requires Python 3.6. Uses aiohttp_, requests_, and pycryptodome_ libraries. Installation ------------ -We're not yet on PyPI, but you can use pip to install directly from github:: +Use ``pip`` to install directly from PyPI_:: - pip install git+https://github.com/agrimgt/python-fieldclimate + pip install python-fieldclimate + +.. _PyPI: https://pypi.org/project/python-fieldclimate/ Authentication diff --git a/fieldclimate/__init__.py b/fieldclimate/__init__.py index a5a7082..7f4e9f3 100644 --- a/fieldclimate/__init__.py +++ b/fieldclimate/__init__.py @@ -1,7 +1,7 @@ """A client for the iMetos FieldClimate API.""" __all__ = ["FieldClimateClient"] -__version__ = "0.1dev" +__version__ = "1.0" __author__ = "Agrimanagement, Inc." from fieldclimate.client import HmacClient diff --git a/setup.py b/setup.py index d86a7ab..c55b19b 100644 --- a/setup.py +++ b/setup.py @@ -1,28 +1,38 @@ -import os - from setuptools import setup - -def read(fname): - with open(os.path.join(os.path.dirname(__file__), fname)) as f: - return f.read() +import fieldclimate setup( name="python-fieldclimate", - version="0.1dev", + version=fieldclimate.__version__, description="A client for the iMetos FieldClimate API.", url="https://github.com/agrimgt/python-fieldclimate", - long_description=read("README.rst"), - author="Agrimanagent, Inc.", + long_description="\n\n".join( + ( + open("README.rst").read(), + open("CHANGES.rst").read(), + open("AUTHORS.rst").read(), + ) + ), + author=fieldclimate.__author__, author_email="pmarshall@agrimgt.com", license="MIT", - project_urls={ - "API Documentation": "https://api.fieldclimate.com/v1/docs/", - "Source": "https://github.com/agrimgt/python-fieldclimate", - }, + project_urls={"API Documentation": "https://api.fieldclimate.com/v1/docs/"}, packages=["fieldclimate"], + classifiers=[ + "Development Status :: 5 - Production/Stable", + "Framework :: AsyncIO", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3 :: Only", + ], install_requires=["aiohttp", "pycryptodome", "requests"], python_requires=">=3.6", - package_data={"": ["*.txt", "*.rst"]}, + include_package_data=True, )