Skip to content

Commit 0a3cb2a

Browse files
Merge pull request #12 from VernierST/11-update-to-standard-build-system
Update build system
2 parents dfd313d + c0a415c commit 0a3cb2a

File tree

4 files changed

+64
-24
lines changed

4 files changed

+64
-24
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,30 @@ pip install labquest
2424

2525
Go to our [Getting Started with Vernier LabQuest and Python document](https://github.com/VernierST/labquest-examples/blob/main/python/readme.md) for detailed information regarding installation and usage of the labquest module.
2626

27+
## Local builds
28+
29+
In order to explore and contribute to this module, you can modify this module, build and install it locally.
30+
31+
_# Uninstall any installed version_
32+
```bash
33+
pip uninstall labquest
34+
```
35+
36+
_# Install the build tool (if you have not already)_
37+
```bash
38+
pip install build
39+
```
40+
41+
_# Build the module_
42+
```bash
43+
python -m build
44+
```
45+
46+
_# Install the module_
47+
```bash
48+
pip install .
49+
```
50+
2751
## License
2852

2953
GNU General Public License v3 (GPLv3)

labquest/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class LabQuest:
2020
""" The labquest module creates an easy way to interact with Vernier LabQuest devices.
2121
"""
2222

23-
VERSION = "2.0.0"
23+
VERSION = "2.1.0"
2424

2525
""" A class used for labquest communication."""
2626

pyproject.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "labquest"
7+
version = "2.1.0"
8+
description = "Library to interface with LabQuest interfaces via USB"
9+
readme = "README.md"
10+
license = "GPL-3.0"
11+
authors = [
12+
{name = "Vernier Software and Technology", email = "info@vernier.com"}
13+
]
14+
maintainers = [
15+
{name = "Vernier Software and Technology", email = "info@vernier.com"}
16+
]
17+
keywords = ["labquest", "vernier", "usb", "interface"]
18+
classifiers = [
19+
"Programming Language :: Python :: 3",
20+
"Operating System :: MacOS :: MacOS X",
21+
"Operating System :: Microsoft :: Windows",
22+
]
23+
requires-python = ">=3.7"
24+
dependencies = []
25+
26+
[project.urls]
27+
Homepage = "https://github.com/vernierst/labquest-py"
28+
Repository = "https://github.com/vernierst/labquest-py"
29+
30+
[tool.setuptools.packages.find]
31+
include = ["labquest*"]
32+
33+
[tool.setuptools.package-data]
34+
labquest = ["data/*.txt", "data/*.dylib", "data/*.dll"]

setup.py

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
1-
import setuptools
1+
# This file is kept for backward compatibility
2+
# The main configuration is now in pyproject.toml
3+
from setuptools import setup
24

3-
with open("README.md", "r") as fh:
4-
long_description = fh.read()
5-
6-
setuptools.setup(
7-
name="labquest",
8-
version="2.0.0",
9-
author="Vernier Software and Technology",
10-
author_email="info@vernier.com",
11-
description="Library to interface with LabQuest interfaces via USB",
12-
license="GPL v3.0",
13-
long_description=long_description,
14-
long_description_content_type="text/markdown",
15-
url="https://github.com/vernierst/labquest-py",
16-
packages=setuptools.find_packages(),
17-
package_data={'labquest': ['data/*.txt', 'data/*.dylib', 'data/*.dll']},
18-
classifiers=[
19-
"Programming Language :: Python :: 3",
20-
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
21-
"Operating System :: MacOS :: MacOS X",
22-
"Operating System :: Microsoft :: Windows",
23-
],
24-
)
5+
if __name__ == "__main__":
6+
setup()

0 commit comments

Comments
 (0)