-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (39 loc) · 1.23 KB
/
Copy pathsetup.py
File metadata and controls
46 lines (39 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import pathlib
from setuptools import setup, find_packages
from odapi import __version__
_PATH = pathlib.Path(__file__).resolve().parents[0]
_PACKAGE = _PATH.parts[-1]
with (_PATH/'requirements.txt').open() as fh:
reqs = fh.read().splitlines()
setup(
name=_PACKAGE,
version=__version__,
url='https://github.com/jlandercy/{package:}'.format(package=_PACKAGE),
license='BSD 3-Clause License',
author='Jean Landercy',
author_email='jeanlandercy@live.com',
description='Open Data API',
packages=find_packages(exclude=[]),
package_data={
# Win10/Anaconda cannot read package data (but this fix works):
"": ["**/*.json"],
# Unix requires the regular version:
_PACKAGE: [
'resources/*',
'connectors/opendata/resources/*',
'connectors/geomatic/resources/*',
]
},
scripts=[],
python_requires='>=3.7',
install_requires=reqs,
classifiers=[
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
],
entry_points={
#'console_scripts': ['{package:}={package:}.run:main'.format(package=_PACKAGE)]
},
zip_safe=False,
)