File tree Expand file tree Collapse file tree 3 files changed +31
-4
lines changed Expand file tree Collapse file tree 3 files changed +31
-4
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ universal=1
33
44[metadata]
55name = xyzspaces
6- version = __version__
76author = HERE Europe B.V.
7+ 88home-page = https://github.com/heremaps/xyz-spaces-python
99description = Manage your XYZ Hub server or HERE Data Hub from Python
1010long-description = file: README.md
Original file line number Diff line number Diff line change 2222
2323from setuptools import find_packages , setup
2424
25- __version__ = "0.0.1"
2625
2726here = path .abspath (path .dirname (__file__ ))
2827
3938with open (path .join (here , "requirements_dev.txt" ), encoding = "utf-8" ) as f :
4039 dev_reqs = f .read ().strip ().split ("\n " )
4140
41+ packages = find_packages (exclude = ["docs" , "tests" ])
42+
43+ version = {}
44+ with open ('{}/__version__.py' .format (packages [0 ])) as f :
45+ exec (f .read (), version )
46+
47+
4248download_url = (
4349 "https://github.com/heremaps/xyz-spaces-python"
44- "/archive/" + __version__ + ".zip"
50+ "/archive/" + version [ ' __version__' ] + ".zip"
4551)
4652
4753setup (
4854 # download_url=download_url,
49- packages = find_packages (exclude = ["docs" , "tests" ]),
55+ packages = packages ,
56+ version = version ['__version__' ],
5057 include_package_data = True ,
5158 install_requires = install_requires ,
5259 dependency_links = dependency_links ,
Original file line number Diff line number Diff line change 1+ # Copyright (C) 2019-2020 HERE Europe B.V.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+ #
15+ # SPDX-License-Identifier: Apache-2.0
16+ # License-Filename: LICENSE
17+
18+ """Project version information."""
19+
20+ __version__ = "0.0.1"
You can’t perform that action at this time.
0 commit comments