config: drop setup.py

poetry is used for build system, so setup.py is no longer needed
This commit is contained in:
David Lechner
2020-03-18 17:19:48 -05:00
parent 803c57aa8e
commit 3e8f311860
4 changed files with 15 additions and 42 deletions
+1 -1
View File
@@ -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
+13 -4
View File
@@ -1,9 +1,18 @@
[tool.poetry]
name = "pybricks-api"
version = "2.0.0"
description = "Documentation and user-API for Pybricks MicroPython"
authors = ["Laurens Valk <laurens@pybricks.com>", "David Lechner <david@pybricks.com>" ]
name = "pybricks"
version = "2.0.0b4"
description = "Documentation and user-API stubs for Pybricks MicroPython"
authors = ["The Pybricks Authors <dev@pybricks.com>"]
maintainers = ["Laurens Valk <laurens@pybricks.com>", "David Lechner <david@pybricks.com>" ]
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"
+1 -1
View File
@@ -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/
-36
View File
@@ -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'],
)