Skip to content

Commit 519ee2a

Browse files
author
Ivan Dlugos
committed
create basic setup.py for building wheels
1 parent eea4417 commit 519ee2a

3 files changed

Lines changed: 69 additions & 2 deletions

File tree

.gitignore

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,25 @@
77
.pytest_cache/
88

99
# Test temporary files
10-
testdata/
10+
testdata/
11+
12+
# Distribution / packaging
13+
.Python
14+
build/
15+
develop-eggs/
16+
dist/
17+
downloads/
18+
eggs/
19+
.eggs/
20+
lib/
21+
lib64/
22+
parts/
23+
sdist/
24+
var/
25+
wheels/
26+
pip-wheel-metadata/
27+
share/python-wheels/
28+
*.egg-info/
29+
.installed.cfg
30+
*.egg
31+
MANIFEST

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,13 @@ init: ${VENV}
2020
test: ${VENV}
2121
python -m pytest -s
2222

23-
.PHONY: init
23+
build: ${VENV} clean
24+
python setup.py bdist_wheel
25+
ls -lh dist
26+
27+
clean:
28+
rm -rf build/
29+
rm -rf dist/
30+
rm -rf *.egg-info
31+
32+
.PHONY: init test build

setup.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import setuptools
2+
3+
with open("README.md", "r") as fh:
4+
long_description = fh.read()
5+
6+
setuptools.setup(
7+
name="objectbox",
8+
version="0.1.0",
9+
author="ObjectBox",
10+
description="ObjectBox is a superfast database for objects",
11+
long_description=long_description,
12+
long_description_content_type="text/markdown",
13+
url="https://github.com/objectbox/objectbox-python",
14+
packages=setuptools.find_packages(),
15+
python_requires='>=3.4, <4',
16+
license='Apache 2.0',
17+
classifiers=[
18+
"Development Status :: 3 - Alpha",
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.4",
21+
"Programming Language :: Python :: 3.5",
22+
"Programming Language :: Python :: 3.6",
23+
"Programming Language :: Python :: 3.7",
24+
"Programming Language :: Python :: 3.8",
25+
"Programming Language :: C",
26+
"Programming Language :: C++",
27+
"Topic :: Database",
28+
"Topic :: Database :: Database Engines/Servers",
29+
"Topic :: Database :: Front-Ends",
30+
"Topic :: Software Development",
31+
"Topic :: Software Development :: Libraries",
32+
"License :: OSI Approved :: Apache Software License",
33+
"Operating System :: OS Independent",
34+
"Intended Audience :: Developers",
35+
],
36+
37+
)

0 commit comments

Comments
 (0)