-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
46 lines (40 loc) · 1.34 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#! /usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = ["ermshaua"]
from pathlib import Path
import toml
from setuptools import find_packages, setup
pyproject = toml.load("pyproject.toml")
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
"""Set up package."""
setup(
author_email=pyproject["project"]["authors"][0]["email"],
author=pyproject["project"]["authors"][0]["name"],
classifiers=pyproject["project"]["classifiers"],
description=pyproject["project"]["description"],
install_requires=pyproject["project"]["dependencies"],
include_package_data=True,
keywords=pyproject["project"]["keywords"],
license=pyproject["project"]["license"],
long_description=long_description,
long_description_content_type='text/markdown',
name=pyproject["project"]["name"],
package_data={
"claspy": [
"*.csv",
"*.csv.gz",
"*.txt",
]
},
packages=find_packages(
where=".",
exclude=["data", "tests", "notebooks"],
),
project_urls=pyproject["project"]["urls"],
python_requires=pyproject["project"]["requires-python"],
setup_requires=pyproject["build-system"]["requires"],
url=pyproject["project"]["urls"]["repository"],
version=pyproject["project"]["version"],
zip_safe=False,
)