File tree 6 files changed +65
-82
lines changed
6 files changed +65
-82
lines changed Original file line number Diff line number Diff line change 31
31
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32
32
33
33
- name : Install library
34
- run : python3 setup.py install
34
+ run : pip install .
35
35
36
36
- name : Install sphinx
37
37
run : pip3 install pylint Sphinx sphinx-rtd-theme
Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- uses : actions/checkout@v1
12
- - name : Check For setup.py
12
+ - name : Check For pyproject.toml
13
13
id : need-pypi
14
14
run : |
15
- echo ::set-output name=setup-py ::$( find . -wholename './setup.py ' )
15
+ echo ::set-output name=pyproject-toml ::$( find . -wholename './pyproject.toml ' )
16
16
- name : Set up Python
17
- if : contains(steps.need-pypi.outputs.setup-py , 'setup.py ')
17
+ if : contains(steps.need-pypi.outputs.pyproject-toml , 'pyproject.toml ')
18
18
uses : actions/setup-python@v1
19
19
with :
20
20
python-version : ' 3.x'
21
21
- name : Install dependencies
22
- if : contains(steps.need-pypi.outputs.setup-py , 'setup.py ')
22
+ if : contains(steps.need-pypi.outputs.pyproject-toml , 'pyproject.toml ')
23
23
run : |
24
24
python -m pip install --upgrade pip
25
- pip install setuptools wheel twine
25
+ pip install build wheel twine
26
26
- name : Build and publish
27
- if : contains(steps.need-pypi.outputs.setup-py , 'setup.py ')
27
+ if : contains(steps.need-pypi.outputs.pyproject-toml , 'pyproject.toml ')
28
28
env :
29
29
TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
30
30
TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
31
31
run : |
32
- python setup.py sdist
32
+ python -m build
33
33
twine upload dist/*
Original file line number Diff line number Diff line change 1
- publish : clean
2
- python setup.py sdist upload
1
+ publish : clean build
2
+ twine upload dist/ *
3
3
4
4
clean :
5
5
# rm -rf Adafruit_BBIO.* build dist
9
9
py.test
10
10
11
11
build :
12
- python setup.py build --force
12
+ python -m build
13
13
14
14
install : build
15
- python setup.py install --force
15
+ pip install .
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Clone or download the contents of this repository. Then navigate to the folder i
51
51
52
52
.. code-block :: shell
53
53
54
- python setup.py install
54
+ pip install .
55
55
56
56
57
57
Original file line number Diff line number Diff line change
1
+ # SPDX-FileCopyrightText: 2022 Alec Delaney for Adafruit Industries
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+
5
+ [build-system ]
6
+ requires = [
7
+ " setuptools" ,
8
+ " wheel" ,
9
+ " setuptools-scm" ,
10
+ ]
11
+
12
+ [project ]
13
+ name = " adafruit-io"
14
+ description = " Python client library for Adafruit IO (http://io.adafruit.com/)."
15
+ version = " 0.0.0"
16
+ readme = " README.rst"
17
+ authors = [
18
+ {
name =
" Adafruit Industries" ,
email =
" [email protected] " }
19
+ ]
20
+ urls = {Homepage = " https://github.com/adafruit/Adafruit_IO_Python" }
21
+ keywords = [
22
+ " adafruit" ,
23
+ " blinka" ,
24
+ " circuitpython" ,
25
+ " micropython" ,
26
+ " lis3mdl" ,
27
+ " magnetometer" ,
28
+ " LSM6DS33" ,
29
+ " IMU" ,
30
+ ]
31
+ license = {text = " MIT" }
32
+ classifiers = [
33
+ " Development Status :: 5 - Production/Stable" ,
34
+ " Operating System :: POSIX :: Linux" ,
35
+ " Operating System :: Microsoft :: Windows" ,
36
+ " Operating System :: MacOS" ,
37
+ " License :: OSI Approved :: MIT License" ,
38
+ " Intended Audience :: Developers" ,
39
+ " Programming Language :: Python :: 3" ,
40
+ " Programming Language :: Python :: 3.4" ,
41
+ " Programming Language :: Python :: 3.5" ,
42
+ " Programming Language :: Python :: 3.6" ,
43
+ " Topic :: Home Automation" ,
44
+ " Topic :: Software Development" ,
45
+ ]
46
+ dependencies = [
47
+ " requests" ,
48
+ " paho-mqtt"
49
+ ]
50
+
51
+ [tool .setuptools ]
52
+ packages = [" Adafruit_IO" ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments