2023-10-26 10:07:46 -04:00
|
|
|
import glob
|
|
|
|
import pathlib
|
|
|
|
from distutils.util import convert_path
|
|
|
|
|
|
|
|
from setuptools import setup
|
|
|
|
|
|
|
|
with pathlib.Path('requirements.txt').open() as r:
|
2023-11-13 13:53:52 -05:00
|
|
|
install_requires = [
|
|
|
|
str(requirement).replace('\n', '')
|
|
|
|
for requirement
|
|
|
|
in r.readlines()
|
|
|
|
]
|
2023-10-26 10:07:46 -04:00
|
|
|
install_requires.append('setuptools')
|
|
|
|
|
|
|
|
main_ns = {}
|
|
|
|
version = convert_path('cerc_persistence/version.py')
|
|
|
|
with open(version) as f:
|
2023-11-13 13:53:52 -05:00
|
|
|
exec(f.read(), main_ns)
|
2023-10-26 10:07:46 -04:00
|
|
|
|
|
|
|
setup(
|
2023-11-13 13:53:52 -05:00
|
|
|
name='cerc-persistence',
|
|
|
|
version=main_ns['__version__'],
|
|
|
|
description="",
|
|
|
|
long_description="",
|
|
|
|
classifiers=[
|
|
|
|
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
|
|
|
|
"Programming Language :: Python",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
],
|
|
|
|
include_package_data=True,
|
|
|
|
packages=[
|
|
|
|
'cerc_persistence',
|
|
|
|
'cerc_persistence.models',
|
|
|
|
'cerc_persistence.repositories'
|
|
|
|
],
|
|
|
|
setup_requires=install_requires,
|
|
|
|
install_requires=install_requires,
|
2023-11-14 10:47:16 -05:00
|
|
|
data_files=[
|
|
|
|
('cerc_persistence', glob.glob('requirements.txt')),
|
2024-03-20 07:24:18 -04:00
|
|
|
('cerc_persistence/tests/test_data', glob.glob('test.geojson')),
|
|
|
|
('cerc_persistence/tests/test_output', glob.glob('.gitignore')),
|
2023-11-14 10:47:16 -05:00
|
|
|
],
|
2023-10-26 10:07:46 -04:00
|
|
|
)
|