-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using versioneer to supply version info
- Loading branch information
1 parent
15b6b6b
commit 28f5dc0
Showing
8 changed files
with
2,295 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/_version.py export-subst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include versioneer.py | ||
include src/_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,16 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
import os | ||
import codecs | ||
import re | ||
import versioneer | ||
from setuptools import setup | ||
from pip.req import parse_requirements | ||
|
||
package = 'src' | ||
|
||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
with codecs.open(os.path.join(here, package, '__init__.py'), | ||
encoding='utf8') as version_file: | ||
metadata = dict( | ||
re.findall( | ||
r"""__([a-z]+)__ = "([^"]+)""", | ||
version_file.read())) | ||
PACKAGE = 'src' | ||
|
||
|
||
def get_packages(package): | ||
""" | ||
Return root package and all sub-packages. | ||
""" | ||
"""Return root package and all sub-packages.""" | ||
return [dirpath | ||
for dirpath, _, _ in os.walk(package) | ||
if os.path.exists(os.path.join(dirpath, '__init__.py'))] | ||
|
@@ -41,15 +32,17 @@ def get_requirements(): | |
|
||
setup( | ||
name="OSM-Crosswalk-Detection", | ||
version=metadata['version'], | ||
version=versioneer.get_version(), | ||
cmdclass=versioneer.get_cmdclass(), | ||
author="Buehler Severin and Kurath Samuel", | ||
author_email="[email protected], [email protected]", | ||
maintainer="Marcel Huber", | ||
maintainer_email="[email protected]", | ||
description="Crosswalk detection on orthofotos.", | ||
license="MIT", | ||
keywords=['crosswalk detection'], | ||
url="https://github.com/geometalab/OSM-Crosswalk-Detection", | ||
packages=get_packages(package), | ||
packages=get_packages(PACKAGE), | ||
install_requires=get_requirements(), | ||
setup_requires=[], | ||
test_suite='tests', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.