-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
27 lines (23 loc) · 825 Bytes
/
setup.py
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
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: CECILL-2.1
"""
A minimal setup script for SourceSpec.
This script ensures compatibility with versioneer
and dynamically generates a README for correctly resolving paths on GitHub.
All the remaining configuration is in pyproject.toml.
"""
from setuptools import setup
import versioneer
# Dynamically generate the README text for PyPI, replacing local paths
# with the corresponding URLs on GitHub.
with open('README.md', 'rb') as f:
long_description = f.read().decode('utf-8').replace(
': CHANGELOG.md',
': https://github.com/claudiodsf/nllgrid/blob/main/CHANGELOG.md'
)
setup(
long_description=long_description,
long_description_content_type='text/markdown',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass()
)