Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit aee33bc

Browse files
committed
make installable
1 parent aa03f35 commit aee33bc

File tree

9 files changed

+86
-6
lines changed

9 files changed

+86
-6
lines changed

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,5 @@ static
149149

150150
# failed downloads
151151
compressed/*?raw=true
152+
153+
_version.py

‎.pre-commit-config.yaml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.0.1
4+
hooks:
5+
- id: check-docstring-first
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- repo: https://github.com/asottile/setup-cfg-fmt
9+
rev: v1.17.0
10+
hooks:
11+
- id: setup-cfg-fmt
12+
- repo: https://github.com/PyCQA/flake8
13+
rev: 3.9.2
14+
hooks:
15+
- id: flake8
16+
additional_dependencies: [flake8-typing-imports==1.7.0]
17+
- repo: https://github.com/myint/autoflake
18+
rev: v1.4
19+
hooks:
20+
- id: autoflake
21+
args: ["--in-place", "--remove-all-unused-imports"]
22+
- repo: https://github.com/PyCQA/isort
23+
rev: 5.8.0
24+
hooks:
25+
- id: isort
26+
- repo: https://github.com/psf/black
27+
rev: 21.5b2
28+
hooks:
29+
- id: black
30+
- repo: https://github.com/asottile/pyupgrade
31+
rev: v2.19.0
32+
hooks:
33+
- id: pyupgrade
34+
args: [--py37-plus]

‎README.md‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
A small library to determine which serial ports are arduino style boards.
44

5-
Not installable yet, run
6-
pyserial is the only dependency:
7-
`pip install pyserial`
8-
9-
For now you can run using:
10-
`python find_arduino.py`
5+
```bash
6+
pip install -e .
7+
```

‎find_arduino/__init__.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
try:
2+
from ._version import __version__
3+
except:
4+
__version__ = "unknown"
5+
from .detection import find_arduino
6+
7+
__all__ = [
8+
"__version__",
9+
"find_arduino",
10+
]
File renamed without changes.
File renamed without changes.

‎pyproject.toml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[build-system]
2+
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]
3+
4+
5+
[tool.setuptools_scm]
6+
write_to = "find_arduino/_version.py"
7+
8+
[tool.isort]
9+
profile = "black"
10+

‎setup.cfg‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[metadata]
2+
name = find-arduino
3+
url = https://github.com/ianhi/detect-arduino
4+
author = Ian Hunt-Isaak}}
5+
author_email = ianhuntisaak@gmail.com
6+
license = BSD-3 Clause
7+
classifiers =
8+
Development Status :: 2 - Pre-Alpha
9+
'BSD license': 'License :: OSI Approved :: BSD License',
10+
Natural Language :: English
11+
Programming Language :: Python :: 3
12+
Programming Language :: Python :: 3.7
13+
Programming Language :: Python :: 3.8
14+
Programming Language :: Python :: 3.9
15+
project_urls =
16+
Source Code =https://github.com/ianhi/detect-arduino
17+
18+
[options]
19+
packages = find:
20+
python_requires = >=3.7
21+
setup_requires =
22+
setuptools_scm
23+
install_requires =
24+
pyserial

‎setup.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from setuptools import setup
2+
3+
setup()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /