Skip to content

Commit 7c6d37b

Browse files
chore: update build system to py39 and drop pbr
1 parent 01ef5fd commit 7c6d37b

8 files changed

+69
-44
lines changed

.dockerignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
build
2+
*.egg-info
3+
benchmarks
4+
__pycache__
5+
manual_testing
6+
.eggs
7+
.git
8+
.tox
9+
.pytest_cache

ChangeLog

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
CHANGES
22
=======
33

4+
1.6.0
5+
-----
6+
7+
* release(1.6.0): faster 6 and 18-way dijkstra
8+
* fix: CC -> CXX
9+
* chore: add py39 to build
10+
* perf: improve speed for dijkstra 6-way and 18-way
11+
* chore(build): add infrastructure for building manylinux2010 & 2014
12+
413
1.5.1
514
-----
615

build_linux.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/local/bin/bash
22
# docker build . -f manylinux1.Dockerfile --tag seunglab/dijkstra3d:manylinux1
3-
# docker build . -f manylinux2010.Dockerfile --tag seunglab/dijkstra3d:manylinux2010
3+
docker build . -f manylinux2010.Dockerfile --tag seunglab/dijkstra3d:manylinux2010
44
docker build . -f manylinux2014.Dockerfile --tag seunglab/dijkstra3d:manylinux2014
5-
# docker run -v $PWD/dist:/output seunglab/dijkstra3d:manylinux1 /bin/bash -c "cp -r wheelhouse/* /output"
6-
# docker run -v $PWD/dist:/output seunglab/dijkstra3d:manylinux2010 /bin/bash -c "cp -r wheelhouse/* /output"
5+
docker run -v $PWD/dist:/output seunglab/dijkstra3d:manylinux1 /bin/bash -c "cp -r wheelhouse/* /output"
6+
docker run -v $PWD/dist:/output seunglab/dijkstra3d:manylinux2010 /bin/bash -c "cp -r wheelhouse/* /output"
77
docker run -v $PWD/dist:/output seunglab/dijkstra3d:manylinux2014 /bin/bash -c "cp -r wheelhouse/* /output"

manylinux2010.Dockerfile

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/pypa/manylinux1_x86_64
1+
FROM quay.io/pypa/manylinux2010_x86_64
22
MAINTAINER William Silversmith
33

44
ADD . /dijkstra3d
@@ -13,30 +13,30 @@ RUN /opt/python/cp27-cp27m/bin/pip2.7 install pip --upgrade
1313
RUN /opt/python/cp35-cp35m/bin/pip3.5 install pip --upgrade
1414
RUN /opt/python/cp36-cp36m/bin/pip3.6 install pip --upgrade
1515
RUN /opt/python/cp37-cp37m/bin/pip3.7 install pip --upgrade
16-
# RUN /opt/python/cp38-cp38/bin/pip3.8 install pip --upgrade
16+
RUN /opt/python/cp38-cp38/bin/pip3.8 install pip --upgrade
1717

1818
RUN /opt/python/cp27-cp27m/bin/pip2.7 install -r requirements.txt pytest
1919
RUN /opt/python/cp35-cp35m/bin/pip3.5 install -r requirements.txt pytest
2020
RUN /opt/python/cp36-cp36m/bin/pip3.6 install -r requirements.txt pytest
2121
RUN /opt/python/cp37-cp37m/bin/pip3.7 install -r requirements.txt pytest
22-
# RUN /opt/python/cp38-cp38/bin/pip3.8 install -r requirements.txt pytest
22+
RUN /opt/python/cp38-cp38/bin/pip3.8 install -r requirements.txt pytest
2323

2424
RUN /opt/python/cp27-cp27m/bin/python2.7 setup.py develop
2525
RUN /opt/python/cp35-cp35m/bin/python3.5 setup.py develop
2626
RUN /opt/python/cp36-cp36m/bin/python3.6 setup.py develop
2727
RUN /opt/python/cp37-cp37m/bin/python3.7 setup.py develop
28-
# RUN /opt/python/cp38-cp38/bin/python3.8 setup.py develop
28+
RUN /opt/python/cp38-cp38/bin/python3.8 setup.py develop
2929

