diff --git a/.travis.yml b/.travis.yml index e47dc2c..f1d1fe5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ install: - poetry install script: -- poetry run python setup.py build +- poetry build - poetry run make -C doc html SOURCEDIR=api - poetry run flake8 - poetry run doc8 diff --git a/pyproject.toml b/pyproject.toml index 6323e25..7ab99ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,18 @@ [tool.poetry] -name = "pybricks-api" -version = "2.0.0" -description = "Documentation and user-API for Pybricks MicroPython" -authors = ["Laurens Valk ", "David Lechner " ] +name = "pybricks" +version = "2.0.0b4" +description = "Documentation and user-API stubs for Pybricks MicroPython" +authors = ["The Pybricks Authors "] +maintainers = ["Laurens Valk ", "David Lechner " ] license = "MIT" +readme = "README.rst" +homepage = "https://pybricks.com" +repository = "https://github.com/pybricks/pybricks-api" +documentation = "https://docs.pybricks.com" +classifiers = [ + "Development Status :: 3 - Alpha", + "Programming Language :: Python :: Implementation :: MicroPython", +] [tool.poetry.dependencies] python = "^3.5" diff --git a/setup.cfg b/setup.cfg index 6e582be..1283297 100644 --- a/setup.cfg +++ b/setup.cfg @@ -16,4 +16,4 @@ exclude = .venv/,versioneer.py max-line-length = 88 [doc8] -ignore-path = .venv/,doc/api/build/,pybricks_api.egg-info/ +ignore-path = .venv/,doc/api/build/,pybricks.egg-info/ diff --git a/setup.py b/setup.py deleted file mode 100644 index 08f7563..0000000 --- a/setup.py +++ /dev/null @@ -1,36 +0,0 @@ -"""pypi compatible setup module. - -This setup is based on: -https://packaging.python.org/tutorials/distributing-packages/ - - -""" -from setuptools import setup -from codecs import open -from os import path - -import versioneer - - -here = path.abspath(path.dirname(__file__)) -with open(path.join(here, 'README.rst'), encoding='utf-8') as f: - long_description = f.read() - -setup( - name='pybricks-api', - version=versioneer.get_version(), - cmdclass=versioneer.get_cmdclass(), - description='Pybricks MicroPython API stubs', - long_description=long_description, - url='https://github.com/pybricks/pybricks-api', - author='Pybricks authors', - author_email='dev@pybricks.com', - classifiers=[ - 'Development Status :: 3 - Alpha', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3', - ], - keywords='lego mindstorms ev3', - python_requires='~=3.4', - packages=['pybricks'], -)