mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
config: drop setup.py
poetry is used for build system, so setup.py is no longer needed
This commit is contained in:
+1
-1
@@ -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
@@ -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"
|
||||
|
||||
@@ -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/
|
||||
|
||||
@@ -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'],
|
||||
)
|
||||
Reference in New Issue
Block a user