3030
RUN /opt/python/cp27-cp27m/bin/python2.7 -m pytest -v -x automated_test.py
3131
RUN /opt/python/cp35-cp35m/bin/python3.5 -m pytest -v -x automated_test.py
3232
RUN /opt/python/cp36-cp36m/bin/python3.6 -m pytest -v -x automated_test.py
3333
RUN /opt/python/cp37-cp37m/bin/python3.7 -m pytest -v -x automated_test.py
34-
# RUN /opt/python/cp38-cp38/bin/python3.8 -m pytest -v -x automated_test.py
34+
RUN /opt/python/cp38-cp38/bin/python3.8 -m pytest -v -x automated_test.py
3535

3636
RUN /opt/python/cp27-cp27m/bin/python2.7 setup.py bdist_wheel
3737
RUN /opt/python/cp35-cp35m/bin/python3.5 setup.py bdist_wheel
3838
RUN /opt/python/cp36-cp36m/bin/python3.6 setup.py bdist_wheel
3939
RUN /opt/python/cp37-cp37m/bin/python3.7 setup.py bdist_wheel
40-
# RUN /opt/python/cp38-cp38/bin/python3.8 setup.py bdist_wheel
40+
RUN /opt/python/cp38-cp38/bin/python3.8 setup.py bdist_wheel
4141

4242
RUN for whl in `ls dist/*.whl`; do auditwheel repair $whl --plat manylinux2010_x86_64; done

manylinux2014.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/pypa/manylinux1_x86_64
1+
FROM quay.io/pypa/manylinux2014_x86_64
22
MAINTAINER William Silversmith
33

44
ADD . /dijkstra3d

setup.cfg

-30
This file was deleted.

setup.py

+40-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
import numpy as np
99

10+
def read(fname):
11+
with open(os.path.join(os.path.dirname(__file__), fname), 'rt') as f:
12+
return f.read()
13+
1014
extra_compile_args = [
1115
'-std=c++11', '-O3', '-ffast-math',
1216
]
@@ -15,10 +19,11 @@
1519
extra_compile_args += [ '-stdlib=libc++', '-mmacosx-version-min=10.9' ]
1620

1721
setuptools.setup(
18-
setup_requires=['pbr', 'numpy'],
22+
name="dijkstra3d",
23+
version="1.6.0",
24+
setup_requires=['numpy'],
1925
extras_require={
2026
':python_version == "2.7"': ['futures'],
21-
':python_version == "2.6"': ['futures'],
2227
},
2328
ext_modules=[
2429
setuptools.Extension(
@@ -29,7 +34,39 @@
2934
extra_compile_args=extra_compile_args,
3035
)
3136
],
32-
pbr=True)
37+
url="https://github.com/seung-lab/dijkstra3d/",
38+
author="William Silversmith",
39+
author_email="[email protected]",
40+
packages=setuptools.find_packages(),
41+
package_data={
42+
'dijkstra3d': [
43+
'LICENSE',
44+
],
45+
},
46+
description="Implementation of Dijkstra's Shortest Path algorithm on 3D images.",
47+
long_description=read('README.md'),
48+
long_description_content_type="text/markdown",
49+
license = "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
50+
classifiers=[
51+
"Intended Audience :: Developers",
52+
"Development Status :: 5 - Production/Stable",
53+
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
54+
"Programming Language :: Python",
55+
"Programming Language :: Python :: 2",
56+
"Programming Language :: Python :: 2.7",
57+
"Programming Language :: Python :: 3",
58+
"Programming Language :: Python :: 3.5",
59+
"Programming Language :: Python :: 3.6",
60+
"Programming Language :: Python :: 3.7",
61+
"Programming Language :: Python :: 3.8",
62+
"Programming Language :: Python :: 3.9",
63+
"Topic :: Scientific/Engineering",
64+
"Intended Audience :: Science/Research",
65+
"Operating System :: POSIX",
66+
"Operating System :: MacOS",
67+
"Operating System :: Microsoft :: Windows :: Windows 10",
68+
]
69+
)
3370

3471

3572

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27,py36,py37,py38
2+
envlist = py27,py36,py37,py38,py39
33

44
[testenv]
55
platform = darwin

0 commit comments

Comments
 (0)